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

Side by Side Diff: build/android/gyp/gcc_preprocess.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/find_sun_tools_jar.py ('k') | build/android/gyp/generate_split_manifest.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 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 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 import optparse 7 import optparse
8 import os 8 import os
9 import sys 9 import sys
10 10
(...skipping 28 matching lines...) Expand all
39 parser.add_option('--template', help='Path to template.') 39 parser.add_option('--template', help='Path to template.')
40 parser.add_option('--output', help='Path for generated file.') 40 parser.add_option('--output', help='Path for generated file.')
41 parser.add_option('--stamp', help='Path to touch on success.') 41 parser.add_option('--stamp', help='Path to touch on success.')
42 parser.add_option('--defines', help='Pre-defines macros', action='append') 42 parser.add_option('--defines', help='Pre-defines macros', action='append')
43 43
44 options, _ = parser.parse_args(args) 44 options, _ = parser.parse_args(args)
45 45
46 DoGcc(options) 46 DoGcc(options)
47 47
48 if options.depfile: 48 if options.depfile:
49 build_utils.WriteDepfile( 49 build_utils.WriteDepfile(options.depfile, options.output)
50 options.depfile,
51 build_utils.GetPythonDependencies())
52 50
53 if options.stamp: 51 if options.stamp:
54 build_utils.Touch(options.stamp) 52 build_utils.Touch(options.stamp)
55 53
56 54
57 if __name__ == '__main__': 55 if __name__ == '__main__':
58 sys.exit(main(sys.argv[1:])) 56 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « build/android/gyp/find_sun_tools_jar.py ('k') | build/android/gyp/generate_split_manifest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698