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

Side by Side Diff: build/android/incremental_install/generate_android_manifest.py

Issue 2336173003: Fix android depfiles to always list GN's outputs[0] (Closed)
Patch Set: fix cronet_package Created 4 years, 3 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
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « build/android/incremental_install/create_install_script.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698