Only generate node.lib when we need to upload node headers.

This commit is contained in:
Cheng Zhao 2013-08-31 17:00:13 +08:00
parent 766347ffae
commit 5fe9f281ac
2 changed files with 12 additions and 3 deletions

View file

@ -20,7 +20,7 @@ def main():
args = parse_args()
for config in args.configuration:
build_path = os.path.join('out', config)
subprocess.call([ninja, '-C', build_path])
subprocess.call([ninja, '-C', build_path, args.target])
def parse_args():
@ -30,6 +30,10 @@ def parse_args():
nargs='+',
default=CONFIGURATIONS,
required=False)
parser.add_argument('-t', '--target',
help='Build specified target',
default='atom',
required=False)
return parser.parse_args()