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

Side by Side Diff: build/java.gypi

Issue 1136573002: Use the Errorprone Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full Sync and Update Created 5 years, 6 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/host_jar.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is meant to be included into a target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to build Java in a consistent manner. 6 # to build Java in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my-package_java', 10 # 'target_name': 'my-package_java',
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
75 'compile_stamp': '<(intermediate_dir)/compile.stamp', 75 'compile_stamp': '<(intermediate_dir)/compile.stamp',
76 'lint_stamp': '<(intermediate_dir)/lint.stamp', 76 'lint_stamp': '<(intermediate_dir)/lint.stamp',
77 'lint_result': '<(intermediate_dir)/lint_result.xml', 77 'lint_result': '<(intermediate_dir)/lint_result.xml',
78 'lint_config': '<(intermediate_dir)/lint_config.xml', 78 'lint_config': '<(intermediate_dir)/lint_config.xml',
79 'never_lint%': 0, 79 'never_lint%': 0,
80 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', 80 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp',
81 'run_findbugs%': 0, 81 'run_findbugs%': 0,
82 'proguard_config%': '', 82 'proguard_config%': '',
83 'proguard_preprocess%': '0', 83 'proguard_preprocess%': '0',
84 'enable_errorprone%': '0',
85 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
84 'variables': { 86 'variables': {
85 'variables': { 87 'variables': {
86 'proguard_preprocess%': 0, 88 'proguard_preprocess%': 0,
87 'emma_never_instrument%': 0, 89 'emma_never_instrument%': 0,
88 }, 90 },
89 'conditions': [ 91 'conditions': [
90 ['proguard_preprocess == 1', { 92 ['proguard_preprocess == 1', {
91 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' 93 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar'
92 }, { 94 }, {
93 'javac_jar_path': '<(jar_path)' 95 'javac_jar_path': '<(jar_path)'
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 ], 239 ],
238 'action': [ 240 'action': [
239 'python', '<(DEPTH)/build/android/findbugs_diff.py', 241 'python', '<(DEPTH)/build/android/findbugs_diff.py',
240 '--auxclasspath-gyp', '>(input_jars_paths)', 242 '--auxclasspath-gyp', '>(input_jars_paths)',
241 '--stamp', '<(findbugs_stamp)', 243 '--stamp', '<(findbugs_stamp)',
242 '<(jar_final_path)', 244 '<(jar_final_path)',
243 ], 245 ],
244 }, 246 },
245 ], 247 ],
246 }], 248 }],
249 ['enable_errorprone == 1', {
250 'dependencies': [
251 '<(DEPTH)/third_party/errorprone/errorprone.gyp:chromium_errorprone',
252 ],
253 }],
247 ], 254 ],
248 'actions': [ 255 'actions': [
249 { 256 {
250 'action_name': 'javac_<(_target_name)', 257 'action_name': 'javac_<(_target_name)',
251 'message': 'Compiling <(_target_name) java sources', 258 'message': 'Compiling <(_target_name) java sources',
252 'variables': { 259 'variables': {
260 'extra_args': [],
261 'extra_inputs': [],
253 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'], 262 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'],
263 'conditions': [
264 ['enable_errorprone == 1', {
265 'extra_inputs': [
266 '<(errorprone_exe_path)',
267 ],
268 'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ],
269 }],
270 ],
254 }, 271 },
255 'inputs': [ 272 'inputs': [
256 '<(DEPTH)/build/android/gyp/util/build_utils.py', 273 '<(DEPTH)/build/android/gyp/util/build_utils.py',
257 '<(DEPTH)/build/android/gyp/javac.py', 274 '<(DEPTH)/build/android/gyp/javac.py',
258 '>@(java_sources)', 275 '>@(java_sources)',
259 '>@(input_jars_paths)', 276 '>@(input_jars_paths)',
260 '>@(additional_input_paths)', 277 '>@(additional_input_paths)',
278 '<@(extra_inputs)',
261 ], 279 ],
262 'outputs': [ 280 'outputs': [
263 '<(compile_stamp)', 281 '<(compile_stamp)',
264 '<(javac_jar_path)', 282 '<(javac_jar_path)',
265 ], 283 ],
266 'action': [ 284 'action': [
267 'python', '<(DEPTH)/build/android/gyp/javac.py', 285 'python', '<(DEPTH)/build/android/gyp/javac.py',
268 '--classpath=>(input_jars_paths)', 286 '--classpath=>(input_jars_paths)',
269 '--src-gendirs=>(generated_src_dirs)', 287 '--src-gendirs=>(generated_src_dirs)',
270 '--javac-includes=<(javac_includes)', 288 '--javac-includes=<(javac_includes)',
271 '--chromium-code=<(chromium_code)', 289 '--chromium-code=<(chromium_code)',
272 '--jar-path=<(javac_jar_path)', 290 '--jar-path=<(javac_jar_path)',
273 '--jar-excluded-classes=<(jar_excluded_classes)', 291 '--jar-excluded-classes=<(jar_excluded_classes)',
274 '--stamp=<(compile_stamp)', 292 '--stamp=<(compile_stamp)',
275 '>@(java_sources)', 293 '>@(java_sources)',
294 '<@(extra_args)',
276 ] 295 ]
277 }, 296 },
278 { 297 {
279 'action_name': 'instr_jar_<(_target_name)', 298 'action_name': 'instr_jar_<(_target_name)',
280 'message': 'Instrumenting <(_target_name) jar', 299 'message': 'Instrumenting <(_target_name) jar',
281 'variables': { 300 'variables': {
282 'input_path': '<(jar_path)', 301 'input_path': '<(jar_path)',
283 'output_path': '<(jar_final_path)', 302 'output_path': '<(jar_final_path)',
284 'stamp_path': '<(instr_stamp)', 303 'stamp_path': '<(instr_stamp)',
285 'instr_type': 'jar', 304 'instr_type': 'jar',
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 'dex_no_locals': 1, 357 'dex_no_locals': 1,
339 }], 358 }],
340 ], 359 ],
341 'dex_input_paths': [ '<(jar_final_path)' ], 360 'dex_input_paths': [ '<(jar_final_path)' ],
342 'output_path': '<(dex_path)', 361 'output_path': '<(dex_path)',
343 }, 362 },
344 'includes': [ 'android/dex_action.gypi' ], 363 'includes': [ 'android/dex_action.gypi' ],
345 }, 364 },
346 ], 365 ],
347 } 366 }
OLDNEW
« no previous file with comments | « build/host_jar.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698