summaryrefslogtreecommitdiff
path: root/morphlib/morphology.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-01 15:31:03 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-01 15:31:03 +0000
commita638bc13eb16a2d454f4fcf02032ff3881e544e4 (patch)
treebcebe4ee8f140c917f9aaacdbaae2bdb6ed8bfaf /morphlib/morphology.py
parent3406f96c72714081ff0b1d90aca8189389ad40ae (diff)
downloadmorph-a638bc13eb16a2d454f4fcf02032ff3881e544e4.tar.gz
Add a way to specify build system
This is a short-cut for providing the configure, build, test, and install commands explicitly.
Diffstat (limited to 'morphlib/morphology.py')
-rw-r--r--morphlib/morphology.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/morphlib/morphology.py b/morphlib/morphology.py
index 3155bf95..20fcbce0 100644
--- a/morphlib/morphology.py
+++ b/morphlib/morphology.py
@@ -56,6 +56,16 @@ class Morphology(object):
return self._dict['sources']
@property
+ def build_system(self):
+ return self._dict.get('build-system', None)
+
+ @property
+ def max_jobs(self):
+ if 'max-jobs' in self._dict:
+ return int(self._dict['max-jobs'])
+ return None
+
+ @property
def configure_commands(self):
return self._dict.get('configure-commands', [])