weston: add package
[feed/video.git] / libs / weston / patches / 001-fix-wayland-scanner-detect.patch
1 --- a/meson_options.txt
2 +++ b/meson_options.txt
3 @@ -242,3 +242,9 @@ option(
4 value: false,
5 description: 'Generate documentation'
6 )
7 +option(
8 + 'scanner_bin',
9 + description: 'Path to wayland-scanner binary',
10 + type: 'string',
11 + value: ''
12 +)
13 --- a/protocol/meson.build
14 +++ b/protocol/meson.build
15 @@ -1,5 +1,9 @@
16 dep_scanner = dependency('wayland-scanner', native: true)
17 -prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
18 +if (get_option('scanner_bin') == '')
19 + prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
20 +else
21 + prog_scanner = find_program(get_option('scanner_bin'))
22 +endif
23
24 dep_wp = dependency('wayland-protocols', version: '>= 1.19')
25 dir_wp_base = dep_wp.get_pkgconfig_variable('pkgdatadir')