| 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 incremental APK. | 6 """Creates an AndroidManifest.xml for an incremental APK. |
| 7 | 7 |
| 8 Given the manifest file for the real APK, generates an AndroidManifest.xml with | 8 Given the manifest file for the real APK, generates an AndroidManifest.xml with |
| 9 the application class changed to IncrementalApplication. | 9 the application class changed to IncrementalApplication. |
| 10 """ | 10 """ |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 def main(): | 94 def main(): |
| 95 options = _ParseArgs() | 95 options = _ParseArgs() |
| 96 with open(options.src_manifest) as f: | 96 with open(options.src_manifest) as f: |
| 97 main_manifest_data = f.read() | 97 main_manifest_data = f.read() |
| 98 new_manifest_data = _ProcessManifest(main_manifest_data, | 98 new_manifest_data = _ProcessManifest(main_manifest_data, |
| 99 options.disable_isolated_processes) | 99 options.disable_isolated_processes) |
| 100 with open(options.out_manifest, 'w') as f: | 100 with open(options.out_manifest, 'w') as f: |
| 101 f.write(new_manifest_data) | 101 f.write(new_manifest_data) |
| 102 | 102 |
| 103 if options.depfile: | 103 if options.depfile: |
| 104 build_utils.WriteDepfile( | 104 deps = [options.src_manifest] |
| 105 options.depfile, | 105 build_utils.WriteDepfile(options.depfile, options.out_manifest, deps) |
| 106 [options.src_manifest] + build_utils.GetPythonDependencies()) | |
| 107 | 106 |
| 108 | 107 |
| 109 if __name__ == '__main__': | 108 if __name__ == '__main__': |
| 110 main() | 109 main() |
| OLD | NEW |