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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 'res_extra_dirs': [], | 70 'res_extra_dirs': [], |
71 'res_extra_files': [], | 71 'res_extra_files': [], |
72 'res_v14_verify_only%': 0, | 72 'res_v14_verify_only%': 0, |
73 'resource_input_paths': ['>@(res_extra_files)'], | 73 'resource_input_paths': ['>@(res_extra_files)'], |
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', |
| 81 'run_findbugs%': 0, |
80 'proguard_config%': '', | 82 'proguard_config%': '', |
81 'proguard_preprocess%': '0', | 83 'proguard_preprocess%': '0', |
82 'variables': { | 84 'variables': { |
83 'variables': { | 85 'variables': { |
84 'proguard_preprocess%': 0, | 86 'proguard_preprocess%': 0, |
85 'emma_never_instrument%': 0, | 87 'emma_never_instrument%': 0, |
86 }, | 88 }, |
87 'conditions': [ | 89 'conditions': [ |
88 ['proguard_preprocess == 1', { | 90 ['proguard_preprocess == 1', { |
89 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' | 91 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 'python', '<(DEPTH)/build/android/gyp/proguard.py', | 212 'python', '<(DEPTH)/build/android/gyp/proguard.py', |
211 '--proguard-path=<(android_sdk_root)/tools/proguard/lib/proguard.jar
', | 213 '--proguard-path=<(android_sdk_root)/tools/proguard/lib/proguard.jar
', |
212 '--input-path=<(javac_jar_path)', | 214 '--input-path=<(javac_jar_path)', |
213 '--output-path=<(jar_path)', | 215 '--output-path=<(jar_path)', |
214 '--proguard-config=<(proguard_config)', | 216 '--proguard-config=<(proguard_config)', |
215 '--classpath=<(android_sdk_jar) >(input_jars_paths)', | 217 '--classpath=<(android_sdk_jar) >(input_jars_paths)', |
216 ] | 218 ] |
217 }, | 219 }, |
218 ], | 220 ], |
219 }], | 221 }], |
| 222 ['run_findbugs == 1', { |
| 223 'actions': [ |
| 224 { |
| 225 'action_name': 'findbugs_<(_target_name)', |
| 226 'message': 'Running findbugs on <(_target_name)', |
| 227 'inputs': [ |
| 228 '<(DEPTH)/build/android/findbugs_diff.py', |
| 229 '<(DEPTH)/build/android/findbugs_filter/findbugs_exclude.xml', |
| 230 '<(DEPTH)/build/android/pylib/utils/findbugs.py', |
| 231 '>@(input_jars_paths)', |
| 232 '<(jar_final_path)', |
| 233 '<(compile_stamp)', |
| 234 ], |
| 235 'outputs': [ |
| 236 '<(findbugs_stamp)', |
| 237 ], |
| 238 'action': [ |
| 239 'python', '<(DEPTH)/build/android/findbugs_diff.py', |
| 240 '--auxclasspath-gyp', '>(input_jars_paths)', |
| 241 '--stamp', '<(findbugs_stamp)', |
| 242 '<(jar_final_path)', |
| 243 ], |
| 244 }, |
| 245 ], |
| 246 }], |
220 ], | 247 ], |
221 'actions': [ | 248 'actions': [ |
222 { | 249 { |
223 'action_name': 'javac_<(_target_name)', | 250 'action_name': 'javac_<(_target_name)', |
224 'message': 'Compiling <(_target_name) java sources', | 251 'message': 'Compiling <(_target_name) java sources', |
225 'variables': { | 252 'variables': { |
226 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], | 253 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], |
227 }, | 254 }, |
228 'inputs': [ | 255 'inputs': [ |
229 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 256 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 'dex_no_locals': 1, | 338 'dex_no_locals': 1, |
312 }], | 339 }], |
313 ], | 340 ], |
314 'dex_input_paths': [ '<(jar_final_path)' ], | 341 'dex_input_paths': [ '<(jar_final_path)' ], |
315 'output_path': '<(dex_path)', | 342 'output_path': '<(dex_path)', |
316 }, | 343 }, |
317 'includes': [ 'android/dex_action.gypi' ], | 344 'includes': [ 'android/dex_action.gypi' ], |
318 }, | 345 }, |
319 ], | 346 ], |
320 } | 347 } |
OLD | NEW |