From: Eric Engestrom Date: Thu, 22 Nov 2018 19:16:00 +0000 (+0000) Subject: mapi: add shared glapi symbols check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b619f89e238f0b4b101d9f57a3005f7ec7e70123;p=mesa.git mapi: add shared glapi symbols check Signed-off-by: Eric Engestrom Reviewed-by Dylan Baker Reviewed-by: Emil Velikov --- diff --git a/src/mapi/shared-glapi/glapi-symbols.txt b/src/mapi/shared-glapi/glapi-symbols.txt new file mode 100644 index 00000000000..c068e46fc9b --- /dev/null +++ b/src/mapi/shared-glapi/glapi-symbols.txt @@ -0,0 +1,19 @@ +_glapi_Context +_glapi_Dispatch +_glapi_add_dispatch +_glapi_check_multithread +_glapi_get_context +_glapi_get_dispatch +_glapi_get_dispatch_table_size +_glapi_get_proc_address +_glapi_get_proc_name +_glapi_get_proc_offset +_glapi_new_nop_table +_glapi_noop_enable_warnings +_glapi_set_context +_glapi_set_dispatch +_glapi_set_nop_handler +_glapi_set_warning_func +_glapi_tls_Context +_glapi_tls_Dispatch +_glthread_GetID diff --git a/src/mapi/shared-glapi/meson.build b/src/mapi/shared-glapi/meson.build index af0c68a1c83..1847e17383b 100644 --- a/src/mapi/shared-glapi/meson.build +++ b/src/mapi/shared-glapi/meson.build @@ -64,4 +64,16 @@ if with_any_opengl and with_tests ), suite : ['mapi'], ) + if prog_nm.found() + test( + 'shared-glapi symbols check', + symbols_check, + args : [ + '--lib', libglapi, + '--symbols-file', files('glapi-symbols.txt'), + '--nm', prog_nm.path(), + ], + suite : ['mapi'], + ) + endif endif