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

Side by Side Diff: build/java.gypi

Issue 1000793002: [Android] Incorporate findbugs into android builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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%': 1,
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
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',
cjhopman 2015/03/12 19:22:43 This should also include >@(input_jars_paths) i th
jbudorick 2015/03/13 13:12:20 yep, it should. done.
231 '<(jar_final_path)',
232 '<(compile_stamp)',
233 ],
234 'outputs': [
235 '<(findbugs_stamp)',
236 ],
237 'action': [
238 'python', '<(DEPTH)/build/android/findbugs_diff.py',
239 '--auxclasspath-gyp', '>(input_jars_paths)',
240 '--stamp', '<(findbugs_stamp)',
241 '<(jar_final_path)',
242 ],
243 },
244 ],
245 }],
220 ], 246 ],
221 'actions': [ 247 'actions': [
222 { 248 {
223 'action_name': 'javac_<(_target_name)', 249 'action_name': 'javac_<(_target_name)',
224 'message': 'Compiling <(_target_name) java sources', 250 'message': 'Compiling <(_target_name) java sources',
225 'variables': { 251 'variables': {
226 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'], 252 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'],
227 }, 253 },
228 'inputs': [ 254 'inputs': [
229 '<(DEPTH)/build/android/gyp/util/build_utils.py', 255 '<(DEPTH)/build/android/gyp/util/build_utils.py',
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 'action_name': 'dex_<(_target_name)', 333 'action_name': 'dex_<(_target_name)',
308 'variables': { 334 'variables': {
309 'conditions': [ 335 'conditions': [
310 ['emma_instrument != 0', { 336 ['emma_instrument != 0', {
311 'dex_no_locals': 1, 337 'dex_no_locals': 1,
312 }], 338 }],
313 ], 339 ],
314 'dex_input_paths': [ '<(jar_final_path)' ], 340 'dex_input_paths': [ '<(jar_final_path)' ],
315 'output_path': '<(dex_path)', 341 'output_path': '<(dex_path)',
316 }, 342 },
343 'inputs': [
cjhopman 2015/03/12 19:22:43 Is this required? I believe that gyp will create a
jbudorick 2015/03/13 13:12:19 No, it isn't. In fact, builds locally seem to be g
344 '<(findbugs_stamp)',
345 '<(lint_stamp)',
346 ],
317 'includes': [ 'android/dex_action.gypi' ], 347 'includes': [ 'android/dex_action.gypi' ],
318 }, 348 },
319 ], 349 ],
320 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698