Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviwed-by: Dylan Baker <dylan@pnwbakers>
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
install : true,
)
-if with_tests and prog_nm.found()
+if with_symbols_check
test(
'radv symbols check',
symbols_check,
)
endif
-if with_tests and prog_nm.found()
+if with_symbols_check
if with_glvnd
egl_symbols = files('egl-glvnd-symbols.txt')
else
install : true,
)
-if with_tests and prog_nm.found()
+if with_symbols_check
test(
'tu symbols check',
symbols_check,
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,
install : true,
)
-if with_tests and prog_nm.found()
+if with_symbols_check
test(
'anv symbols check',
symbols_check,
libraries_private : gl_priv_libs,
)
-if with_tests and prog_nm.found()
+if with_symbols_check
test(
'es1-ABI-check',
symbols_check,
libraries_private : gl_priv_libs,
)
-if with_tests and prog_nm.found()
+if with_symbols_check
test(
'es2-ABI-check',
symbols_check,
),
suite : ['mapi'],
)
- if prog_nm.found()
+ if with_symbols_check
test(
'shared-glapi symbols check',
symbols_check,