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

Side by Side Diff: mojo/tools/android_mojo_shell.py

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « mojo/services/surfaces/public/interfaces/quads.mojom ('k') | mojo/tools/get_test_list.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import argparse 6 import argparse
7 import logging 7 import logging
8 import sys 8 import sys
9 9
10 from mopy.config import Config 10 from mopy.config import Config
(...skipping 21 matching lines...) Expand all
32 def main(): 32 def main():
33 logging.basicConfig() 33 logging.basicConfig()
34 34
35 parser = argparse.ArgumentParser(usage=USAGE) 35 parser = argparse.ArgumentParser(usage=USAGE)
36 36
37 debug_group = parser.add_mutually_exclusive_group() 37 debug_group = parser.add_mutually_exclusive_group()
38 debug_group.add_argument('--debug', help='Debug build (default)', 38 debug_group.add_argument('--debug', help='Debug build (default)',
39 default=True, action='store_true') 39 default=True, action='store_true')
40 debug_group.add_argument('--release', help='Release build', default=False, 40 debug_group.add_argument('--release', help='Release build', default=False,
41 dest='debug', action='store_false') 41 dest='debug', action='store_false')
42 debug_group.add_argument('--target-arch', 42 debug_group.add_argument('--target-cpu',
43 help='CPU architecture to run for.', 43 help='CPU architecture to run for.',
44 choices=['x64', 'x86', 'arm']) 44 choices=['x64', 'x86', 'arm'])
45 launcher_args, args = parser.parse_known_args() 45 launcher_args, args = parser.parse_known_args()
46 46
47 config = Config(target_os=Config.OS_ANDROID, 47 config = Config(target_os=Config.OS_ANDROID,
48 target_arch=launcher_args.target_arch, 48 target_cpu=launcher_args.target_cpu,
49 is_debug=launcher_args.debug) 49 is_debug=launcher_args.debug)
50 50
51 args.append(android.PrepareShellRun(config)) 51 args.append(android.PrepareShellRun(config))
52 android.CleanLogs() 52 android.CleanLogs()
53 p = android.ShowLogs() 53 p = android.ShowLogs()
54 android.StartShell(args, sys.stdout, p.terminate) 54 android.StartShell(args, sys.stdout, p.terminate)
55 55
56 return 0 56 return 0
57 57
58 58
59 if __name__ == "__main__": 59 if __name__ == "__main__":
60 sys.exit(main()) 60 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/services/surfaces/public/interfaces/quads.mojom ('k') | mojo/tools/get_test_list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698