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 """Creates an AndroidManifest.xml for an APK split. | 6 """Creates an AndroidManifest.xml for an APK split. |
7 | 7 |
8 Given the manifest file for the main APK, generates an AndroidManifest.xml with | 8 Given the manifest file for the main APK, generates an AndroidManifest.xml with |
9 the value required for a Split APK (package, versionCode, etc). | 9 the value required for a Split APK (package, versionCode, etc). |
10 """ | 10 """ |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 main_manifest, | 83 main_manifest, |
84 options.split, | 84 options.split, |
85 options.has_code) | 85 options.has_code) |
86 | 86 |
87 with file(options.out_manifest, 'w') as f: | 87 with file(options.out_manifest, 'w') as f: |
88 f.write(split_manifest) | 88 f.write(split_manifest) |
89 | 89 |
90 if options.depfile: | 90 if options.depfile: |
91 build_utils.WriteDepfile( | 91 build_utils.WriteDepfile( |
92 options.depfile, | 92 options.depfile, |
93 [main_manifest] + build_utils.GetPythonDependencies()) | 93 [options.main_manifest] + build_utils.GetPythonDependencies()) |
94 | 94 |
95 | 95 |
96 if __name__ == '__main__': | 96 if __name__ == '__main__': |
97 main() | 97 main() |
OLD | NEW |