build: use dictionnary for features instead of configuration_data

This allows us to easily iterate on all features and only deal with
bools.
This commit is contained in:
Simon Ser 2021-02-08 15:16:10 +01:00
parent 2118a3ce47
commit 6f873078d4
7 changed files with 26 additions and 29 deletions

View file

@ -45,7 +45,7 @@ foreach lib, desc : xwayland_optional
)
if dep.found()
xwayland_libs += dep
conf_data.set10('WLR_HAS_' + lib.underscorify().to_upper(), true)
features += { lib: true }
endif
endforeach
@ -60,4 +60,4 @@ wlr_files += files(
'xwm.c',
)
wlr_deps += xwayland_libs
conf_data.set10('WLR_HAS_XWAYLAND', true)
features += { 'xwayland': true }