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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 ] | 273 ] |
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_source_list': '>|(javasources.<(_target_name).gypcmd >!@(find >(ja
va_in_dir)/src >(additional_src_dirs) -name "*.java"))', | 283 'all_src_dirs': [ |
| 284 '>(java_in_dir)/src', |
| 285 '>@(additional_src_dirs)', |
| 286 '>@(generated_src_dirs)', |
| 287 ], |
284 }, | 288 }, |
285 'inputs': [ | 289 'inputs': [ |
286 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 290 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
287 '<(DEPTH)/build/android/gyp/javac.py', | 291 '<(DEPTH)/build/android/gyp/javac.py', |
288 '>(java_source_list)', | 292 '>!@(find >(java_in_dir)/src >(additional_src_dirs) -name "*.java")', |
289 '>@(input_jars_paths)', | 293 '>@(input_jars_paths)', |
290 '>@(additional_input_paths)', | 294 '>@(additional_input_paths)', |
291 ], | 295 ], |
292 'outputs': [ | 296 'outputs': [ |
293 '<(compile_stamp)', | 297 '<(compile_stamp)', |
294 ], | 298 ], |
295 'action': [ | 299 'action': [ |
296 'python', '<(DEPTH)/build/android/gyp/javac.py', | 300 'python', '<(DEPTH)/build/android/gyp/javac.py', |
297 '--output-dir=<(classes_dir)', | 301 '--output-dir=<(classes_dir)', |
298 '--classpath=>(input_jars_paths)', | 302 '--classpath=>(input_jars_paths)', |
299 '--src-filelist=>(java_source_list)', | 303 '--src-dirs=>(all_src_dirs)', |
300 '--src-gendirs=>(generated_src_dirs)', | |
301 '--javac-includes=<(javac_includes)', | 304 '--javac-includes=<(javac_includes)', |
302 '--chromium-code=<(chromium_code)', | 305 '--chromium-code=<(chromium_code)', |
303 '--stamp=<(compile_stamp)', | 306 '--stamp=<(compile_stamp)', |
304 | 307 |
305 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 308 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
306 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 309 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
307 ] | 310 ] |
308 }, | 311 }, |
309 { | 312 { |
310 'variables': { | 313 'variables': { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 'dex_no_locals': 1, | 389 'dex_no_locals': 1, |
387 }], | 390 }], |
388 ], | 391 ], |
389 'dex_input_paths': [ '<(jar_final_path)' ], | 392 'dex_input_paths': [ '<(jar_final_path)' ], |
390 'output_path': '<(dex_path)', | 393 'output_path': '<(dex_path)', |
391 }, | 394 }, |
392 'includes': [ 'android/dex_action.gypi' ], | 395 'includes': [ 'android/dex_action.gypi' ], |
393 }, | 396 }, |
394 ], | 397 ], |
395 } | 398 } |
OLD | NEW |