meson: use proper handling of wayland-protocols dependency
authorEli Schwartz <eschwartz@archlinux.org>
Thu, 10 Mar 2022 05:08:36 +0000 (00:08 -0500)
committerJordan Petridis <jordan@centricular.com>
Thu, 17 Mar 2022 10:54:58 +0000 (12:54 +0200)
commite2873bc614e50d19f1b8aa939514c83933b10136
tree0b19f0321bf487a2e334ee16d43d1bb072ca403f
parent3e4bfa2bae9c6e90005b57d9f9fe47d2301f0e0e
meson: use proper handling of wayland-protocols dependency

Ensure that resolution of the subproject occurs via the dependency
interface, not the "poke at subprojects manually" interface, and make
that actually work via --wrap-mode=forcefallback.

There's no need to mark it as not-required and then manually invoke
subproject(), since fallback should work correctly and it is always
needed.

However, if fallback was performed (or forced) it would error out since
get_variable() was instructed to only use pkg-config while the relevant
variable was exported by the subproject as an internal fallback
dependency.
meson.build