mirror of
https://github.com/openwrt/video.git
synced 2025-12-21 17:04:37 +04:00
23 lines
699 B
Diff
23 lines
699 B
Diff
--- a/wayland-info/meson.build
|
|
+++ b/wayland-info/meson.build
|
|
@@ -1,5 +1,9 @@
|
|
dep_scanner = dependency('wayland-scanner', native: true)
|
|
-prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
|
|
+if (get_option('scanner_bin') == '')
|
|
+ prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
|
|
+else
|
|
+ prog_scanner = find_program(get_option('scanner_bin'))
|
|
+endif
|
|
|
|
dep_wp = dependency('wayland-protocols', version: '>= 1.18')
|
|
dir_wp_base = dep_wp.get_pkgconfig_variable('pkgdatadir')
|
|
--- /dev/null
|
|
+++ b/meson_options.txt
|
|
@@ -0,0 +1,6 @@
|
|
+option(
|
|
+ 'scanner_bin',
|
|
+ description: 'Path to wayland-scanner binary',
|
|
+ type: 'string',
|
|
+ value: ''
|
|
+)
|