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

Side by Side Diff: build/java.gypi

Issue 126543004: Revert of Mirror images for RTL languages at build time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/install-build-deps-android.sh ('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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 'additional_input_paths': [], 64 'additional_input_paths': [],
65 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', 65 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
66 'generated_src_dirs': ['>@(generated_R_dirs)'], 66 'generated_src_dirs': ['>@(generated_R_dirs)'],
67 'generated_R_dirs': [], 67 'generated_R_dirs': [],
68 'has_java_resources%': 0, 68 'has_java_resources%': 0,
69 'java_strings_grd%': '', 69 'java_strings_grd%': '',
70 'res_extra_dirs': [], 70 'res_extra_dirs': [],
71 'res_extra_files': [], 71 'res_extra_files': [],
72 'res_v14_verify_only%': 0, 72 'res_v14_verify_only%': 0,
73 'resource_input_paths': ['>@(res_extra_files)'], 73 'resource_input_paths': ['>@(res_extra_files)'],
74 'mirror_images%': 0,
75 'mirror_images_args': [],
76 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
77 'classes_dir': '<(intermediate_dir)/classes', 75 'classes_dir': '<(intermediate_dir)/classes',
78 'compile_stamp': '<(intermediate_dir)/compile.stamp', 76 'compile_stamp': '<(intermediate_dir)/compile.stamp',
79 'lint_stamp': '<(intermediate_dir)/lint.stamp', 77 'lint_stamp': '<(intermediate_dir)/lint.stamp',
80 'lint_result': '<(intermediate_dir)/lint_result.xml', 78 'lint_result': '<(intermediate_dir)/lint_result.xml',
81 'lint_config': '<(intermediate_dir)/lint_config.xml', 79 'lint_config': '<(intermediate_dir)/lint_config.xml',
82 'never_lint%': 0, 80 'never_lint%': 0,
83 'proguard_config%': '', 81 'proguard_config%': '',
84 'proguard_preprocess%': '0', 82 'proguard_preprocess%': '0',
85 'variables': { 83 'variables': {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 'variables': { 164 'variables': {
167 'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=fals e'], 165 'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=fals e'],
168 'grit_out_dir': '<(res_grit_dir)', 166 'grit_out_dir': '<(res_grit_dir)',
169 # resource_ids is unneeded since we don't generate .h headers. 167 # resource_ids is unneeded since we don't generate .h headers.
170 'grit_resource_ids': '', 168 'grit_resource_ids': '',
171 }, 169 },
172 'includes': ['../build/grit_action.gypi'], 170 'includes': ['../build/grit_action.gypi'],
173 }, 171 },
174 ], 172 ],
175 }], 173 }],
176 ['mirror_images == 1', {
177 'variables': {
178 'res_mirrored_dir': '<(intermediate_dir)/res_mirrored',
179 'mirror_images_config': '<(java_in_dir)/mirror_images_config',
180 'mirror_images_args': ['--mirror-config', '<(mirror_images_config)',
181 '--mirror-output-dir', '<(res_mirrored_dir)'] ,
182 'resource_input_paths': ['<(mirror_images_config)',
183 '<(DEPTH)/build/android/gyp/mirror_images.p y'],
184 },
185 'all_dependent_settings': {
186 'variables': {
187 'additional_res_dirs': ['<(res_mirrored_dir)'],
188 },
189 },
190 }],
191 ], 174 ],
192 'actions': [ 175 'actions': [
193 # Generate R.java; mirror and crunch image resources. 176 # Generate R.java and crunch image resources.
194 { 177 {
195 'action_name': 'process_resources', 178 'action_name': 'process_resources',
196 'message': 'processing resources for <(_target_name)', 179 'message': 'processing resources for <(_target_name)',
197 'variables': { 180 'variables': {
198 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', 181 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml',
199 # Include the dependencies' res dirs so that references to 182 # Include the dependencies' res dirs so that references to
200 # resources in dependencies can be resolved. 183 # resources in dependencies can be resolved.
201 'all_res_dirs': ['<@(res_input_dirs)', 184 'all_res_dirs': ['<@(res_input_dirs)',
202 '>@(dependencies_res_input_dirs)',], 185 '>@(dependencies_res_input_dirs)',],
203 # Write the inputs list to a file, so that the action command 186 # Write the inputs list to a file, so that the action command
204 # line won't exceed the OS limits when calculating the checksum 187 # line won't exceed the OS limits when calculating the checksum
205 # of the list. 188 # of the list.
206 'inputs_list_file': '>|(inputs_list.<(_target_name).gypcmd >@(_input s))' 189 'inputs_list_file': '>|(inputs_list.<(_target_name).gypcmd >@(_input s))'
207 }, 190 },
208 'inputs': [ 191 'inputs': [
209 '<(DEPTH)/build/android/gyp/util/build_utils.py', 192 '<(DEPTH)/build/android/gyp/util/build_utils.py',
210 '<(DEPTH)/build/android/gyp/process_resources.py', 193 '<(DEPTH)/build/android/gyp/process_resources.py',
211 '>@(resource_input_paths)', 194 '>@(resource_input_paths)',
212 '>@(dependencies_res_files)', 195 '>@(dependencies_res_files)',
213 ], 196 ],
214 'outputs': [ 197 'outputs': [
215 '<(R_stamp)', 198 '<(R_stamp)',
216 ], 199 ],
217 'action': [ 200 'action': [
218 'python', '<(DEPTH)/build/android/gyp/process_resources.py', 201 'python', '<(DEPTH)/build/android/gyp/process_resources.py',
219 '--android-sdk', '<(android_sdk)', 202 '--android-sdk', '<(android_sdk)',
220 '--android-sdk-tools', '<(android_sdk_tools)', 203 '--android-sdk-tools', '<(android_sdk_tools)',
221 '--R-dir', '<(R_dir)', 204 '--R-dir', '<(R_dir)',
222 '--res-dirs', '>(all_res_dirs)', 205 '--res-dirs', '>(all_res_dirs)',
223 '--image-input-dir', '>(res_dir)', 206 '--crunch-input-dir', '>(res_dir)',
224 '--crunch-output-dir', '<(res_crunched_dir)', 207 '--crunch-output-dir', '<(res_crunched_dir)',
225 '--android-manifest', '<(android_manifest)', 208 '--android-manifest', '<(android_manifest)',
226 '--non-constant-id', 209 '--non-constant-id',
227 '--custom-package', '<(R_package)', 210 '--custom-package', '<(R_package)',
228 '--stamp', '<(R_stamp)', 211 '--stamp', '<(R_stamp)',
229 '<@(mirror_images_args)',
230 212
231 # Add hash of inputs to the command line, so if inputs change 213 # Add hash of inputs to the command line, so if inputs change
232 # (e.g. if a resource if removed), the command will be re-run. 214 # (e.g. if a resource if removed), the command will be re-run.
233 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. 215 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
234 '--ignore=>!(md5sum >(inputs_list_file))', 216 '--ignore=>!(md5sum >(inputs_list_file))',
235 ], 217 ],
236 }, 218 },
237 # Generate API 14 resources. 219 # Generate API 14 resources.
238 { 220 {
239 'action_name': 'generate_api_14_resources_<(_target_name)', 221 'action_name': 'generate_api_14_resources_<(_target_name)',
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 'dex_no_locals': 1, 398 'dex_no_locals': 1,
417 }], 399 }],
418 ], 400 ],
419 'dex_input_paths': [ '<(jar_final_path)' ], 401 'dex_input_paths': [ '<(jar_final_path)' ],
420 'output_path': '<(dex_path)', 402 'output_path': '<(dex_path)',
421 }, 403 },
422 'includes': [ 'android/dex_action.gypi' ], 404 'includes': [ 'android/dex_action.gypi' ],
423 }, 405 },
424 ], 406 ],
425 } 407 }
OLDNEW
« no previous file with comments | « build/install-build-deps-android.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698