build.py: Add --exclude to command line arguments of build.py

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-07-08 14:26:29 +00:00
commit d4eaf6a7ed

View file

@ -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)