summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-27 14:13:37 +0100
committerSimon Ser <contact@emersion.fr>2022-11-27 14:13:37 +0100
commit9ec454103039f64b4a9e1e4f634a3b83e57b48a5 (patch)
treebd5484d734a19b2bcf1c5c0c8c1044fedcfe9946
parent1c77805930add7f0c7ad3df93c8df06977d0ebb4 (diff)
build: find native wayland-scanner
-rw-r--r--meson.build4
1 files changed, 1 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 25bc346..ace7c93 100644
--- a/meson.build
+++ b/meson.build
@@ -38,8 +38,6 @@ endif
wayland_client = dependency('wayland-client', version: '>=1.20.0')
wayland_protos = dependency('wayland-protocols', version: '>=1.25', fallback: 'wayland-protocols')
-# use native version of wayland-scanner when cross-compiling
-# meson does this too: https://github.com/mesonbuild/meson/blob/c649a2b8c59c9f49affca9bd89c126bfa0f54449/mesonbuild/modules/unstable_wayland.py#L48-L53
wayland_scanner = dependency('wayland-scanner', version: '>=1.15.0', native: true)
xkbcommon = dependency('xkbcommon')
cairo = dependency('cairo')
@@ -52,7 +50,7 @@ math = cc.find_library('m')
git = find_program('git', required: false)
scdoc = find_program('scdoc', required: get_option('man-pages'))
-wayland_scanner_prog = find_program(wayland_scanner.get_variable('wayland_scanner'))
+wayland_scanner_prog = find_program(wayland_scanner.get_variable('wayland_scanner'), native: true)
version = '"@0@"'.format(meson.project_version())
if git.found()