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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 action='store_true') | 277 action='store_true') |
278 os_group.add_argument('--fnl', help='Build for FNL', | 278 os_group.add_argument('--fnl', help='Build for FNL', |
279 action='store_true') | 279 action='store_true') |
280 | 280 |
281 parent_parser.add_argument('--simulator', | 281 parent_parser.add_argument('--simulator', |
282 help='Build for a simulator of the target', | 282 help='Build for a simulator of the target', |
283 action='store_true') | 283 action='store_true') |
284 | 284 |
285 parent_parser.add_argument('--target-cpu', | 285 parent_parser.add_argument('--target-cpu', |
286 help='CPU architecture to build for.', | 286 help='CPU architecture to build for.', |
287 choices=['x64', 'x86', 'arm']) | 287 choices=['x64', 'x86', 'arm', 'arm64']) |
288 | 288 |
289 parent_parser.add_argument('--target-sysroot', | 289 parent_parser.add_argument('--target-sysroot', |
290 help='Location of sysroot for target', | 290 help='Location of sysroot for target', |
291 default='', | 291 default='', |
292 dest='target_sysroot') | 292 dest='target_sysroot') |
293 | 293 |
294 parent_parser.add_argument('--toolchain-prefix', | 294 parent_parser.add_argument('--toolchain-prefix', |
295 help='Toolchain prefix', | 295 help='Toolchain prefix', |
296 default='', | 296 default='', |
297 dest='toolchain_prefix') | 297 dest='toolchain_prefix') |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 InitLogging(_verbose_count) | 358 InitLogging(_verbose_count) |
359 | 359 |
360 if args.simulator and not args.ios: | 360 if args.simulator and not args.ios: |
361 sys.exit("Currently, the simulator target is only configured for iOS") | 361 sys.exit("Currently, the simulator target is only configured for iOS") |
362 | 362 |
363 return args.func(_args_to_config(args)) | 363 return args.func(_args_to_config(args)) |
364 | 364 |
365 | 365 |
366 if __name__ == '__main__': | 366 if __name__ == '__main__': |
367 sys.exit(main()) | 367 sys.exit(main()) |
OLD | NEW |