mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
build: define tests in egl/meson.build when the 'tests' option is enabled
Signed-off-by: Francesco Guastella <guastella.francesco@gmail.com>
This commit is contained in:
parent
82d8b21827
commit
86588fbdeb
1 changed files with 13 additions and 11 deletions
|
|
@ -9,19 +9,21 @@ wayland_egl = library(
|
||||||
install: true
|
install: true
|
||||||
)
|
)
|
||||||
|
|
||||||
wayland_egl_abi_check = executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
|
if get_option('tests')
|
||||||
test('wayland-egl abi check', wayland_egl_abi_check)
|
wayland_egl_abi_check = executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
|
||||||
|
test('wayland-egl abi check', wayland_egl_abi_check)
|
||||||
|
|
||||||
nm_path = find_program('nm').full_path()
|
nm_path = find_program('nm').full_path()
|
||||||
|
|
||||||
test(
|
test(
|
||||||
'wayland-egl symbols check',
|
'wayland-egl symbols check',
|
||||||
find_program('wayland-egl-symbols-check'),
|
find_program('wayland-egl-symbols-check'),
|
||||||
env: [
|
env: [
|
||||||
'WAYLAND_EGL_LIB=@0@'.format(wayland_egl.full_path()),
|
'WAYLAND_EGL_LIB=@0@'.format(wayland_egl.full_path()),
|
||||||
'NM=@0@'.format(nm_path)
|
'NM=@0@'.format(nm_path)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
install_headers([
|
install_headers([
|
||||||
'wayland-egl.h',
|
'wayland-egl.h',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue