aboutsummaryrefslogtreecommitdiffstats
path: root/egl
diff options
context:
space:
mode:
authorFrancesco Guastella <guastella.francesco@gmail.com>2023-09-07 08:20:20 +0200
committerFrancesco Guastella <guastella.francesco@gmail.com>2023-12-10 14:58:04 +0000
commit86588fbdebe7f6ac9363d98f524e4ae14bd4b019 (patch)
tree60b9512d1e2afb8586ba7f089ad751a83a81026c /egl
parentprotocol: improve wl_subsurface.{set_position,place_above} description (diff)
downloadwayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.tar
wayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.tar.gz
wayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.tar.bz2
wayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.tar.lz
wayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.tar.xz
wayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.tar.zst
wayland-86588fbdebe7f6ac9363d98f524e4ae14bd4b019.zip
build: define tests in egl/meson.build when the 'tests' option is enabled
Signed-off-by: Francesco Guastella <guastella.francesco@gmail.com>
Diffstat (limited to 'egl')
-rw-r--r--egl/meson.build24
1 files changed, 13 insertions, 11 deletions
diff --git a/egl/meson.build b/egl/meson.build
index c512377..76c6ee2 100644
--- a/egl/meson.build
+++ b/egl/meson.build
@@ -9,19 +9,21 @@ wayland_egl = library(
install: true
)
-wayland_egl_abi_check = executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
-test('wayland-egl abi check', wayland_egl_abi_check)
+if get_option('tests')
+ 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(
- 'wayland-egl symbols check',
- find_program('wayland-egl-symbols-check'),
- env: [
- 'WAYLAND_EGL_LIB=@0@'.format(wayland_egl.full_path()),
- 'NM=@0@'.format(nm_path)
- ]
-)
+ test(
+ 'wayland-egl symbols check',
+ find_program('wayland-egl-symbols-check'),
+ env: [
+ 'WAYLAND_EGL_LIB=@0@'.format(wayland_egl.full_path()),
+ 'NM=@0@'.format(nm_path)
+ ]
+ )
+endif
install_headers([
'wayland-egl.h',