OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |