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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
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 fnmatch 7 import fnmatch
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 jar_inputs = [] 66 jar_inputs = []
67 for path in classpath: 67 for path in classpath:
68 if os.path.exists(path + '.TOC'): 68 if os.path.exists(path + '.TOC'):
69 jar_inputs.append(path + '.TOC') 69 jar_inputs.append(path + '.TOC')
70 else: 70 else:
71 jar_inputs.append(path) 71 jar_inputs.append(path)
72 72
73 javac_args = [ 73 javac_args = [
74 '-g', 74 '-g',
75 # Chromium only allows UTF8 source files. Being explicit avoids
76 # javac pulling a default encoding from the user's environment.
77 '-encoding', 'UTF-8',
75 '-source', '1.7', 78 '-source', '1.7',
76 '-target', '1.7', 79 '-target', '1.7',
77 '-classpath', ':'.join(classpath), 80 '-classpath', ':'.join(classpath),
78 '-d', classes_dir] 81 '-d', classes_dir]
79 if chromium_code: 82 if chromium_code:
80 javac_args.extend(['-Xlint:unchecked', '-Xlint:deprecation']) 83 javac_args.extend(['-Xlint:unchecked', '-Xlint:deprecation'])
81 else: 84 else:
82 # XDignore.symbol.file makes javac compile against rt.jar instead of 85 # XDignore.symbol.file makes javac compile against rt.jar instead of
83 # ct.sym. This means that using a java internal package/class will not 86 # ct.sym. This means that using a java internal package/class will not
84 # trigger a compile warning or error. 87 # trigger a compile warning or error.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 input_files + build_utils.GetPythonDependencies()) 258 input_files + build_utils.GetPythonDependencies())
256 259
257 if options.stamp: 260 if options.stamp:
258 build_utils.Touch(options.stamp) 261 build_utils.Touch(options.stamp)
259 262
260 263
261 if __name__ == '__main__': 264 if __name__ == '__main__':
262 sys.exit(main(sys.argv[1:])) 265 sys.exit(main(sys.argv[1:]))
263 266
264 267
OLDNEW
« no previous file with comments | « build/android/findbugs_filter/findbugs_known_bugs.txt ('k') | build/android/gyp/process_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698