OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |