build: find native wayland-scanner
This commit is contained in:
parent
1c77805930
commit
9ec4541030
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user