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

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: Extracted some constants Created 5 years, 7 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 # 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 75 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
76 'compile_stamp': '<(intermediate_dir)/compile.stamp', 76 'compile_stamp': '<(intermediate_dir)/compile.stamp',
77 'lint_stamp': '<(intermediate_dir)/lint.stamp', 77 'lint_stamp': '<(intermediate_dir)/lint.stamp',
78 'lint_result': '<(intermediate_dir)/lint_result.xml', 78 'lint_result': '<(intermediate_dir)/lint_result.xml',
79 'lint_config': '<(intermediate_dir)/lint_config.xml', 79 'lint_config': '<(intermediate_dir)/lint_config.xml',
80 'never_lint%': 0, 80 'never_lint%': 0,
81 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', 81 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp',
82 'run_findbugs%': 0, 82 'run_findbugs%': 0,
83 'proguard_config%': '', 83 'proguard_config%': '',
84 'proguard_preprocess%': '0', 84 'proguard_preprocess%': '0',
85 'enable_errorprone%': '0',
86 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
85 'variables': { 87 'variables': {
86 'variables': { 88 'variables': {
87 'proguard_preprocess%': 0, 89 'proguard_preprocess%': 0,
88 'emma_never_instrument%': 0, 90 'emma_never_instrument%': 0,
89 }, 91 },
90 'conditions': [ 92 'conditions': [
91 ['proguard_preprocess == 1', { 93 ['proguard_preprocess == 1', {
92 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' 94 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar'
93 }, { 95 }, {
94 'javac_jar_path': '<(jar_path)' 96 'javac_jar_path': '<(jar_path)'
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ], 251 ],
250 }], 252 }],
251 ], 253 ],
252 'actions': [ 254 'actions': [
253 { 255 {
254 'action_name': 'javac_<(_target_name)', 256 'action_name': 'javac_<(_target_name)',
255 'message': 'Compiling <(_target_name) java sources', 257 'message': 'Compiling <(_target_name) java sources',
256 'variables': { 258 'variables': {
257 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'], 259 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'],
258 }, 260 },
261 'conditions': [
262 ['enable_errorprone == 1', {
263 'extra_inputs': [
264 '<(errorprone_exe_path)',
265 ],
266 'extra_args': [ '--errorprone-path=<(errorprone_exe_path)' ],
267 }],
268 ],
259 'inputs': [ 269 'inputs': [
260 '<(DEPTH)/build/android/gyp/util/build_utils.py', 270 '<(DEPTH)/build/android/gyp/util/build_utils.py',
261 '<(DEPTH)/build/android/gyp/javac.py', 271 '<(DEPTH)/build/android/gyp/javac.py',
262 '>@(java_sources)', 272 '>@(java_sources)',
263 '>@(input_jars_paths)', 273 '>@(input_jars_paths)',
264 '>@(additional_input_paths)', 274 '>@(additional_input_paths)',
265 ], 275 ],
266 'outputs': [ 276 'outputs': [
267 '<(compile_stamp)', 277 '<(compile_stamp)',
268 '<(javac_jar_path)', 278 '<(javac_jar_path)',
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 'dex_no_locals': 1, 352 'dex_no_locals': 1,
343 }], 353 }],
344 ], 354 ],
345 'dex_input_paths': [ '<(jar_final_path)' ], 355 'dex_input_paths': [ '<(jar_final_path)' ],
346 'output_path': '<(dex_path)', 356 'output_path': '<(dex_path)',
347 }, 357 },
348 'includes': [ 'android/dex_action.gypi' ], 358 'includes': [ 'android/dex_action.gypi' ],
349 }, 359 },
350 ], 360 ],
351 } 361 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698