aboutsummaryrefslogtreecommitdiff
path: root/mesonconf.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-27 00:25:04 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-27 01:07:29 +0300
commit6cca79b052b75bf174c2e482cc5d3e1a6cec4b02 (patch)
treeaaa12cf651414e2986410533ba06717d6834c0dc /mesonconf.py
parentf32db9afa27992df1e40fece4ffd40fd5f3768ae (diff)
downloadmeson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.zip
meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.gz
meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.bz2
Added multiple selectable warning levels.
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-xmesonconf.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonconf.py b/mesonconf.py
index 57010a6..608661e 100755
--- a/mesonconf.py
+++ b/mesonconf.py
@@ -18,7 +18,7 @@ import sys, os
import pickle
import argparse
import coredata, optinterpreter
-from meson import build_types
+from meson import build_types, warning_levels
parser = argparse.ArgumentParser()
@@ -80,6 +80,10 @@ class Conf:
if v not in build_types:
raise ConfException('Invalid build type %s.' % v)
self.coredata.buildtype = v
+ elif k == 'warnlevel':
+ if not v in warning_levels:
+ raise ConfException('Invalid warning level %s.' % v)
+ self.coredata.warning_level = v
elif k == 'strip':
self.coredata.strip = self.tobool(v)
elif k == 'coverage':
@@ -158,6 +162,7 @@ class Conf:
print('Core options\n')
carr = []
carr.append(['buildtype', 'Build type', self.coredata.buildtype])
+ carr.append(['warnlevel', 'Warning level', self.coredata.warning_level])
carr.append(['strip', 'Strip on install', self.coredata.strip])
carr.append(['coverage', 'Coverage report', self.coredata.coverage])
carr.append(['pch', 'Precompiled headers', self.coredata.use_pch])