]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Use feature options
authorJan Janssen <medhefgo@web.de>
Wed, 9 Aug 2023 16:15:29 +0000 (18:15 +0200)
committerJan Janssen <medhefgo@web.de>
Wed, 23 Aug 2023 12:45:02 +0000 (14:45 +0200)
commit43abc59a275e0b37499fe99edf3afc68b1c594f4
tree9b7880df757534fe903cf6d98f77d6957deda36b
parentb26c345279b6232afe6bc5cf9eb9d1b8514ceba0
meson: Use feature options

By using meson features we can replace the handcrafted dependency
auto-detection by just passing the value from get_option directly to the
required arg for dependency, find_library etc.
'auto' features make the dependency optional, 'enabled' requires it
while 'disabled' features will skip detection entirely.

Any skipped or not found dependency will just be a no-op when passed to
build steps and therefore we can also skip the creation of empty vars.

The use of skip_deps for these is dropped here as meson provides a way
to disable all optional features in one go by passing
'-Dauto_features=disabled'.
.github/workflows/build_test.sh
meson.build
meson_options.txt
mkosi.presets/base/mkosi.build