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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 ], | 294 ], |
295 'action': [ | 295 'action': [ |
296 'python', '<(DEPTH)/build/android/gyp/javac.py', | 296 'python', '<(DEPTH)/build/android/gyp/javac.py', |
297 '--output-dir=<(classes_dir)', | 297 '--output-dir=<(classes_dir)', |
298 '--classpath=>(input_jars_paths)', | 298 '--classpath=>(input_jars_paths)', |
299 '--src-filelist=>(java_source_list)', | 299 '--src-filelist=>(java_source_list)', |
300 '--src-gendirs=>(generated_src_dirs)', | 300 '--src-gendirs=>(generated_src_dirs)', |
301 '--javac-includes=<(javac_includes)', | 301 '--javac-includes=<(javac_includes)', |
302 '--chromium-code=<(chromium_code)', | 302 '--chromium-code=<(chromium_code)', |
303 '--stamp=<(compile_stamp)', | 303 '--stamp=<(compile_stamp)', |
304 | |
305 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | |
306 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | |
307 ] | 304 ] |
308 }, | 305 }, |
309 { | 306 { |
310 'variables': { | 307 'variables': { |
311 'src_dirs': [ | 308 'src_dirs': [ |
312 '<(java_in_dir)/src', | 309 '<(java_in_dir)/src', |
313 '>@(additional_src_dirs)', | 310 '>@(additional_src_dirs)', |
314 ], | 311 ], |
315 'stamp_path': '<(lint_stamp)', | 312 'stamp_path': '<(lint_stamp)', |
316 'result_path': '<(lint_result)', | 313 'result_path': '<(lint_result)', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 'dex_no_locals': 1, | 383 'dex_no_locals': 1, |
387 }], | 384 }], |
388 ], | 385 ], |
389 'dex_input_paths': [ '<(jar_final_path)' ], | 386 'dex_input_paths': [ '<(jar_final_path)' ], |
390 'output_path': '<(dex_path)', | 387 'output_path': '<(dex_path)', |
391 }, | 388 }, |
392 'includes': [ 'android/dex_action.gypi' ], | 389 'includes': [ 'android/dex_action.gypi' ], |
393 }, | 390 }, |
394 ], | 391 ], |
395 } | 392 } |
OLD | NEW |