mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
build.py: Add --exclude to command line arguments of build.py
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
053c901e1c
commit
d4eaf6a7ed
1 changed files with 3 additions and 0 deletions
|
|
@ -89,11 +89,13 @@ modules = Set()
|
|||
|
||||
parser = argparse.ArgumentParser(description='jannet software project build tool')
|
||||
parser.add_argument('--base', '-b', nargs='?', default=proj_base, help='Project base directory')
|
||||
parser.add_argument('--exclude', nargs='?', default='', help='List of modules to be excluded from build')
|
||||
parser.add_argument('target', default='all', help='Build target')
|
||||
parser.add_argument('modules', nargs='+', default='', help='Modules to be built')
|
||||
|
||||
args=parser.parse_args()
|
||||
proj_base=args.base
|
||||
exclude=args.exclude
|
||||
target=args.target
|
||||
modules=args.modules
|
||||
|
||||
|
|
@ -101,6 +103,7 @@ modules=args.modules
|
|||
print "calculating order for modules: " + ' '.join(modules)
|
||||
order = []
|
||||
calculate_order(order, modules, glob_prereq_type)
|
||||
order = [m for m in order if m not in exclude]
|
||||
print "order is: " + ' '.join(order)
|
||||
build(order, target)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue