mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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:
parent
2118a3ce47
commit
6f873078d4
7 changed files with 26 additions and 29 deletions
|
|
@ -5,6 +5,11 @@ version_data.set('WLR_VERSION_MAJOR', version_array[0])
|
|||
version_data.set('WLR_VERSION_MINOR', version_array[1])
|
||||
version_data.set('WLR_VERSION_MICRO', version_array[2])
|
||||
|
||||
conf_data = configuration_data()
|
||||
foreach name, have : features
|
||||
conf_data.set10('WLR_HAS_' + name.underscorify().to_upper(), have)
|
||||
endforeach
|
||||
|
||||
conf_h = configure_file(
|
||||
input: 'config.h.in',
|
||||
output: 'config.h',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue