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

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

Issue 1647353002: Use gn_helpers to [se]serialize GN lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@python_impl
Patch Set: more Created 4 years, 4 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/proguard.py ('k') | build/android/gyp/strip_library_for_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 """Pushes native libraries to a device. 7 """Pushes native libraries to a device.
8 8
9 """ 9 """
10 10
11 import optparse 11 import optparse
12 import os 12 import os
13 import sys 13 import sys
14 14
15 from util import build_device 15 from util import build_device
16 from util import build_utils 16 from util import build_utils
17 from util import md5_check 17 from util import md5_check
18 18
19 BUILD_ANDROID_DIR = os.path.abspath( 19 BUILD_ANDROID_DIR = os.path.abspath(
20 os.path.join(os.path.dirname(__file__), os.pardir)) 20 os.path.join(os.path.dirname(__file__), os.pardir))
21 sys.path.append(BUILD_ANDROID_DIR) 21 sys.path.append(BUILD_ANDROID_DIR)
22 22
23 import devil_chromium 23 import devil_chromium
24 from pylib import constants 24 from pylib import constants
25 25
26 def DoPush(options): 26 def DoPush(options):
27 libraries = build_utils.ParseGypList(options.libraries) 27 libraries = build_utils.ParseGnList(options.libraries)
28 28
29 device = build_device.GetBuildDeviceFromPath( 29 device = build_device.GetBuildDeviceFromPath(
30 options.build_device_configuration) 30 options.build_device_configuration)
31 if not device: 31 if not device:
32 return 32 return
33 33
34 serial_number = device.GetSerialNumber() 34 serial_number = device.GetSerialNumber()
35 # A list so that it is modifiable in Push below. 35 # A list so that it is modifiable in Push below.
36 needs_directory = [True] 36 needs_directory = [True]
37 for lib in libraries: 37 for lib in libraries:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 output_directory=os.path.abspath(options.output_directory)) 75 output_directory=os.path.abspath(options.output_directory))
76 76
77 DoPush(options) 77 DoPush(options)
78 78
79 if options.stamp: 79 if options.stamp:
80 build_utils.Touch(options.stamp) 80 build_utils.Touch(options.stamp)
81 81
82 82
83 if __name__ == '__main__': 83 if __name__ == '__main__':
84 sys.exit(main(sys.argv[1:])) 84 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « build/android/gyp/proguard.py ('k') | build/android/gyp/strip_library_for_device.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698