]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add "develop mode" config switch
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Aug 2020 15:26:49 +0000 (17:26 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Aug 2020 18:20:23 +0000 (20:20 +0200)
meson.build
meson_options.txt

index cd2b02488b373fa24b0f33dc1072a2b7e6495f62..36ed7a47be1092e214d7bca484da9bb46f2fe544 100644 (file)
@@ -38,6 +38,9 @@ relative_source_path = run_command('realpath',
                                    project_source_root).stdout().strip()
 conf.set_quoted('RELATIVE_SOURCE_PATH', relative_source_path)
 
+conf.set10('DEVELOPER_MODE', get_option('mode') == 'developer',
+           description : 'enable additional checks only suitable in development')
+
 want_ossfuzz = get_option('oss-fuzz')
 want_libfuzzer = get_option('llvm-fuzz')
 if want_ossfuzz + want_libfuzzer > 1
index fd73d5e681f4e50b53b560c8f6a7d6bc4c8de990..1ad0969a1a62197caf91ddf3316fd9ea30ce2c86 100644 (file)
@@ -4,6 +4,9 @@
 option('version-tag', type : 'string',
        description : 'override the git version string')
 
+option('mode', type : 'combo', choices : ['default', 'developer'],
+       description : 'enable additional checks suitable for systemd development')
+
 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
        description : '''/bin, /sbin aren't symlinks into /usr''')
 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],