From 6f873078d4c0a941954be2873d3bb37f63ff31a8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 8 Feb 2021 15:16:10 +0100 Subject: build: use dictionnary for features instead of configuration_data This allows us to easily iterate on all features and only deal with bools. --- include/wlr/meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/wlr/meson.build b/include/wlr/meson.build index 4e79d068..ae9c17a3 100644 --- a/include/wlr/meson.build +++ b/include/wlr/meson.build @@ -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', -- cgit v1.2.3