glx: add a test to verify exported symbols

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34002>
This commit is contained in:
Marek Olšák 2025-03-08 21:46:36 -05:00 committed by Marge Bot
parent 1e0ce9db94
commit dcc805469b
3 changed files with 1389 additions and 0 deletions

10
src/glx/glvnd-symbols.txt Normal file
View file

@ -0,0 +1,10 @@
__glx_Main
MesaGLInteropGLXExportObject
MesaGLInteropGLXFlushObjects
MesaGLInteropGLXQueryDeviceInfo
# TODO: These shouldn't be exported:
glAreTexturesResidentEXT
glDeleteTexturesEXT
glGenTexturesEXT
glIsTextureEXT

1364
src/glx/libgl-symbols.txt Normal file

File diff suppressed because it is too large Load diff

View file

@ -148,3 +148,18 @@ libgl = shared_library(
darwin_versions : '4.0.0',
install : true,
)
if with_symbols_check
libgl_symbols_file = with_glvnd ? 'glvnd-symbols.txt' : 'libgl-symbols.txt'
test(
'libGL-ABI-check',
symbols_check,
args : [
'--lib', libgl,
'--symbols-file', files(libgl_symbols_file),
symbols_check_args,
],
suite : ['glx'],
)
endif