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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 }, | 149 }, |
150 'actions': [ | 150 'actions': [ |
151 # Generate R.java and crunch image resources. | 151 # Generate R.java and crunch image resources. |
152 { | 152 { |
153 'action_name': 'process_resources', | 153 'action_name': 'process_resources', |
154 'message': 'processing resources for <(_target_name)', | 154 'message': 'processing resources for <(_target_name)', |
155 'variables': { | 155 'variables': { |
156 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', | 156 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', |
157 # Include the dependencies' res dirs so that references to | 157 # Include the dependencies' res dirs so that references to |
158 # resources in dependencies can be resolved. | 158 # resources in dependencies can be resolved. |
159 'dependencies_res_dirs': ['<@(res_extra_dirs)', | 159 'all_res_dirs': ['<@(res_input_dirs)', |
160 '>@(dependencies_res_input_dirs)',], | 160 '>@(dependencies_res_input_dirs)',], |
161 # Write the inputs list to a file, so that its mtime is updated when | 161 # Write the inputs list to a file, so that its mtime is updated when |
162 # the list of inputs changes. | 162 # the list of inputs changes. |
163 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(res
ource_input_paths) >@(dependencies_res_files))' | 163 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(res
ource_input_paths) >@(dependencies_res_files))' |
164 }, | 164 }, |
165 'inputs': [ | 165 'inputs': [ |
166 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 166 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
167 '<(DEPTH)/build/android/gyp/process_resources.py', | 167 '<(DEPTH)/build/android/gyp/process_resources.py', |
168 '>@(resource_input_paths)', | 168 '>@(resource_input_paths)', |
169 '>@(dependencies_res_files)', | 169 '>@(dependencies_res_files)', |
170 '>(inputs_list_file)', | 170 '>(inputs_list_file)', |
171 ], | 171 ], |
172 'outputs': [ | 172 'outputs': [ |
173 '<(R_stamp)', | 173 '<(R_stamp)', |
174 ], | 174 ], |
175 'action': [ | 175 'action': [ |
176 'python', '<(DEPTH)/build/android/gyp/process_resources.py', | 176 'python', '<(DEPTH)/build/android/gyp/process_resources.py', |
177 '--android-sdk', '<(android_sdk)', | 177 '--android-sdk', '<(android_sdk)', |
178 '--android-sdk-tools', '<(android_sdk_tools)', | 178 '--android-sdk-tools', '<(android_sdk_tools)', |
179 '--R-dir', '<(R_dir)', | 179 '--R-dir', '<(R_dir)', |
180 '--dependencies-res-dirs', '>(dependencies_res_dirs)', | 180 '--res-dirs', '>(all_res_dirs)', |
181 '--resource-dir', '<(res_dir)', | 181 '--crunch-input-dir', '>(res_dir)', |
182 '--crunch-output-dir', '<(res_crunched_dir)', | 182 '--crunch-output-dir', '<(res_crunched_dir)', |
183 '--android-manifest', '<(android_manifest)', | 183 '--android-manifest', '<(android_manifest)', |
184 '--non-constant-id', | 184 '--non-constant-id', |
185 '--custom-package', '<(R_package)', | 185 '--custom-package', '<(R_package)', |
186 '--stamp', '<(R_stamp)', | 186 '--stamp', '<(R_stamp)', |
187 ], | 187 ], |
188 }, | 188 }, |
189 # Generate API 14 resources. | 189 # Generate API 14 resources. |
190 { | 190 { |
191 'action_name': 'generate_api_14_resources_<(_target_name)', | 191 'action_name': 'generate_api_14_resources_<(_target_name)', |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 'dex_no_locals': 1, | 353 'dex_no_locals': 1, |
354 }], | 354 }], |
355 ], | 355 ], |
356 'dex_input_paths': [ '<(jar_final_path)' ], | 356 'dex_input_paths': [ '<(jar_final_path)' ], |
357 'output_path': '<(dex_path)', | 357 'output_path': '<(dex_path)', |
358 }, | 358 }, |
359 'includes': [ 'android/dex_action.gypi' ], | 359 'includes': [ 'android/dex_action.gypi' ], |
360 }, | 360 }, |
361 ], | 361 ], |
362 } | 362 } |
OLD | NEW |