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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 'add_to_dependents_classpaths%': 1, | 54 'add_to_dependents_classpaths%': 1, |
55 'android_jar': '<(android_sdk)/android.jar', | 55 'android_jar': '<(android_sdk)/android.jar', |
56 'input_jars_paths': [ '<(android_jar)' ], | 56 'input_jars_paths': [ '<(android_jar)' ], |
57 'additional_src_dirs': [], | 57 'additional_src_dirs': [], |
58 'javac_includes': [], | 58 'javac_includes': [], |
59 'jar_name': '<(_target_name).jar', | 59 'jar_name': '<(_target_name).jar', |
60 'jar_dir': '<(PRODUCT_DIR)/lib.java', | 60 'jar_dir': '<(PRODUCT_DIR)/lib.java', |
61 'jar_path': '<(intermediate_dir)/<(jar_name)', | 61 'jar_path': '<(intermediate_dir)/<(jar_name)', |
62 'jar_final_path': '<(jar_dir)/<(jar_name)', | 62 'jar_final_path': '<(jar_dir)/<(jar_name)', |
63 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], | 63 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], |
64 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 64 'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp', |
65 'additional_input_paths': [], | 65 'additional_input_paths': [], |
66 'additional_locale_input_paths': [], | 66 'additional_locale_input_paths': [], |
67 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', | 67 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', |
68 'main_dex_list_path': '<(intermediate_dir)/main_dex_list.txt', | 68 'main_dex_list_path': '<(intermediate_dir)/main_dex_list.txt', |
69 'generated_src_dirs': ['>@(generated_R_dirs)'], | 69 'generated_src_dirs': ['>@(generated_R_dirs)'], |
70 'generated_R_dirs': [], | 70 'generated_R_dirs': [], |
71 'has_java_resources%': 0, | 71 'has_java_resources%': 0, |
72 'res_extra_dirs': [], | 72 'res_extra_dirs': [], |
73 'res_extra_files': [], | 73 'res_extra_files': [], |
74 'res_v14_skip%': 0, | 74 'res_v14_skip%': 0, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 }, | 328 }, |
329 { | 329 { |
330 'action_name': 'main_dex_list_for_<(_target_name)', | 330 'action_name': 'main_dex_list_for_<(_target_name)', |
331 'variables': { | 331 'variables': { |
332 'jar_path': '<(javac_jar_path)', | 332 'jar_path': '<(javac_jar_path)', |
333 'output_path': '<(main_dex_list_path)', | 333 'output_path': '<(main_dex_list_path)', |
334 }, | 334 }, |
335 'includes': [ 'android/main_dex_action.gypi' ], | 335 'includes': [ 'android/main_dex_action.gypi' ], |
336 }, | 336 }, |
337 { | 337 { |
338 'action_name': 'instr_jar_<(_target_name)', | 338 'action_name': 'emma_instr_jar_<(_target_name)', |
339 'message': 'Instrumenting <(_target_name) jar', | 339 'message': 'Instrumenting <(_target_name) jar', |
340 'variables': { | 340 'variables': { |
341 'input_path': '<(jar_path)', | 341 'input_path': '<(jar_path)', |
342 'output_path': '<(jar_final_path)', | 342 'output_path': '<(jar_final_path)', |
343 'stamp_path': '<(instr_stamp)', | 343 'stamp_path': '<(emma_instr_stamp)', |
344 'instr_type': 'jar', | 344 'instr_type': 'jar', |
345 }, | 345 }, |
346 'outputs': [ | 346 'outputs': [ |
347 '<(jar_final_path)', | 347 '<(jar_final_path)', |
348 ], | 348 ], |
349 'inputs': [ | 349 'inputs': [ |
350 '<(jar_path)', | 350 '<(jar_path)', |
351 ], | 351 ], |
352 'includes': [ 'android/instr_action.gypi' ], | 352 'includes': [ 'android/emma_instr_action.gypi' ], |
353 }, | 353 }, |
354 { | 354 { |
355 'variables': { | 355 'variables': { |
356 'src_dirs': [ | 356 'src_dirs': [ |
357 '<(java_in_dir)<(java_in_dir_suffix)', | 357 '<(java_in_dir)<(java_in_dir_suffix)', |
358 '>@(additional_src_dirs)', | 358 '>@(additional_src_dirs)', |
359 ], | 359 ], |
360 'stamp_path': '<(lint_stamp)', | 360 'stamp_path': '<(lint_stamp)', |
361 'result_path': '<(lint_result)', | 361 'result_path': '<(lint_result)', |
362 'config_path': '<(lint_config)', | 362 'config_path': '<(lint_config)', |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 'dex_no_locals': 1, | 397 'dex_no_locals': 1, |
398 }], | 398 }], |
399 ], | 399 ], |
400 'dex_input_paths': [ '<(jar_final_path)' ], | 400 'dex_input_paths': [ '<(jar_final_path)' ], |
401 'output_path': '<(dex_path)', | 401 'output_path': '<(dex_path)', |
402 }, | 402 }, |
403 'includes': [ 'android/dex_action.gypi' ], | 403 'includes': [ 'android/dex_action.gypi' ], |
404 }, | 404 }, |
405 ], | 405 ], |
406 } | 406 } |
OLD | NEW |