Pass --disable_clang and --clang_dir to libchromiumcontent
This commit is contained in:
parent
7cbe6bc8bd
commit
26e4ce30bb
2 changed files with 22 additions and 4 deletions
|
@ -18,6 +18,12 @@ def main():
|
|||
if args.verbose:
|
||||
enable_verbose_mode()
|
||||
|
||||
extra_update_args = []
|
||||
if args.disable_clang:
|
||||
extra_update_args += ['--disable_clang']
|
||||
if args.clang_dir:
|
||||
extra_update_args += ['--clang_dir', args.clang_dir]
|
||||
|
||||
# ./script/bootstrap
|
||||
# ./script/update -t x64
|
||||
# ./script/build --no_shared_library -t x64
|
||||
|
@ -29,7 +35,8 @@ def main():
|
|||
build = os.path.join(script_dir, 'build')
|
||||
create_dist = os.path.join(script_dir, 'create-dist')
|
||||
execute_stdout([sys.executable, bootstrap])
|
||||
execute_stdout([sys.executable, update, '-t', args.target_arch])
|
||||
execute_stdout([sys.executable, update, '-t', args.target_arch] +
|
||||
extra_update_args)
|
||||
execute_stdout([sys.executable, build, '-R', '-t', args.target_arch])
|
||||
execute_stdout([sys.executable, create_dist, '-c', 'static_library',
|
||||
'--no_zip', '-t', args.target_arch])
|
||||
|
@ -39,6 +46,9 @@ def parse_args():
|
|||
parser = argparse.ArgumentParser(description='Build libchromiumcontent')
|
||||
parser.add_argument('--target_arch',
|
||||
help='Specify the arch to build for')
|
||||
parser.add_argument('--clang_dir', default='', help='Path to clang binaries')
|
||||
parser.add_argument('--disable_clang', action='store_true',
|
||||
help='Use compilers other than clang for building')
|
||||
parser.add_argument('-v', '--verbose', action='store_true',
|
||||
help='Prints the output of the subprocesses')
|
||||
return parser.parse_args()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue