wayland: update to version 1.19.92 (1.20 beta)
[feed/video.git] / frameworks / wayland / patches / 001-fix-wayland-scanner-detect.patch
1 --- a/src/meson.build
2 +++ b/src/meson.build
3 @@ -70,8 +70,12 @@ if get_option('scanner')
4 endif
5
6 if meson.is_cross_build() or not get_option('scanner')
7 - scanner_dep = dependency('wayland-scanner', native: true, version: meson.project_version())
8 - wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
9 + if (get_option('scanner_bin') != '')
10 + wayland_scanner_for_build = get_option('scanner_bin')
11 + else
12 + scanner_dep = dependency('wayland-scanner', native: true, version: meson.project_version())
13 + wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
14 + endif
15 else
16 wayland_scanner_for_build = wayland_scanner
17 endif
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -10,6 +10,10 @@ option('tests',
21 description: 'Compile Wayland tests',
22 type: 'boolean',
23 value: 'true')
24 +option('scanner_bin',
25 + description: 'Path to wayland-scanner binary',
26 + type: 'string',
27 + value: '')
28 option('documentation',
29 description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
30 type: 'boolean',