aboutsummaryrefslogtreecommitdiff
path: root/mesonconf.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-09-04 23:51:38 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-09-04 23:51:38 +0300
commit70f4e388ca65b3f3381568c345e3bac3eb0551f3 (patch)
tree3d19c09e74eac34c915842ff51789c3b4874ccf8 /mesonconf.py
parent02185132d2c93f8fb3fd09595bd2dd539f59c0c9 (diff)
parentc7e367ac161d1b7faead7e2de99072ca135d0df8 (diff)
downloadmeson-70f4e388ca65b3f3381568c345e3bac3eb0551f3.zip
meson-70f4e388ca65b3f3381568c345e3bac3eb0551f3.tar.gz
meson-70f4e388ca65b3f3381568c345e3bac3eb0551f3.tar.bz2
Merge pull request #246 from mesonbuild/warnreorg
Added warning level option.
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])