mirror of
https://github.com/openwrt/video.git
synced 2025-12-21 21:24:36 +04:00
31 lines
1.0 KiB
Diff
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',
|