]> git.mdlowis.com Git - proto/labwc.git/commit
meson: use proper dependency fallback for wlroots
authorEli Schwartz <eschwartz@archlinux.org>
Mon, 9 May 2022 21:44:47 +0000 (17:44 -0400)
committerEli Schwartz <eschwartz@archlinux.org>
Mon, 9 May 2022 21:48:43 +0000 (17:48 -0400)
commit2656cf525f677c59549ee42b966f542a13be19e8
tree8e2f8a96f8442b163e01fa7674b2e756490f580c
parente2632e8587d27316feec1dd5c64c48e7f6a2ac09
meson: use proper dependency fallback for wlroots

Make the subproject wrap file declare the dependencies it provides.

Remove the manual subproject invocation and allow Meson to select
whichever wlroots it finds which satisfies the version requirement --
either a system one via pkg-config, or the subproject fallback.

Use a dependency-generic method of acquiring wlroots configuration info
-- enabled features are present in the pkg-config file and additionally
exported as declare_dependency() variables, so there is no need to do C
preprocessor checks for it.

This ensures that Meson best practices are followed, and also...

Fixes #318
meson.build
subprojects/wlroots.wrap