mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
afe1ae4479
commit
6c897756b6
4 changed files with 18 additions and 12 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue