meson: add variable to control the symbols checks

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviwed-by: Dylan Baker <dylan@pnwbakers>
This commit is contained in:
Eric Engestrom 2019-10-29 14:21:08 +00:00
parent 67718ca352
commit 2c4395e61c
9 changed files with 9 additions and 8 deletions

View File

@ -1681,6 +1681,7 @@ endif
pkg = import('pkgconfig')
prog_nm = find_program('nm', required : false)
with_symbols_check = prog_nm.found() and with_tests
# This quirk needs to be applied to sources with functions defined in assembly
# as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391

View File

@ -166,7 +166,7 @@ libvulkan_radeon = shared_library(
install : true,
)
if with_tests and prog_nm.found()
if with_symbols_check
test(
'radv symbols check',
symbols_check,

View File

@ -186,7 +186,7 @@ if not with_glvnd
)
endif
if with_tests and prog_nm.found()
if with_symbols_check
if with_glvnd
egl_symbols = files('egl-glvnd-symbols.txt')
else

View File

@ -119,7 +119,7 @@ libvulkan_freedreno = shared_library(
install : true,
)
if with_tests and prog_nm.found()
if with_symbols_check
test(
'tu symbols check',
symbols_check,

View File

@ -66,7 +66,7 @@ pkg.generate(
libraries_private : '-ldl', # FIXME: autotools lists this a incomplete
)
if with_tests and prog_nm.found()
if with_symbols_check
test(
'gbm-symbols-check',
symbols_check,

View File

@ -207,7 +207,7 @@ libvulkan_intel = shared_library(
install : true,
)
if with_tests and prog_nm.found()
if with_symbols_check
test(
'anv symbols check',
symbols_check,

View File

@ -62,7 +62,7 @@ pkg.generate(
libraries_private : gl_priv_libs,
)
if with_tests and prog_nm.found()
if with_symbols_check
test(
'es1-ABI-check',
symbols_check,

View File

@ -62,7 +62,7 @@ pkg.generate(
libraries_private : gl_priv_libs,
)
if with_tests and prog_nm.found()
if with_symbols_check
test(
'es2-ABI-check',
symbols_check,

View File

@ -74,7 +74,7 @@ if with_any_opengl and with_tests
),
suite : ['mapi'],
)
if prog_nm.found()
if with_symbols_check
test(
'shared-glapi symbols check',
symbols_check,