summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-01-28 12:30:01 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2019-01-29 08:39:12 +0800
commit10507d3fb6c678d005ef6ed241e24a0d119ca3ba (patch)
treeb018c38d4a0760679c55caa4ad48ae218d6a5dc6
parentf139dafa59172d40543f2ec469a035d3de9fdc6a (diff)
downloadlibva-intel-driver-10507d3fb6c678d005ef6ed241e24a0d119ca3ba.tar.gz
build: meson: compile without wayland support
This patch replaces the PR https://github.com/intel/intel-vaapi-driver/pull/441
-rw-r--r--meson.build13
1 files changed, 9 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 51bb1d09..fa0b2f2e 100644
--- a/meson.build
+++ b/meson.build
@@ -81,17 +81,22 @@ if get_option('with_wayland') != 'no'
if wayland_client_dep.found()
prefix = wayland_client_dep.get_pkgconfig_variable('prefix')
- wl_scanner = find_program(
- 'wayland-scanner',
- join_paths(prefix, '/bin/wayland-scanner'))
+ wayland_scanner = join_paths(prefix, 'bin', 'wayland-scanner')
+ else
+ wayland_scanner = ''
endif
+ wl_scanner = find_program('wayland-scanner', wayland_scanner,
+ required : get_option('with_wayland') == 'yes')
+
libva_wayland_dep = dependency(
'libva-wayland',
version : libva_version,
required : get_option('with_wayland') == 'yes')
- WITH_WAYLAND = wl_scanner.found() and libva_wayland_dep.found()
+ WITH_WAYLAND = (wayland_client_dep.found()
+ and wl_scanner.found()
+ and libva_wayland_dep.found())
endif
subdir('src')