aboutsummaryrefslogtreecommitdiff
path: root/mesonconf.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-01-12 19:40:16 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-01-12 19:40:16 +0200
commit7bc58671780b8d78f6d974ba93eb9e0e077b4ad9 (patch)
treeee69cba55f20fb6e6eca22df4b753252528f8a69 /mesonconf.py
parentad6ba0cadfe89d579f40389b60329e0b9780abbe (diff)
downloadmeson-7bc58671780b8d78f6d974ba93eb9e0e077b4ad9.zip
meson-7bc58671780b8d78f6d974ba93eb9e0e077b4ad9.tar.gz
meson-7bc58671780b8d78f6d974ba93eb9e0e077b4ad9.tar.bz2
Can print and set paths with mesonconf.
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-xmesonconf.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/mesonconf.py b/mesonconf.py
index 9f8a15c..de0e488 100755
--- a/mesonconf.py
+++ b/mesonconf.py
@@ -87,6 +87,20 @@ class Conf:
self.coredata.use_pch = self.tobool(v)
elif k == 'unity':
self.coredata.unity = self.tobool(v)
+ elif k == 'installprefix':
+ self.coredata.prefix = v
+ elif k == 'libdir':
+ self.coredata.libdir = v
+ elif k == 'bindir':
+ self.coredata.bindir = v
+ elif k == 'includedir':
+ self.coredata.includedir = v
+ elif k == 'datadir':
+ self.coredata.datadir = v
+ elif k == 'mandir':
+ self.coredata.mandir = v
+ elif k == 'localedir':
+ self.coredata.localedir = v
else:
if k not in self.coredata.user_options:
raise ConfException('Unknown option %s.' % k)
@@ -113,11 +127,22 @@ class Conf:
carr = []
carr.append(['type', 'Build type', self.coredata.buildtype])
carr.append(['strip', 'Strip on install', self.coredata.strip])
- carr.append(['coverage', 'Coverage', self.coredata.coverage])
+ carr.append(['coverage', 'Coverage report', self.coredata.coverage])
carr.append(['pch', 'Precompiled headers', self.coredata.use_pch])
carr.append(['unity', 'Unity build', self.coredata.unity])
self.print_aligned(carr)
print('')
+ print('Directories\n')
+ parr = []
+ parr.append(['installprefix', 'Install prefix', self.coredata.prefix])
+ parr.append(['libdir', 'Library directory', self.coredata.libdir])
+ parr.append(['bindir', 'Binary directory', self.coredata.bindir])
+ parr.append(['includedir', 'Header directory', self.coredata.includedir])
+ parr.append(['datadir', 'Data directory', self.coredata.datadir])
+ parr.append(['mandir', 'Man page directory', self.coredata.mandir])
+ parr.append(['localedir', 'Locale file directory', self.coredata.localedir])
+ self.print_aligned(parr)
+ print('')
print('Project options\n')
options = self.coredata.user_options
keys = list(options.keys())