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

Side by Side Diff: components/cronet/tools/extract_from_jars.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 | « components/cronet/android/BUILD.gn ('k') | components/cronet/tools/generate_javadoc.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 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 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 22 matching lines...) Expand all
33 build_utils.AddDepfileOption(parser) 33 build_utils.AddDepfileOption(parser)
34 parser.add_option('--classes-dir', help='Directory to extract .class files.') 34 parser.add_option('--classes-dir', help='Directory to extract .class files.')
35 parser.add_option('--jars', help='Paths to jars to extract.') 35 parser.add_option('--jars', help='Paths to jars to extract.')
36 parser.add_option('--stamp', help='Path to touch on success.') 36 parser.add_option('--stamp', help='Path to touch on success.')
37 37
38 options, _ = parser.parse_args() 38 options, _ = parser.parse_args()
39 39
40 ExtractJars(options) 40 ExtractJars(options)
41 41
42 if options.depfile: 42 if options.depfile:
43 build_utils.WriteDepfile(options.depfile, 43 assert options.stamp
44 build_utils.GetPythonDependencies()) 44 build_utils.WriteDepfile(options.depfile, options.stamp)
45 45
46 if options.stamp: 46 if options.stamp:
47 build_utils.Touch(options.stamp) 47 build_utils.Touch(options.stamp)
48 48
49 49
50 if __name__ == '__main__': 50 if __name__ == '__main__':
51 sys.exit(main()) 51 sys.exit(main())
52 52
OLDNEW
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | components/cronet/tools/generate_javadoc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698