Support build variable setting during bootstrap

This commit is contained in:
Kevin Sawicki 2016-08-10 14:46:41 -07:00
parent 58b391cb77
commit d07e40b415
2 changed files with 4 additions and 2 deletions

View file

@ -103,11 +103,13 @@ def parse_args():
help='The shared library path of libchromiumcontent.')
parser.add_argument('--libcc_static_library_path', required=False,
help='The static library path of libchromiumcontent.')
parser.add_argument('--defines', default='',
help='The build variables passed to gyp')
return parser.parse_args()
def args_to_defines(args):
defines = ''
defines = args.defines
if args.disable_clang:
defines += ' clang=0'
if args.clang_dir:

View file

@ -27,7 +27,7 @@ def main():
def parse_args():
parser = argparse.ArgumentParser(description='Update build configurations')
parser.add_argument('--defines', default='',
help='The definetions passed to gyp')
help='The build variables passed to gyp')
parser.add_argument('--msvs', action='store_true',
help='Generate Visual Studio project')
return parser.parse_args()