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