mirror of https://gitlab.com/ita1024/waf.git
Merge branch 'eclipse_extra_targets' into 'master'
eclipse: add possibility to add custom targets execution See merge request ita1024/waf!2335
This commit is contained in:
commit
27126f902d
|
@ -54,6 +54,7 @@ def options(opt):
|
|||
|
||||
|
||||
def configure(conf):
|
||||
conf.env.ECLIPSE_EXTRA_TARGETS = ['test', 'lint', 'foo --bar']
|
||||
conf.load('eclipse')
|
||||
# We recurse configurations in our submodules
|
||||
conf.recurse(module_list)
|
||||
|
|
|
@ -10,6 +10,9 @@ Usage:
|
|||
def options(opt):
|
||||
opt.load('eclipse')
|
||||
|
||||
To add additional targets beside standard ones (configure, dist, install, check)
|
||||
the environment ECLIPSE_EXTRA_TARGETS can be set (ie. to ['test', 'lint', 'docs'])
|
||||
|
||||
$ waf configure eclipse
|
||||
"""
|
||||
|
||||
|
@ -400,6 +403,8 @@ class eclipse(Build.BuildContext):
|
|||
addTargetWrap('dist', False)
|
||||
addTargetWrap('install', False)
|
||||
addTargetWrap('check', False)
|
||||
for addTgt in getattr(self.env, 'ECLIPSE_EXTRA_TARGETS', []):
|
||||
addTargetWrap(addTgt, False)
|
||||
|
||||
storageModule = self.add(doc, cproject, 'storageModule',
|
||||
{'moduleId': 'cdtBuildSystem',
|
||||
|
|
Loading…
Reference in New Issue