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

Side by Side Diff: build/android/gyp/process_resources.py

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 years, 10 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/lint.py ('k') | build/android/gyp/proguard.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 (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 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 """Process Android library resources to generate R.java and crunched images.""" 7 """Process Android library resources to generate R.java and crunched images."""
8 8
9 import optparse 9 import optparse
10 import os 10 import os
11 import shlex 11 import shlex
12 import shutil 12 import shutil
13 13
14 from util import build_utils # pylint: disable=F0401 14 from util import build_utils
15 15
16 def ParseArgs(): 16 def ParseArgs():
17 """Parses command line options. 17 """Parses command line options.
18 18
19 Returns: 19 Returns:
20 An options object as from optparse.OptionsParser.parse_args() 20 An options object as from optparse.OptionsParser.parse_args()
21 """ 21 """
22 parser = optparse.OptionParser() 22 parser = optparse.OptionParser()
23 parser.add_option('--android-sdk', help='path to the Android SDK folder') 23 parser.add_option('--android-sdk', help='path to the Android SDK folder')
24 parser.add_option('--android-sdk-tools', 24 parser.add_option('--android-sdk-tools',
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 build_utils.CheckOutput(aapt_cmd, fail_if_stderr=True) 116 build_utils.CheckOutput(aapt_cmd, fail_if_stderr=True)
117 117
118 MoveImagesToNonMdpiFolders(options.crunch_output_dir) 118 MoveImagesToNonMdpiFolders(options.crunch_output_dir)
119 119
120 if options.stamp: 120 if options.stamp:
121 build_utils.Touch(options.stamp) 121 build_utils.Touch(options.stamp)
122 122
123 123
124 if __name__ == '__main__': 124 if __name__ == '__main__':
125 main() 125 main()
OLDNEW
« no previous file with comments | « build/android/gyp/lint.py ('k') | build/android/gyp/proguard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698