[Mesa-dev] [PATCH 1/3] meson: use dependency()+find_program() for wayland-scanner
Emil Velikov
emil.l.velikov at gmail.com
Thu Jun 28 14:35:44 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
Helps when the native wayland-scanner is located outside of PATH.
Inspired by the xserver code ;-)
Cc: Dylan Baker <dylan at pnwbakers.com>
Cc: Eric Engestrom <eric at engestrom.ch>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index b2722c71e5b..79bac89e7d9 100644
--- a/meson.build
+++ b/meson.build
@@ -1269,7 +1269,8 @@ endif
# TODO: symbol mangling
if with_platform_wayland
- prog_wl_scanner = find_program('wayland-scanner')
+ dep_wl_scanner = dependency('wayland-scanner', native: true)
+ prog_wl_scanner = find_program(dep_wl_scanner.get_pkgconfig_variable('wayland_scanner'))
dep_wl_protocols = dependency('wayland-protocols', version : '>= 1.8')
dep_wayland_client = dependency('wayland-client', version : '>=1.11')
dep_wayland_server = dependency('wayland-server', version : '>=1.11')
--
2.18.0
More information about the mesa-dev
mailing list