aboutsummaryrefslogtreecommitdiff
path: root/mesonconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-xmesonconf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonconf.py b/mesonconf.py
index 608661e..db526b0 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, warning_levels
+from meson import build_types, layouts, 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 == 'layout':
+ if v not in layouts:
+ raise ConfException('Invalid layout type %s.' % v)
+ self.coredata.layout = v
elif k == 'warnlevel':
if not v in warning_levels:
raise ConfException('Invalid warning level %s.' % v)