3 @@ -1973,12 +1973,17 @@ endif
4 # TODO: symbol mangling
6 if with_platform_wayland
7 - dep_wl_scanner = dependency('wayland-scanner', native: true)
8 - prog_wl_scanner = find_program(dep_wl_scanner.get_pkgconfig_variable('wayland_scanner'))
9 - if dep_wl_scanner.version().version_compare('>= 1.15')
10 - wl_scanner_arg = 'private-code'
11 + if (get_option('scanner_bin') == '')
12 + dep_wl_scanner = dependency('wayland-scanner', native: true)
13 + prog_wl_scanner = find_program(dep_wl_scanner.get_pkgconfig_variable('wayland_scanner'))
14 + if dep_wl_scanner.version().version_compare('>= 1.15')
15 + wl_scanner_arg = 'private-code'
17 + wl_scanner_arg = 'code'
20 - wl_scanner_arg = 'code'
21 + prog_wl_scanner = get_option('scanner_bin')
22 + wl_scanner_arg = 'private-code'
24 dep_wl_protocols = dependency('wayland-protocols', version : '>= 1.8')
25 dep_wayland_client = dependency('wayland-client', version : '>=1.18')
26 --- a/meson_options.txt
27 +++ b/meson_options.txt
28 @@ -486,6 +486,11 @@ option(
30 description : 'Android Platform SDK version. Default: Nougat version.'
32 +option('scanner_bin',
33 + description: 'Path to wayland-scanner binary',