build: override wayland-scanner dep

This allows a parent project to find wayland-scanner.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-05-03 16:24:29 +02:00
parent 8f2a33cffc
commit 2aec19ce41

View File

@ -74,6 +74,9 @@ if get_option('scanner')
if meson.can_run_host_binaries()
meson.override_find_program('wayland-scanner', wayland_scanner)
meson.override_dependency('wayland-scanner', declare_dependency(
variables: { 'wayland_scanner': 'wayland-scanner' },
))
endif
endif