Support build variable setting during bootstrap
This commit is contained in:
parent
58b391cb77
commit
d07e40b415
2 changed files with 4 additions and 2 deletions
|
@ -103,11 +103,13 @@ def parse_args():
|
||||||
help='The shared library path of libchromiumcontent.')
|
help='The shared library path of libchromiumcontent.')
|
||||||
parser.add_argument('--libcc_static_library_path', required=False,
|
parser.add_argument('--libcc_static_library_path', required=False,
|
||||||
help='The static library path of libchromiumcontent.')
|
help='The static library path of libchromiumcontent.')
|
||||||
|
parser.add_argument('--defines', default='',
|
||||||
|
help='The build variables passed to gyp')
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
def args_to_defines(args):
|
def args_to_defines(args):
|
||||||
defines = ''
|
defines = args.defines
|
||||||
if args.disable_clang:
|
if args.disable_clang:
|
||||||
defines += ' clang=0'
|
defines += ' clang=0'
|
||||||
if args.clang_dir:
|
if args.clang_dir:
|
||||||
|
|
|
@ -27,7 +27,7 @@ def main():
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(description='Update build configurations')
|
parser = argparse.ArgumentParser(description='Update build configurations')
|
||||||
parser.add_argument('--defines', default='',
|
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',
|
parser.add_argument('--msvs', action='store_true',
|
||||||
help='Generate Visual Studio project')
|
help='Generate Visual Studio project')
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
Loading…
Reference in a new issue