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