Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: build/java.gypi

Issue 199993003: android: Remove last md5sum call from java.gypi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/gyp/process_resources.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 # Generate R.java and crunch image resources. 176 # Generate R.java and crunch image resources.
177 { 177 {
178 'action_name': 'process_resources', 178 'action_name': 'process_resources',
179 'message': 'processing resources for <(_target_name)', 179 'message': 'processing resources for <(_target_name)',
180 'variables': { 180 'variables': {
181 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', 181 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml',
182 # Include the dependencies' res dirs so that references to 182 # Include the dependencies' res dirs so that references to
183 # resources in dependencies can be resolved. 183 # resources in dependencies can be resolved.
184 'all_res_dirs': ['<@(res_input_dirs)', 184 'all_res_dirs': ['<@(res_input_dirs)',
185 '>@(dependencies_res_input_dirs)',], 185 '>@(dependencies_res_input_dirs)',],
186 # Write the inputs list to a file, so that the action command 186 # Write the inputs list to a file, so that its mtime is updated when
187 # line won't exceed the OS limits when calculating the checksum 187 # the list of inputs changes.
188 # of the list. 188 'inputs_list_file': '>|(inputs_list.<(_target_name).gypcmd >@(resour ce_input_paths) @>(dependencies_res_files))'
189 'inputs_list_file': '>|(inputs_list.<(_target_name).gypcmd >@(_input s))'
190 }, 189 },
191 'inputs': [ 190 'inputs': [
192 '<(DEPTH)/build/android/gyp/util/build_utils.py', 191 '<(DEPTH)/build/android/gyp/util/build_utils.py',
193 '<(DEPTH)/build/android/gyp/process_resources.py', 192 '<(DEPTH)/build/android/gyp/process_resources.py',
194 '>@(resource_input_paths)', 193 '>@(resource_input_paths)',
195 '>@(dependencies_res_files)', 194 '>@(dependencies_res_files)',
195 '>(inputs_list_file)',
196 ], 196 ],
197 'outputs': [ 197 'outputs': [
198 '<(R_stamp)', 198 '<(R_stamp)',
199 ], 199 ],
200 'action': [ 200 'action': [
201 'python', '<(DEPTH)/build/android/gyp/process_resources.py', 201 'python', '<(DEPTH)/build/android/gyp/process_resources.py',
202 '--android-sdk', '<(android_sdk)', 202 '--android-sdk', '<(android_sdk)',
203 '--android-sdk-tools', '<(android_sdk_tools)', 203 '--android-sdk-tools', '<(android_sdk_tools)',
204 '--R-dir', '<(R_dir)', 204 '--R-dir', '<(R_dir)',
205 '--res-dirs', '>(all_res_dirs)', 205 '--res-dirs', '>(all_res_dirs)',
206 '--crunch-input-dir', '>(res_dir)', 206 '--crunch-input-dir', '>(res_dir)',
207 '--crunch-output-dir', '<(res_crunched_dir)', 207 '--crunch-output-dir', '<(res_crunched_dir)',
208 '--android-manifest', '<(android_manifest)', 208 '--android-manifest', '<(android_manifest)',
209 '--non-constant-id', 209 '--non-constant-id',
210 '--custom-package', '<(R_package)', 210 '--custom-package', '<(R_package)',
211 '--stamp', '<(R_stamp)', 211 '--stamp', '<(R_stamp)',
212
213 # Add hash of inputs to the command line, so if inputs change
214 # (e.g. if a resource if removed), the command will be re-run.
215 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
216 '--ignore=>!(md5sum >(inputs_list_file))',
217 ], 212 ],
218 }, 213 },
219 # Generate API 14 resources. 214 # Generate API 14 resources.
220 { 215 {
221 'action_name': 'generate_api_14_resources_<(_target_name)', 216 'action_name': 'generate_api_14_resources_<(_target_name)',
222 'message': 'Generating Android API 14 resources <(_target_name)', 217 'message': 'Generating Android API 14 resources <(_target_name)',
223 'variables' : { 218 'variables' : {
224 'res_v14_additional_options': [], 219 'res_v14_additional_options': [],
225 }, 220 },
226 'conditions': [ 221 'conditions': [
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 'dex_no_locals': 1, 380 'dex_no_locals': 1,
386 }], 381 }],
387 ], 382 ],
388 'dex_input_paths': [ '<(jar_final_path)' ], 383 'dex_input_paths': [ '<(jar_final_path)' ],
389 'output_path': '<(dex_path)', 384 'output_path': '<(dex_path)',
390 }, 385 },
391 'includes': [ 'android/dex_action.gypi' ], 386 'includes': [ 'android/dex_action.gypi' ],
392 }, 387 },
393 ], 388 ],
394 } 389 }
OLDNEW
« no previous file with comments | « build/android/gyp/process_resources.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698