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

Side by Side Diff: build/android/incremental_install/create_install_script.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 6
7 """Creates a script to run an "_incremental" .apk.""" 7 """Creates a script to run an "_incremental" .apk."""
8 8
9 import argparse 9 import argparse
10 import os 10 import os
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 'show_proguard_warning': pformat(options.show_proguard_warning), 144 'show_proguard_warning': pformat(options.show_proguard_warning),
145 'splits': pformat([relativize(p) for p in options.splits]), 145 'splits': pformat([relativize(p) for p in options.splits]),
146 } 146 }
147 147
148 with open(options.script_output_path, 'w') as script: 148 with open(options.script_output_path, 'w') as script:
149 script.write(SCRIPT_TEMPLATE.format(**template_args)) 149 script.write(SCRIPT_TEMPLATE.format(**template_args))
150 150
151 os.chmod(options.script_output_path, 0750) 151 os.chmod(options.script_output_path, 0750)
152 152
153 if options.depfile: 153 if options.depfile:
154 build_utils.WriteDepfile( 154 build_utils.WriteDepfile(options.depfile, options.script_output_path)
155 options.depfile,
156 build_utils.GetPythonDependencies())
157 155
158 156
159 if __name__ == '__main__': 157 if __name__ == '__main__':
160 sys.exit(main(sys.argv[1:])) 158 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « build/android/gyp/write_ordered_libraries.py ('k') | build/android/incremental_install/generate_android_manifest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698