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

Side by Side Diff: build/android/gyp/create_device_library_links.py

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « build/android/gyp/apk_install.py ('k') | build/android/gyp/util/build_device.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 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Creates symlinks to native libraries for an APK. 7 """Creates symlinks to native libraries for an APK.
8 8
9 The native libraries should have previously been pushed to the device (in 9 The native libraries should have previously been pushed to the device (in
10 options.target_dir). This script then creates links in an apk's lib/ folder to 10 options.target_dir). This script then creates links in an apk's lib/ folder to
11 those native libraries. 11 those native libraries.
12 """ 12 """
13 13
14 import optparse 14 import optparse
15 import os 15 import os
16 import sys 16 import sys
17 17
18 from util import build_device 18 from util import build_device
19 from util import build_utils 19 from util import build_utils
20 20
21 BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..') 21 BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..')
22 sys.path.append(BUILD_ANDROID_DIR) 22 sys.path.append(BUILD_ANDROID_DIR)
23 23
24 from devil.android import apk_helper
24 from pylib import constants 25 from pylib import constants
25 from pylib.utils import apk_helper
26 26
27 def RunShellCommand(device, cmd): 27 def RunShellCommand(device, cmd):
28 output = device.RunShellCommand(cmd) 28 output = device.RunShellCommand(cmd)
29 29
30 if output: 30 if output:
31 raise Exception( 31 raise Exception(
32 'Unexpected output running command: ' + cmd + '\n' + 32 'Unexpected output running command: ' + cmd + '\n' +
33 '\n'.join(output)) 33 '\n'.join(output))
34 34
35 35
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 CreateSymlinkScript(options) 106 CreateSymlinkScript(options)
107 TriggerSymlinkScript(options) 107 TriggerSymlinkScript(options)
108 108
109 if options.stamp: 109 if options.stamp:
110 build_utils.Touch(options.stamp) 110 build_utils.Touch(options.stamp)
111 111
112 112
113 if __name__ == '__main__': 113 if __name__ == '__main__':
114 sys.exit(main(sys.argv[1:])) 114 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « build/android/gyp/apk_install.py ('k') | build/android/gyp/util/build_device.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698