mapi: add shared glapi symbols check
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 22 Nov 2018 19:16:00 +0000 (19:16 +0000)
committerEric Engestrom <eric@engestrom.ch>
Wed, 10 Jul 2019 11:27:51 +0000 (11:27 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mapi/shared-glapi/glapi-symbols.txt [new file with mode: 0644]
src/mapi/shared-glapi/meson.build

diff --git a/src/mapi/shared-glapi/glapi-symbols.txt b/src/mapi/shared-glapi/glapi-symbols.txt
new file mode 100644 (file)
index 0000000..c068e46
--- /dev/null
@@ -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
index af0c68a1c838089aead9578f17d66edd32226e28..1847e17383b3b7504b70dd926ce4425d2ad69824 100644 (file)
@@ -64,4 +64,16 @@ if with_any_opengl and with_tests
     ),
     suite : ['mapi'],
   )
     ),
     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
 endif