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

Side by Side Diff: mandoline/tools/android/install_mandoline.py

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 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 | « mandoline/services/updater/updater_impl.cc ('k') | mandoline/tools/android/run_mandoline.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
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
4 # found in the LICENSE file.
5
6 import argparse
7 import logging
8 import os
9 import sys
10
11 sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname(__file__)),
12 os.pardir, os.pardir, os.pardir, 'mojo',
13 'tools'))
14
15 from mopy.android import AndroidShell
16 from mopy.config import Config
17
18 USAGE = ('install_mandoline.py [<shell-and-app-args>]')
19
20 def main():
21 logging.basicConfig()
22
23 parser = argparse.ArgumentParser(usage=USAGE)
24
25 debug_group = parser.add_mutually_exclusive_group()
26 debug_group.add_argument('--debug', help='Debug build (default)',
27 default=True, action='store_true')
28 debug_group.add_argument('--release', help='Release build', default=False,
29 dest='debug', action='store_false')
30 parser.add_argument('--build-dir', help='Build directory')
31 parser.add_argument('--target-cpu', help='CPU architecture to run for.',
32 choices=['x64', 'x86', 'arm'], default='arm')
33 parser.add_argument('--device', help='Serial number of the target device.')
34 runner_args, args = parser.parse_known_args()
35
36 config = Config(build_dir=runner_args.build_dir,
37 target_os=Config.OS_ANDROID,
38 target_cpu=runner_args.target_cpu,
39 is_debug=runner_args.debug,
40 apk_name='Mandoline.apk')
41 shell = AndroidShell(config)
42 shell.InitShell(runner_args.device)
43 return 0
44
45
46 if __name__ == '__main__':
47 sys.exit(main())
OLDNEW
« no previous file with comments | « mandoline/services/updater/updater_impl.cc ('k') | mandoline/tools/android/run_mandoline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698