| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], | 63 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], |
| 64 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 64 'instr_stamp': '<(intermediate_dir)/instr.stamp', |
| 65 'additional_input_paths': [], | 65 'additional_input_paths': [], |
| 66 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', | 66 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', |
| 67 'generated_src_dirs': ['>@(generated_R_dirs)'], | 67 'generated_src_dirs': ['>@(generated_R_dirs)'], |
| 68 'generated_R_dirs': [], | 68 'generated_R_dirs': [], |
| 69 'has_java_resources%': 0, | 69 'has_java_resources%': 0, |
| 70 'res_extra_dirs': [], | 70 'res_extra_dirs': [], |
| 71 'res_extra_files': [], | 71 'res_extra_files': [], |
| 72 'res_v14_skip%': 0, | 72 'res_v14_skip%': 0, |
| 73 'res_v14_verify_only%': 0, | |
| 74 'resource_input_paths': ['>@(res_extra_files)'], | 73 'resource_input_paths': ['>@(res_extra_files)'], |
| 75 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', | 74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
| 76 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 75 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
| 77 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 76 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
| 78 'lint_result': '<(intermediate_dir)/lint_result.xml', | 77 'lint_result': '<(intermediate_dir)/lint_result.xml', |
| 79 'lint_config': '<(intermediate_dir)/lint_config.xml', | 78 'lint_config': '<(intermediate_dir)/lint_config.xml', |
| 80 'never_lint%': 0, | 79 'never_lint%': 0, |
| 81 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | 80 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', |
| 82 'run_findbugs%': 0, | 81 'run_findbugs%': 0, |
| 83 'proguard_config%': '', | 82 'proguard_config%': '', |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 'variables': { | 153 'variables': { |
| 155 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', | 154 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', |
| 156 # Write the inputs list to a file, so that its mtime is updated when | 155 # Write the inputs list to a file, so that its mtime is updated when |
| 157 # the list of inputs changes. | 156 # the list of inputs changes. |
| 158 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(res
ource_input_paths))', | 157 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(res
ource_input_paths))', |
| 159 'process_resources_options': [], | 158 'process_resources_options': [], |
| 160 'conditions': [ | 159 'conditions': [ |
| 161 ['res_v14_skip == 1', { | 160 ['res_v14_skip == 1', { |
| 162 'process_resources_options': ['--v14-skip'] | 161 'process_resources_options': ['--v14-skip'] |
| 163 }], | 162 }], |
| 164 ['res_v14_verify_only == 1', { | |
| 165 'process_resources_options': ['--v14-verify-only'] | |
| 166 }], | |
| 167 ], | 163 ], |
| 168 }, | 164 }, |
| 169 'inputs': [ | 165 'inputs': [ |
| 170 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 166 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 171 '<(DEPTH)/build/android/gyp/process_resources.py', | 167 '<(DEPTH)/build/android/gyp/process_resources.py', |
| 172 '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py', | 168 '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py', |
| 173 '>@(resource_input_paths)', | 169 '>@(resource_input_paths)', |
| 174 '>@(dependencies_res_zip_paths)', | 170 '>@(dependencies_res_zip_paths)', |
| 175 '>(inputs_list_file)', | 171 '>(inputs_list_file)', |
| 176 ], | 172 ], |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 'dex_no_locals': 1, | 338 'dex_no_locals': 1, |
| 343 }], | 339 }], |
| 344 ], | 340 ], |
| 345 'dex_input_paths': [ '<(jar_final_path)' ], | 341 'dex_input_paths': [ '<(jar_final_path)' ], |
| 346 'output_path': '<(dex_path)', | 342 'output_path': '<(dex_path)', |
| 347 }, | 343 }, |
| 348 'includes': [ 'android/dex_action.gypi' ], | 344 'includes': [ 'android/dex_action.gypi' ], |
| 349 }, | 345 }, |
| 350 ], | 346 ], |
| 351 } | 347 } |
| OLD | NEW |