]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson: Add coverity flag
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 3 Jun 2022 19:48:32 +0000 (15:48 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 7 Jun 2022 21:18:03 +0000 (17:18 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
meson.build
meson_options.txt

index 0550f0cd83991af4b4fa14b39cc8994be6d619ad..c7c11f66682e1e4a1aa29a9039135d6286e455ae 100644 (file)
@@ -128,6 +128,7 @@ endif
 
 # Custom configuration.
 cgrouppattern = get_option('cgroup-pattern')
+coverity = get_option('coverity-build')
 init_script = get_option('init-script')
 want_examples = get_option('examples')
 want_io_uring = get_option('io-uring-event-loop')
@@ -137,6 +138,9 @@ want_tests = get_option('tests')
 want_tools = get_option('tools')
 
 srcconf.set_quoted('DEFAULT_CGROUP_PATTERN', cgrouppattern)
+if coverity
+    srcconf.set('ENABLE_COVERITY_BUILD', 1)
+endif
 
 dummy_config_data = configuration_data()
 dummy_config_data.set_quoted('DUMMY_VARIABLE', '1')
index 6459cb7f9506864f72c4eb68cf766b2021f3aaaa..ac07d246b9b9744fc36ee1da3882b6c078e54f76 100644 (file)
@@ -4,6 +4,9 @@
 option('cgroup-pattern', type: 'string', value: '',
        description: 'CGroup pattern')
 
+option('coverity-build', type: 'boolean', value: 'true',
+       description: 'build for coverity')
+
 option('examples', type: 'boolean', value: 'true',
        description: 'build and install examples')