diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-25 17:36:24 +0100 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2022-12-06 22:39:45 +0000 |
commit | 6c897756b6340d098f50eeb0da0d39abda87fdda (patch) | |
tree | 9e0f224e37eb9390020c62e65300aa5610939958 /include/meson.build | |
parent | afe1ae4479a680cebfc5b12d9b5dbafefbd73395 (diff) |
build: use a configuration file for internal features
This avoids re-building the whole project when switching one
Meson option. This shrinks down the compiler invocation command
line, making it more readable and making it easier to inspect
which flags are passed in (the generated file can be opened).
Additionally this is more consistent with our external feature
handling, which uses <wlr/config.h> already.
Diffstat (limited to 'include/meson.build')
-rw-r--r-- | include/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/meson.build b/include/meson.build index 358aada8..bc91a766 100644 --- a/include/meson.build +++ b/include/meson.build @@ -30,3 +30,11 @@ install_subdir('wlr', install_dir: get_option('includedir'), exclude_files: exclude_files, ) + +foreach name, have : internal_features + internal_config.set10('HAS_' + name.underscorify().to_upper(), have) +endforeach +wlr_files += configure_file( + output: 'config.h', + configuration: internal_config, +) |