OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """A simple script to make building/testing Mojo components easier.""" | 6 """A simple script to make building/testing Mojo components easier.""" |
7 | 7 |
8 import argparse | 8 import argparse |
9 from copy import deepcopy | 9 from copy import deepcopy |
10 import logging | 10 import logging |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 if 'target_sysroot' in args and args.target_sysroot: | 93 if 'target_sysroot' in args and args.target_sysroot: |
94 additional_args['target_sysroot'] = os.path.abspath(args.target_sysroot) | 94 additional_args['target_sysroot'] = os.path.abspath(args.target_sysroot) |
95 | 95 |
96 if 'toolchain_prefix' in args and args.toolchain_prefix: | 96 if 'toolchain_prefix' in args and args.toolchain_prefix: |
97 additional_args['toolchain_prefix'] = args.toolchain_prefix | 97 additional_args['toolchain_prefix'] = args.toolchain_prefix |
98 | 98 |
99 if 'package_name' in args: | 99 if 'package_name' in args: |
100 additional_args['package_name'] = args.package_name | 100 additional_args['package_name'] = args.package_name |
101 | 101 |
| 102 additional_args['boringssl_path'] = Paths().boringssl_path |
| 103 |
102 return Config(target_os=target_os, target_cpu=target_cpu, | 104 return Config(target_os=target_os, target_cpu=target_cpu, |
103 is_debug=is_debug, is_official_build=args.official, | 105 is_debug=is_debug, is_official_build=args.official, |
104 dcheck_always_on=args.dcheck_always_on, | 106 dcheck_always_on=args.dcheck_always_on, |
105 is_simulator=args.simulator, **additional_args) | 107 is_simulator=args.simulator, **additional_args) |
106 | 108 |
107 | 109 |
108 def _get_out_dir(config): | 110 def _get_out_dir(config): |
109 """Gets the build output directory (e.g., out/Debug), relative to src, for the | 111 """Gets the build output directory (e.g., out/Debug), relative to src, for the |
110 given config.""" | 112 given config.""" |
111 | 113 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 InitLogging(_verbose_count) | 363 InitLogging(_verbose_count) |
362 | 364 |
363 if args.simulator and not args.ios: | 365 if args.simulator and not args.ios: |
364 sys.exit("Currently, the simulator target is only configured for iOS") | 366 sys.exit("Currently, the simulator target is only configured for iOS") |
365 | 367 |
366 return args.func(_args_to_config(args)) | 368 return args.func(_args_to_config(args)) |
367 | 369 |
368 | 370 |
369 if __name__ == '__main__': | 371 if __name__ == '__main__': |
370 sys.exit(main()) | 372 sys.exit(main()) |
OLD | NEW |