Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: mojo/tools/mojob.py

Issue 1348493002: Add fnl build target (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/tools/embed/rules.gni ('k') | mojo/tools/mopy/config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mojob.py
diff --git a/mojo/tools/mojob.py b/mojo/tools/mojob.py
index e7bda9373d3a2bb6f926be89f2335ffa852febdf..3c0731e0f70ca2371e5c2eb7c40ae76b8db51c81 100755
--- a/mojo/tools/mojob.py
+++ b/mojo/tools/mojob.py
@@ -31,6 +31,8 @@ def _args_to_config(args):
target_os = Config.OS_ANDROID
elif args.ios:
target_os = Config.OS_IOS
+ elif args.fnl:
+ target_os = Config.OS_FNL
target_cpu = args.target_cpu
@@ -88,6 +90,12 @@ def _args_to_config(args):
is_debug = args.debug and not args.official
+ if 'target_sysroot' in args and args.target_sysroot:
+ additional_args['target_sysroot'] = os.path.abspath(args.target_sysroot)
+
+ if 'toolchain_prefix' in args and args.toolchain_prefix:
+ additional_args['toolchain_prefix'] = args.toolchain_prefix
+
return Config(target_os=target_os, target_cpu=target_cpu,
is_debug=is_debug, is_official_build=args.official,
dcheck_always_on=args.dcheck_always_on,
@@ -244,6 +252,8 @@ def main():
action='store_true')
os_group.add_argument('--ios', help='Build for iOS',
action='store_true')
+ os_group.add_argument('--fnl', help='Build for FNL',
+ action='store_true')
parent_parser.add_argument('--simulator',
help='Build for a simulator of the target',
@@ -253,6 +263,16 @@ def main():
help='CPU architecture to build for.',
choices=['x64', 'x86', 'arm'])
+ parent_parser.add_argument('--target-sysroot',
+ help='Location of sysroot for target',
+ default='',
+ dest='target_sysroot')
+
+ parent_parser.add_argument('--toolchain-prefix',
+ help='Toolchain prefix',
+ default='',
+ dest='toolchain_prefix')
+
subparsers = parser.add_subparsers()
sync_parser = subparsers.add_parser('sync', parents=[parent_parser],
« no previous file with comments | « mojo/tools/embed/rules.gni ('k') | mojo/tools/mopy/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698