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

Side by Side Diff: build/android/gyp/finalize_splits.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/emma_instr.py ('k') | build/android/gyp/generate_resource_rewriter.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 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 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 """Signs and zipaligns split APKs. 6 """Signs and zipaligns split APKs.
7 7
8 This script is require only by GYP (not GN). 8 This script is require only by GYP (not GN).
9 """ 9 """
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 if options.densities: 35 if options.densities:
36 for density in options.densities.split(','): 36 for density in options.densities.split(','):
37 options.unsigned_apk_path = ("%s_%s" % 37 options.unsigned_apk_path = ("%s_%s" %
38 (options.resource_packaged_apk_path, density)) 38 (options.resource_packaged_apk_path, density))
39 options.final_apk_path = ("%s-density-%s.apk" % 39 options.final_apk_path = ("%s-density-%s.apk" %
40 (options.base_output_path, density)) 40 (options.base_output_path, density))
41 finalize_apk.FinalizeApk(options) 41 finalize_apk.FinalizeApk(options)
42 42
43 if options.languages: 43 if options.languages:
44 for lang in build_utils.ParseGypList(options.languages): 44 for lang in build_utils.ParseGnList(options.languages):
45 options.unsigned_apk_path = ("%s_%s" % 45 options.unsigned_apk_path = ("%s_%s" %
46 (options.resource_packaged_apk_path, lang)) 46 (options.resource_packaged_apk_path, lang))
47 options.final_apk_path = ("%s-lang-%s.apk" % 47 options.final_apk_path = ("%s-lang-%s.apk" %
48 (options.base_output_path, lang)) 48 (options.base_output_path, lang))
49 finalize_apk.FinalizeApk(options) 49 finalize_apk.FinalizeApk(options)
50 50
51 if __name__ == '__main__': 51 if __name__ == '__main__':
52 sys.exit(main()) 52 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/gyp/emma_instr.py ('k') | build/android/gyp/generate_resource_rewriter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698