meson: use proper handling of wayland-protocols dependency
authorEli Schwartz <eschwartz@archlinux.org>
Thu, 10 Mar 2022 05:08:36 +0000 (00:08 -0500)
committerEli Schwartz <eschwartz@archlinux.org>
Thu, 10 Mar 2022 05:08:36 +0000 (00:08 -0500)
commit94007caf8d0d5439e3575a337fdb94ecdc2f06ad
tree1b445acb87786d0cbc568cbcc2e8d2c71f346185
parent675c8b45b1dcd1fc67cfd14147ba52b1c5a6cbe8
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