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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 'generated_R_dirs': [], | 66 'generated_R_dirs': [], |
67 'has_java_resources%': 0, | 67 'has_java_resources%': 0, |
68 'java_strings_grd%': '', | 68 'java_strings_grd%': '', |
69 'res_extra_dirs': [], | 69 'res_extra_dirs': [], |
70 'res_extra_files': [], | 70 'res_extra_files': [], |
71 'res_v14_verify_only%': 0, | 71 'res_v14_verify_only%': 0, |
72 'resource_input_paths': ['>@(res_extra_files)'], | 72 'resource_input_paths': ['>@(res_extra_files)'], |
73 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', | 73 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
74 'classes_dir': '<(intermediate_dir)/classes', | 74 'classes_dir': '<(intermediate_dir)/classes', |
75 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 75 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
| 76 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
| 77 'lint_result': '<(intermediate_dir)/lint_result.xml', |
76 'proguard_config%': '', | 78 'proguard_config%': '', |
77 'proguard_preprocess%': '0', | 79 'proguard_preprocess%': '0', |
78 'variables': { | 80 'variables': { |
79 'variables': { | 81 'variables': { |
80 'proguard_preprocess%': 0, | 82 'proguard_preprocess%': 0, |
81 'emma_never_instrument%': 0, | 83 'emma_never_instrument%': 0, |
82 }, | 84 }, |
83 'conditions': [ | 85 'conditions': [ |
84 ['proguard_preprocess == 1', { | 86 ['proguard_preprocess == 1', { |
85 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' | 87 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 '--src-dirs=>(all_src_dirs)', | 303 '--src-dirs=>(all_src_dirs)', |
302 '--javac-includes=<(javac_includes)', | 304 '--javac-includes=<(javac_includes)', |
303 '--chromium-code=<(chromium_code)', | 305 '--chromium-code=<(chromium_code)', |
304 '--stamp=<(compile_stamp)', | 306 '--stamp=<(compile_stamp)', |
305 | 307 |
306 # 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
. |
307 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 309 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
308 ] | 310 ] |
309 }, | 311 }, |
310 { | 312 { |
| 313 'variables': { |
| 314 'src_dirs': [ |
| 315 '<(java_in_dir)/src', |
| 316 '>@(additional_src_dirs)', |
| 317 ], |
| 318 'stamp_path': '<(lint_stamp)', |
| 319 'result_path': '<(lint_result)', |
| 320 }, |
| 321 'inputs': [ |
| 322 '<(compile_stamp)', |
| 323 ], |
| 324 'outputs': [ |
| 325 '<(lint_stamp)', |
| 326 ], |
| 327 'includes': [ 'android/lint_action.gypi' ], |
| 328 }, |
| 329 { |
311 'action_name': 'jar_<(_target_name)', | 330 'action_name': 'jar_<(_target_name)', |
312 'message': 'Creating <(_target_name) jar', | 331 'message': 'Creating <(_target_name) jar', |
313 'inputs': [ | 332 'inputs': [ |
314 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 333 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
315 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 334 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
316 '<(DEPTH)/build/android/gyp/jar.py', | 335 '<(DEPTH)/build/android/gyp/jar.py', |
317 '<(compile_stamp)', | 336 '<(lint_stamp)', |
318 ], | 337 ], |
319 'outputs': [ | 338 'outputs': [ |
320 '<(javac_jar_path)', | 339 '<(javac_jar_path)', |
321 ], | 340 ], |
322 'action': [ | 341 'action': [ |
323 'python', '<(DEPTH)/build/android/gyp/jar.py', | 342 'python', '<(DEPTH)/build/android/gyp/jar.py', |
324 '--classes-dir=<(classes_dir)', | 343 '--classes-dir=<(classes_dir)', |
325 '--jar-path=<(javac_jar_path)', | 344 '--jar-path=<(javac_jar_path)', |
326 '--excluded-classes=<(jar_excluded_classes)', | 345 '--excluded-classes=<(jar_excluded_classes)', |
327 | 346 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 'dex_no_locals': 1, | 394 'dex_no_locals': 1, |
376 }], | 395 }], |
377 ], | 396 ], |
378 'dex_input_paths': [ '<(jar_final_path)' ], | 397 'dex_input_paths': [ '<(jar_final_path)' ], |
379 'output_path': '<(dex_path)', | 398 'output_path': '<(dex_path)', |
380 }, | 399 }, |
381 'includes': [ 'android/dex_action.gypi' ], | 400 'includes': [ 'android/dex_action.gypi' ], |
382 }, | 401 }, |
383 ], | 402 ], |
384 } | 403 } |
OLD | NEW |