Mesa (master): mapi: add shared glapi symbols check

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 10 11:44:14 UTC 2019


Module: Mesa
Branch: master
Commit: b619f89e238f0b4b101d9f57a3005f7ec7e70123
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b619f89e238f0b4b101d9f57a3005f7ec7e70123

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Thu Nov 22 19:16:00 2018 +0000

mapi: add shared glapi symbols check

Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by Dylan Baker <dylan at pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

---

 src/mapi/shared-glapi/glapi-symbols.txt | 19 +++++++++++++++++++
 src/mapi/shared-glapi/meson.build       | 12 ++++++++++++
 2 files changed, 31 insertions(+)

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




More information about the mesa-commit mailing list