projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e4253e
)
Meson: Override wayland-scanner if it can be run
author
Xavier Claessens
<xavier.claessens@collabora.com>
Mon, 4 Apr 2022 13:34:33 +0000
(09:34 -0400)
committer
Pekka Paalanen
<pq@iki.fi>
Tue, 24 May 2022 14:09:33 +0000
(14:09 +0000)
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>
src/meson.build
patch
|
blob
|
history
diff --git
a/src/meson.build
b/src/meson.build
index
a601724
..
a8a1d2b
100644
(file)
--- a/
src/meson.build
+++ b/
src/meson.build
@@
-71,6
+71,10
@@
if get_option('scanner')
],
filebase: 'wayland-scanner'
)
+
+ if meson.can_run_host_binaries()
+ meson.override_find_program('wayland-scanner', wayland_scanner)
+ endif
endif
if meson.is_cross_build() or not get_option('scanner')