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

Side by Side Diff: build/java.gypi

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

Powered by Google App Engine
This is Rietveld 408576698