mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
egl: Disable symbols check for static builds
The symbols check only works for dynamic libraries. When building statically, the test fails. This is caused by the check filtering out non-dynamic symbols with nm. This change skips the check when building only static libraries. Signed-off-by: Jordan Williams <jordan@jwillikers.com>
This commit is contained in:
parent
8a7ecd774c
commit
2621484037
1 changed files with 15 additions and 10 deletions
|
|
@ -13,16 +13,21 @@ if get_option('tests')
|
||||||
wayland_egl_abi_check = executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
|
wayland_egl_abi_check = executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
|
||||||
test('wayland-egl abi check', wayland_egl_abi_check)
|
test('wayland-egl abi check', wayland_egl_abi_check)
|
||||||
|
|
||||||
nm_path = find_program(['llvm-nm', 'nm']).full_path()
|
if get_option('default_library') != 'static'
|
||||||
|
nm_path = find_program(['llvm-nm', 'nm']).full_path()
|
||||||
test(
|
wayland_egl_shared = wayland_egl
|
||||||
'wayland-egl symbols check',
|
if get_option('default_library') == 'both'
|
||||||
find_program('wayland-egl-symbols-check'),
|
wayland_egl_shared = wayland_egl.get_shared_lib()
|
||||||
env: [
|
endif
|
||||||
'WAYLAND_EGL_LIB=@0@'.format(wayland_egl.full_path()),
|
test(
|
||||||
'NM=@0@'.format(nm_path)
|
'wayland-egl symbols check',
|
||||||
]
|
find_program('wayland-egl-symbols-check'),
|
||||||
)
|
env: [
|
||||||
|
'WAYLAND_EGL_LIB=@0@'.format(wayland_egl_shared.full_path()),
|
||||||
|
'NM=@0@'.format(nm_path)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install_headers([
|
install_headers([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue