Files
video/frameworks/wayland/patches/001-fix-wayland-scanner-detect.patch
Daniel Golle af0b6d4d74 wayland: update to 1.23.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-12-05 01:15:41 +00:00

31 lines
1.0 KiB
Diff

--- a/src/meson.build
+++ b/src/meson.build
@@ -81,8 +81,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_variable(pkgconfig: '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_variable(pkgconfig: 'wayland_scanner'))
+ endif
else
wayland_scanner_for_build = wayland_scanner
endif
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -6,6 +6,10 @@ option('scanner',
description: 'Compile wayland-scanner binary',
type: 'boolean',
value: true)
+option('scanner_bin',
+ description: 'Path to wayland-scanner binary',
+ type: 'string',
+ value: '')
option('tests',
description: 'Compile Wayland tests',
type: 'boolean',