Files
video/frameworks/wayland/patches/001-fix-wayland-scanner-detect.patch
2021-11-24 11:08:42 +00:00

31 lines
1.1 KiB
Diff

--- a/src/meson.build
+++ b/src/meson.build
@@ -70,8 +70,12 @@ if get_option('scanner')
endif
if meson.is_cross_build() or not get_option('scanner')
- scanner_dep = dependency('wayland-scanner', native: true, version: meson.project_version())
- wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
+ if (get_option('scanner_bin') != '')
+ wayland_scanner_for_build = get_option('scanner_bin')
+ else
+ scanner_dep = dependency('wayland-scanner', native: true, version: meson.project_version())
+ wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
+ endif
else
wayland_scanner_for_build = wayland_scanner
endif
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,6 +10,10 @@ option('tests',
description: 'Compile Wayland tests',
type: 'boolean',
value: 'true')
+option('scanner_bin',
+ description: 'Path to wayland-scanner binary',
+ type: 'string',
+ value: '')
option('documentation',
description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
type: 'boolean',