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

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

Issue 649653004: Revert of Temporarily suppress Android API deprecation warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | no next file » | 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 fnmatch 7 import fnmatch
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 '-source', '1.7', 75 '-source', '1.7',
76 '-target', '1.7', 76 '-target', '1.7',
77 '-classpath', ':'.join(classpath), 77 '-classpath', ':'.join(classpath),
78 '-d', classes_dir] 78 '-d', classes_dir]
79 if chromium_code: 79 if chromium_code:
80 javac_args.extend(['-Xlint:unchecked']) 80 javac_args.extend(['-Xlint:unchecked', '-Xlint:deprecation'])
81 # TODO(aurimas): re-enable this after the L SDK is launched and make
82 # everyone fix new deprecation warnings correctly.
83 # http://crbug.com/405174,398669,411361,411366,411367,411376,416041
84 # '-Xlint:deprecation'
85 else: 81 else:
86 # XDignore.symbol.file makes javac compile against rt.jar instead of 82 # XDignore.symbol.file makes javac compile against rt.jar instead of
87 # ct.sym. This means that using a java internal package/class will not 83 # ct.sym. This means that using a java internal package/class will not
88 # trigger a compile warning or error. 84 # trigger a compile warning or error.
89 javac_args.extend(['-XDignore.symbol.file']) 85 javac_args.extend(['-XDignore.symbol.file'])
90 86
91 javac_cmd = ['javac'] + javac_args + java_files 87 javac_cmd = ['javac'] + javac_args + java_files
92 88
93 def Compile(): 89 def Compile():
94 build_utils.CheckOutput( 90 build_utils.CheckOutput(
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 build_utils.WriteDepfile( 253 build_utils.WriteDepfile(
258 options.depfile, 254 options.depfile,
259 input_files + build_utils.GetPythonDependencies()) 255 input_files + build_utils.GetPythonDependencies())
260 256
261 if options.stamp: 257 if options.stamp:
262 build_utils.Touch(options.stamp) 258 build_utils.Touch(options.stamp)
263 259
264 260
265 if __name__ == '__main__': 261 if __name__ == '__main__':
266 sys.exit(main(sys.argv[1:])) 262 sys.exit(main(sys.argv[1:]))
263
264
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698