From 9ec454103039f64b4a9e1e4f634a3b83e57b48a5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 27 Nov 2022 14:13:37 +0100 Subject: [PATCH] build: find native wayland-scanner --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 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()