meson.build: Fix wayland-scanner detection
authorScott Murray <scott.murray@konsulko.com>
Sun, 20 Nov 2022 22:58:27 +0000 (17:58 -0500)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 11 Mar 2024 16:13:05 +0000 (18:13 +0200)
Update wayland-scanner dependency to mark it as native, as detection
fails with newer meson without it.  This also matches what is done in
Weston's meson.build.

Bug-AGL: SPEC-4578

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meson.build

index 372c76c..65a55d6 100644 (file)
@@ -42,7 +42,7 @@ foreach func: optional_libc_funcs
 endforeach
 
 dep_libsystemd = dependency('libsystemd', required: false)
-dep_scanner = dependency('wayland-scanner')
+dep_scanner = dependency('wayland-scanner', native: true)
 prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
 dep_wp = dependency('wayland-protocols', version: '>= 1.18')
 dir_wp_base = dep_wp.get_pkgconfig_variable('pkgdatadir')