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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 }, | 274 }, |
275 ], | 275 ], |
276 }], | 276 }], |
277 ], | 277 ], |
278 'actions': [ | 278 'actions': [ |
279 { | 279 { |
280 'action_name': 'javac_<(_target_name)', | 280 'action_name': 'javac_<(_target_name)', |
281 'message': 'Compiling <(_target_name) java sources', | 281 'message': 'Compiling <(_target_name) java sources', |
282 'variables': { | 282 'variables': { |
283 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], | 283 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], |
284 'java_source_list': '>|(javasources.<(_target_name).gypcmd >@(java_sourc
es))', | |
285 }, | 284 }, |
286 'inputs': [ | 285 'inputs': [ |
287 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 286 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
288 '<(DEPTH)/build/android/gyp/javac.py', | 287 '<(DEPTH)/build/android/gyp/javac.py', |
289 '>@(java_sources)', | 288 '>@(java_sources)', |
290 '>(java_source_list)', | |
291 '>@(input_jars_paths)', | 289 '>@(input_jars_paths)', |
292 '>@(additional_input_paths)', | 290 '>@(additional_input_paths)', |
293 ], | 291 ], |
294 'outputs': [ | 292 'outputs': [ |
295 '<(compile_stamp)', | 293 '<(compile_stamp)', |
296 ], | 294 ], |
297 'action': [ | 295 'action': [ |
298 'python', '<(DEPTH)/build/android/gyp/javac.py', | 296 'python', '<(DEPTH)/build/android/gyp/javac.py', |
299 '--output-dir=<(classes_dir)', | 297 '--output-dir=<(classes_dir)', |
300 '--classpath=>(input_jars_paths)', | 298 '--classpath=>(input_jars_paths)', |
301 '--src-filelist=>(java_source_list)', | |
302 '--src-gendirs=>(generated_src_dirs)', | 299 '--src-gendirs=>(generated_src_dirs)', |
303 '--javac-includes=<(javac_includes)', | 300 '--javac-includes=<(javac_includes)', |
304 '--chromium-code=<(chromium_code)', | 301 '--chromium-code=<(chromium_code)', |
305 '--stamp=<(compile_stamp)', | 302 '--stamp=<(compile_stamp)', |
| 303 '>@(java_sources)', |
306 ] | 304 ] |
307 }, | 305 }, |
308 { | 306 { |
309 'variables': { | 307 'variables': { |
310 'src_dirs': [ | 308 'src_dirs': [ |
311 '<(java_in_dir)/src', | 309 '<(java_in_dir)/src', |
312 '>@(additional_src_dirs)', | 310 '>@(additional_src_dirs)', |
313 ], | 311 ], |
314 'stamp_path': '<(lint_stamp)', | 312 'stamp_path': '<(lint_stamp)', |
315 'result_path': '<(lint_result)', | 313 'result_path': '<(lint_result)', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 'dex_no_locals': 1, | 383 'dex_no_locals': 1, |
386 }], | 384 }], |
387 ], | 385 ], |
388 'dex_input_paths': [ '<(jar_final_path)' ], | 386 'dex_input_paths': [ '<(jar_final_path)' ], |
389 'output_path': '<(dex_path)', | 387 'output_path': '<(dex_path)', |
390 }, | 388 }, |
391 'includes': [ 'android/dex_action.gypi' ], | 389 'includes': [ 'android/dex_action.gypi' ], |
392 }, | 390 }, |
393 ], | 391 ], |
394 } | 392 } |
OLD | NEW |