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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 'generated_src_dirs': ['>@(generated_R_dirs)'], | 62 'generated_src_dirs': ['>@(generated_R_dirs)'], |
63 'generated_R_dirs': [], | 63 'generated_R_dirs': [], |
64 'has_java_resources%': 0, | 64 'has_java_resources%': 0, |
65 'java_strings_grd%': '', | 65 'java_strings_grd%': '', |
66 'res_extra_dirs': [], | 66 'res_extra_dirs': [], |
67 'res_extra_files': [], | 67 'res_extra_files': [], |
68 'resource_input_paths': ['>@(res_extra_files)'], | 68 'resource_input_paths': ['>@(res_extra_files)'], |
69 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', | 69 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
70 'classes_dir': '<(intermediate_dir)/classes', | 70 'classes_dir': '<(intermediate_dir)/classes', |
71 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 71 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
| 72 'res_v14_only_verify%': 0, |
72 }, | 73 }, |
73 # This all_dependent_settings is used for java targets only. This will add the | 74 # This all_dependent_settings is used for java targets only. This will add the |
74 # jar path to the classpath of dependent java targets. | 75 # jar path to the classpath of dependent java targets. |
75 'all_dependent_settings': { | 76 'all_dependent_settings': { |
76 'variables': { | 77 'variables': { |
77 'input_jars_paths': ['<(jar_path)'], | 78 'input_jars_paths': ['<(jar_path)'], |
78 'library_dexed_jars_paths': ['<(dex_path)'], | 79 'library_dexed_jars_paths': ['<(dex_path)'], |
79 }, | 80 }, |
80 }, | 81 }, |
81 'conditions': [ | 82 'conditions': [ |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 '>@(resource_input_paths)', | 192 '>@(resource_input_paths)', |
192 ], | 193 ], |
193 'outputs': [ | 194 'outputs': [ |
194 '<(res_v14_compatibility_stamp)', | 195 '<(res_v14_compatibility_stamp)', |
195 ], | 196 ], |
196 'action': [ | 197 'action': [ |
197 'python', '<(DEPTH)/build/android/gyp/generate_v14_compatible_resour
ces.py', | 198 'python', '<(DEPTH)/build/android/gyp/generate_v14_compatible_resour
ces.py', |
198 '--res-dir=<(res_dir)', | 199 '--res-dir=<(res_dir)', |
199 '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)', | 200 '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)', |
200 '--stamp', '<(res_v14_compatibility_stamp)', | 201 '--stamp', '<(res_v14_compatibility_stamp)', |
| 202 '--only-verify', '<(res_v14_only_verify)', |
201 ] | 203 ] |
202 }, | 204 }, |
203 ], | 205 ], |
204 }], | 206 }], |
205 ], | 207 ], |
206 'actions': [ | 208 'actions': [ |
207 { | 209 { |
208 'action_name': 'javac_<(_target_name)', | 210 'action_name': 'javac_<(_target_name)', |
209 'message': 'Compiling <(_target_name) java sources', | 211 'message': 'Compiling <(_target_name) java sources', |
210 'variables': { | 212 'variables': { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 { | 285 { |
284 'action_name': 'dex_<(_target_name)', | 286 'action_name': 'dex_<(_target_name)', |
285 'variables': { | 287 'variables': { |
286 'dex_input_paths': [ '<(jar_path)' ], | 288 'dex_input_paths': [ '<(jar_path)' ], |
287 'output_path': '<(dex_path)', | 289 'output_path': '<(dex_path)', |
288 }, | 290 }, |
289 'includes': [ 'android/dex_action.gypi' ], | 291 'includes': [ 'android/dex_action.gypi' ], |
290 }, | 292 }, |
291 ], | 293 ], |
292 } | 294 } |
OLD | NEW |