projects
/
mass-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
08936d4
)
Pass parallel job count to auto-debuild
author
Ralf Jung
<post@ralfj.de>
Fri, 27 Jul 2012 15:30:50 +0000
(17:30 +0200)
committer
Ralf Jung
<post@ralfj.de>
Fri, 27 Jul 2012 15:30:50 +0000
(17:30 +0200)
build_system.py
patch
|
blob
|
history
diff --git
a/build_system.py
b/build_system.py
index 9a646538f321c1e739777dccd3a2c784c13e2b8a..8ebf6f34aa215149f222b3302d106813f3c6b330 100644
(file)
--- a/
build_system.py
+++ b/
build_system.py
@@
-50,16
+50,19
@@
try:
'name': config['debName'],
'email': config['debEMail'],
}
'name': config['debName'],
'email': config['debEMail'],
}
- self.copyFromModule(module, 'buildDepends')
- self.copyFromModule(module, 'binaryDepends')
+ self.copyOption(config, 'jobs', 'parallelJobs')
+ self.copyOption(module, 'dbgPackage')
+ self.copyOption(module, 'buildDepends')
+ self.copyOption(module, 'binaryDepends')
if buildSystem == 'cmake':
if buildSystem == 'cmake':
- self.copy
FromModule
(module, 'cmakeParameters')
+ self.copy
Option
(module, 'cmakeParameters')
self.vcs = vcs
self.configured = False # make sure configure is called before build/install
self.vcs = vcs
self.configured = False # make sure configure is called before build/install
- def copyFromModule(self, module, name):
- if name in module:
- self.autoDebuildConfig[name] = module[name]
+ def copyOption(self, src, name, dstName = None):
+ if dstName is None: dstName = name # per default, stick with original name
+ if name in src:
+ self.autoDebuildConfig[dstName] = src[name]
def configure(self, force=False): # force is ignored
self.autoDebuildConfig['version'] = self.vcs.version() # by now, data has been fetched, so this is possible
def configure(self, force=False): # force is ignored
self.autoDebuildConfig['version'] = self.vcs.version() # by now, data has been fetched, so this is possible