mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Meson: Override wayland-scanner if it can be run
This allows projects to use Wayland as a Meson subproject and get the
wayland-scanner executable when doing find_program('wayland-scanner').
Signed-off-by: Xavier Claessens <xavier.claessens@collabora.com>
This commit is contained in:
parent
5e4253ed50
commit
24244f26bf
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ if get_option('scanner')
|
||||||
],
|
],
|
||||||
filebase: 'wayland-scanner'
|
filebase: 'wayland-scanner'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if meson.can_run_host_binaries()
|
||||||
|
meson.override_find_program('wayland-scanner', wayland_scanner)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if meson.is_cross_build() or not get_option('scanner')
|
if meson.is_cross_build() or not get_option('scanner')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue