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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 'additional_input_paths': [], | 62 'additional_input_paths': [], |
63 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', | 63 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', |
64 'generated_src_dirs': ['>@(generated_R_dirs)'], | 64 'generated_src_dirs': ['>@(generated_R_dirs)'], |
65 'generated_R_dirs': [], | 65 'generated_R_dirs': [], |
66 'has_java_resources%': 0, | 66 'has_java_resources%': 0, |
67 'res_extra_dirs': [], | 67 'res_extra_dirs': [], |
68 'res_extra_files': [], | 68 'res_extra_files': [], |
69 'res_v14_verify_only%': 0, | 69 'res_v14_verify_only%': 0, |
70 'resource_input_paths': ['>@(res_extra_files)'], | 70 'resource_input_paths': ['>@(res_extra_files)'], |
71 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', | 71 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
72 'classes_dir': '<(intermediate_dir)/classes', | |
73 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 72 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
74 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 73 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
75 'lint_result': '<(intermediate_dir)/lint_result.xml', | 74 'lint_result': '<(intermediate_dir)/lint_result.xml', |
76 'lint_config': '<(intermediate_dir)/lint_config.xml', | 75 'lint_config': '<(intermediate_dir)/lint_config.xml', |
77 'never_lint%': 0, | 76 'never_lint%': 0, |
78 'proguard_config%': '', | 77 'proguard_config%': '', |
79 'proguard_preprocess%': '0', | 78 'proguard_preprocess%': '0', |
80 'variables': { | 79 'variables': { |
81 'variables': { | 80 'variables': { |
82 'proguard_preprocess%': 0, | 81 'proguard_preprocess%': 0, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 '>@(java_sources)', | 226 '>@(java_sources)', |
228 '>@(input_jars_paths)', | 227 '>@(input_jars_paths)', |
229 '>@(additional_input_paths)', | 228 '>@(additional_input_paths)', |
230 ], | 229 ], |
231 'outputs': [ | 230 'outputs': [ |
232 '<(compile_stamp)', | 231 '<(compile_stamp)', |
233 '<(javac_jar_path)', | 232 '<(javac_jar_path)', |
234 ], | 233 ], |
235 'action': [ | 234 'action': [ |
236 'python', '<(DEPTH)/build/android/gyp/javac.py', | 235 'python', '<(DEPTH)/build/android/gyp/javac.py', |
237 '--classes-dir=<(classes_dir)', | |
238 '--classpath=>(input_jars_paths)', | 236 '--classpath=>(input_jars_paths)', |
239 '--src-gendirs=>(generated_src_dirs)', | 237 '--src-gendirs=>(generated_src_dirs)', |
240 '--javac-includes=<(javac_includes)', | 238 '--javac-includes=<(javac_includes)', |
241 '--chromium-code=<(chromium_code)', | 239 '--chromium-code=<(chromium_code)', |
242 '--jar-path=<(javac_jar_path)', | 240 '--jar-path=<(javac_jar_path)', |
243 '--jar-excluded-classes=<(jar_excluded_classes)', | 241 '--jar-excluded-classes=<(jar_excluded_classes)', |
244 '--stamp=<(compile_stamp)', | 242 '--stamp=<(compile_stamp)', |
245 '>@(java_sources)', | 243 '>@(java_sources)', |
246 ] | 244 ] |
247 }, | 245 }, |
248 { | 246 { |
| 247 'action_name': 'instr_jar_<(_target_name)', |
| 248 'message': 'Instrumenting <(_target_name) jar', |
| 249 'variables': { |
| 250 'input_path': '<(jar_path)', |
| 251 'output_path': '<(jar_final_path)', |
| 252 'stamp_path': '<(instr_stamp)', |
| 253 'instr_type': 'jar', |
| 254 }, |
| 255 'outputs': [ |
| 256 '<(jar_final_path)', |
| 257 ], |
| 258 'inputs': [ |
| 259 '<(jar_path)', |
| 260 ], |
| 261 'includes': [ 'android/instr_action.gypi' ], |
| 262 }, |
| 263 { |
249 'variables': { | 264 'variables': { |
250 'src_dirs': [ | 265 'src_dirs': [ |
251 '<(java_in_dir)/src', | 266 '<(java_in_dir)/src', |
252 '>@(additional_src_dirs)', | 267 '>@(additional_src_dirs)', |
253 ], | 268 ], |
254 'stamp_path': '<(lint_stamp)', | 269 'stamp_path': '<(lint_stamp)', |
255 'result_path': '<(lint_result)', | 270 'result_path': '<(lint_result)', |
256 'config_path': '<(lint_config)', | 271 'config_path': '<(lint_config)', |
| 272 'lint_jar_path': '<(jar_final_path)', |
257 }, | 273 }, |
258 'inputs': [ | 274 'inputs': [ |
| 275 '<(jar_final_path)', |
259 '<(compile_stamp)', | 276 '<(compile_stamp)', |
260 ], | 277 ], |
261 'outputs': [ | 278 'outputs': [ |
262 '<(lint_stamp)', | 279 '<(lint_stamp)', |
263 ], | 280 ], |
264 'includes': [ 'android/lint_action.gypi' ], | 281 'includes': [ 'android/lint_action.gypi' ], |
265 }, | 282 }, |
266 { | 283 { |
267 'action_name': 'instr_jar_<(_target_name)', | |
268 'message': 'Instrumenting <(_target_name) jar', | |
269 'variables': { | |
270 'input_path': '<(jar_path)', | |
271 'output_path': '<(jar_final_path)', | |
272 'stamp_path': '<(instr_stamp)', | |
273 'instr_type': 'jar', | |
274 }, | |
275 'outputs': [ | |
276 '<(jar_final_path)', | |
277 ], | |
278 'inputs': [ | |
279 '<(jar_path)', | |
280 ], | |
281 'includes': [ 'android/instr_action.gypi' ], | |
282 }, | |
283 { | |
284 'action_name': 'jar_toc_<(_target_name)', | 284 'action_name': 'jar_toc_<(_target_name)', |
285 'message': 'Creating <(_target_name) jar.TOC', | 285 'message': 'Creating <(_target_name) jar.TOC', |
286 'inputs': [ | 286 'inputs': [ |
287 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 287 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
288 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 288 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
289 '<(DEPTH)/build/android/gyp/jar_toc.py', | 289 '<(DEPTH)/build/android/gyp/jar_toc.py', |
290 '<(jar_final_path)', | 290 '<(jar_final_path)', |
291 ], | 291 ], |
292 'outputs': [ | 292 'outputs': [ |
293 '<(jar_final_path).TOC', | 293 '<(jar_final_path).TOC', |
(...skipping 12 matching lines...) Expand all Loading... |
306 'dex_no_locals': 1, | 306 'dex_no_locals': 1, |
307 }], | 307 }], |
308 ], | 308 ], |
309 'dex_input_paths': [ '<(jar_final_path)' ], | 309 'dex_input_paths': [ '<(jar_final_path)' ], |
310 'output_path': '<(dex_path)', | 310 'output_path': '<(dex_path)', |
311 }, | 311 }, |
312 'includes': [ 'android/dex_action.gypi' ], | 312 'includes': [ 'android/dex_action.gypi' ], |
313 }, | 313 }, |
314 ], | 314 ], |
315 } | 315 } |
OLD | NEW |