diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-09-17 19:21:26 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-09-17 19:21:26 +0300 |
commit | 067935ce76c03099abe83998c7c0cb80f64b92f1 (patch) | |
tree | 8d017af4252c97daa64207768e01644d49b02674 /mesonconf.py | |
parent | 384365c843ed3d3ef82ed0a9dcaf1a987134a82f (diff) | |
download | meson-067935ce76c03099abe83998c7c0cb80f64b92f1.zip meson-067935ce76c03099abe83998c7c0cb80f64b92f1.tar.gz meson-067935ce76c03099abe83998c7c0cb80f64b92f1.tar.bz2 |
Added conf option for build tree layout.
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-x | mesonconf.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonconf.py b/mesonconf.py index 57010a6..adec6e2 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, layouts 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 == 'strip': self.coredata.strip = self.tobool(v) elif k == 'coverage': |