OLD | NEW |
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 Loading... |
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 ], | 247 ], |
246 }], | 248 }], |
247 ], | 249 ], |
248 'actions': [ | 250 'actions': [ |
249 { | 251 { |
250 'action_name': 'javac_<(_target_name)', | 252 'action_name': 'javac_<(_target_name)', |
251 'message': 'Compiling <(_target_name) java sources', | 253 'message': 'Compiling <(_target_name) java sources', |
252 'variables': { | 254 'variables': { |
253 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], | 255 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], |
254 }, | 256 }, |
| 257 'conditions': [ |
| 258 ['enable_errorprone == 1', { |
| 259 'extra_inputs': [ |
| 260 '<(errorprone_exe_path)', |
| 261 ], |
| 262 'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ], |
| 263 }], |
| 264 ], |
255 'inputs': [ | 265 'inputs': [ |
256 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 266 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
257 '<(DEPTH)/build/android/gyp/javac.py', | 267 '<(DEPTH)/build/android/gyp/javac.py', |
258 '>@(java_sources)', | 268 '>@(java_sources)', |
259 '>@(input_jars_paths)', | 269 '>@(input_jars_paths)', |
260 '>@(additional_input_paths)', | 270 '>@(additional_input_paths)', |
261 ], | 271 ], |
262 'outputs': [ | 272 'outputs': [ |
263 '<(compile_stamp)', | 273 '<(compile_stamp)', |
264 '<(javac_jar_path)', | 274 '<(javac_jar_path)', |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 'dex_no_locals': 1, | 348 'dex_no_locals': 1, |
339 }], | 349 }], |
340 ], | 350 ], |
341 'dex_input_paths': [ '<(jar_final_path)' ], | 351 'dex_input_paths': [ '<(jar_final_path)' ], |
342 'output_path': '<(dex_path)', | 352 'output_path': '<(dex_path)', |
343 }, | 353 }, |
344 'includes': [ 'android/dex_action.gypi' ], | 354 'includes': [ 'android/dex_action.gypi' ], |
345 }, | 355 }, |
346 ], | 356 ], |
347 } | 357 } |
OLD | NEW |