| 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', '-Xlint:deprecation']) | 80 javac_args.extend(['-Xlint:unchecked']) |
| 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' |
| 81 else: | 85 else: |
| 82 # XDignore.symbol.file makes javac compile against rt.jar instead of | 86 # 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 | 87 # ct.sym. This means that using a java internal package/class will not |
| 84 # trigger a compile warning or error. | 88 # trigger a compile warning or error. |
| 85 javac_args.extend(['-XDignore.symbol.file']) | 89 javac_args.extend(['-XDignore.symbol.file']) |
| 86 | 90 |
| 87 javac_cmd = ['javac'] + javac_args + java_files | 91 javac_cmd = ['javac'] + javac_args + java_files |
| 88 | 92 |
| 89 def Compile(): | 93 def Compile(): |
| 90 build_utils.CheckOutput( | 94 build_utils.CheckOutput( |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 build_utils.WriteDepfile( | 257 build_utils.WriteDepfile( |
| 254 options.depfile, | 258 options.depfile, |
| 255 input_files + build_utils.GetPythonDependencies()) | 259 input_files + build_utils.GetPythonDependencies()) |
| 256 | 260 |
| 257 if options.stamp: | 261 if options.stamp: |
| 258 build_utils.Touch(options.stamp) | 262 build_utils.Touch(options.stamp) |
| 259 | 263 |
| 260 | 264 |
| 261 if __name__ == '__main__': | 265 if __name__ == '__main__': |
| 262 sys.exit(main(sys.argv[1:])) | 266 sys.exit(main(sys.argv[1:])) |
| 263 | |
| 264 | |
| OLD | NEW |