mapi: add shared glapi symbols check

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Eric Engestrom 2018-11-22 19:16:00 +00:00 committed by Eric Engestrom
parent 1abae9e54a
commit b619f89e23
2 changed files with 31 additions and 0 deletions

View file

@ -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

View file

@ -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