]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: allow skipping optional dependencies
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 22 Feb 2022 10:49:46 +0000 (10:49 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 22 Feb 2022 11:17:21 +0000 (11:17 +0000)
mostly to make sure that systemd is buildable without some dependencies
but other than that it should make it easier to build it with MSan without
having to compile all the dependencies with MSan.

meson.build
meson_options.txt

index 428ebb2102ecebce486bc1612e59b390097df721..371a9ce751b3d8d883eed419d90089dd0d17fdfa 100644 (file)
@@ -40,7 +40,7 @@ if want_ossfuzz and want_libfuzzer
         error('only one of oss-fuzz or llvm-fuzz can be specified')
 endif
 
-skip_deps = want_ossfuzz
+skip_deps = want_ossfuzz or get_option('skip-deps')
 fuzzer_build = want_ossfuzz or want_libfuzzer
 
 # Create a title-less summary section early, so it ends up first in the output.
index fa8c0b5e3fae8055698b8b174b4ba02b67edad43..5d635748d58cc8eb72d74a718dd183cd237898bf 100644 (file)
@@ -484,3 +484,6 @@ option('analyze', type: 'boolean', value: 'true',
 
 option('bpf-framework', type : 'combo', choices : ['auto', 'true', 'false'],
     description: 'build BPF programs from source code in restricted C')
+
+option('skip-deps', type : 'boolean', value : 'false',
+       description : 'skip optional dependencies')