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

Side by Side Diff: build/android/gyp/generate_split_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
« no previous file with comments | « build/android/gyp/gcc_preprocess.py ('k') | build/android/gyp/jar_toc.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 main_manifest = file(options.main_manifest).read() 81 main_manifest = file(options.main_manifest).read()
82 split_manifest = Build( 82 split_manifest = Build(
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 deps = [options.main_manifest]
92 options.depfile, 92 build_utils.WriteDepfile(options.depfile, options.out_manifest, deps)
93 [options.main_manifest] + build_utils.GetPythonDependencies())
94 93
95 94
96 if __name__ == '__main__': 95 if __name__ == '__main__':
97 main() 96 main()
OLDNEW
« no previous file with comments | « build/android/gyp/gcc_preprocess.py ('k') | build/android/gyp/jar_toc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698