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

Side by Side Diff: build/android/gyp/configure_multidex.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/apkbuilder.py ('k') | build/android/gyp/copy_ex.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 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 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 6
7 import argparse 7 import argparse
8 import json 8 import json
9 import os 9 import os
10 import sys 10 import sys
(...skipping 19 matching lines...) Expand all
30 parser.add_argument('--multidex-configuration-path', required=True, 30 parser.add_argument('--multidex-configuration-path', required=True,
31 help='The path to which the multidex configuration JSON ' 31 help='The path to which the multidex configuration JSON '
32 'should be saved.') 32 'should be saved.')
33 parser.add_argument('--multidex-config-java-file', required=True) 33 parser.add_argument('--multidex-config-java-file', required=True)
34 parser.add_argument('--multidex-config-java-stamp', required=True) 34 parser.add_argument('--multidex-config-java-stamp', required=True)
35 parser.add_argument('--multidex-config-java-template', required=True) 35 parser.add_argument('--multidex-config-java-template', required=True)
36 36
37 args = parser.parse_args() 37 args = parser.parse_args()
38 38
39 if args.enabled_configurations: 39 if args.enabled_configurations:
40 args.enabled_configurations = build_utils.ParseGypList( 40 args.enabled_configurations = build_utils.ParseGnList(
41 args.enabled_configurations) 41 args.enabled_configurations)
42 42
43 return args 43 return args
44 44
45 45
46 def _WriteConfigJson(multidex_enabled, multidex_configuration_path): 46 def _WriteConfigJson(multidex_enabled, multidex_configuration_path):
47 config = { 47 config = {
48 'enabled': multidex_enabled, 48 'enabled': multidex_enabled,
49 } 49 }
50 50
(...skipping 27 matching lines...) Expand all
78 78
79 _WriteConfigJson(multidex_enabled, args.multidex_configuration_path) 79 _WriteConfigJson(multidex_enabled, args.multidex_configuration_path)
80 _GenerateMultidexConfigJava(multidex_enabled, args) 80 _GenerateMultidexConfigJava(multidex_enabled, args)
81 81
82 return 0 82 return 0
83 83
84 84
85 if __name__ == '__main__': 85 if __name__ == '__main__':
86 sys.exit(main()) 86 sys.exit(main())
87 87
OLDNEW
« no previous file with comments | « build/android/gyp/apkbuilder.py ('k') | build/android/gyp/copy_ex.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698