summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-22 19:16:00 +0000
committerEric Engestrom <[email protected]>2019-07-10 11:27:51 +0000
commitb619f89e238f0b4b101d9f57a3005f7ec7e70123 (patch)
treee5e78dd482ee94bc7e288498f297457af49c318e /src/mapi
parent1abae9e54ac15f9ed29fddf4e8f1ad607307af5a (diff)
mapi: add shared glapi symbols check
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by Dylan Baker <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/shared-glapi/glapi-symbols.txt19
-rw-r--r--src/mapi/shared-glapi/meson.build12
2 files changed, 31 insertions, 0 deletions
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