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

Side by Side Diff: build/java.gypi

Issue 314363002: Revert of Add creation of v14 compatible resources to process_resources.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/grit_action.gypi ('k') | build/java_apk.gypi » ('j') | 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 'variables': { 104 'variables': {
105 'input_jars_paths': ['<(jar_final_path)'], 105 'input_jars_paths': ['<(jar_final_path)'],
106 'library_dexed_jars_paths': ['<(dex_path)'], 106 'library_dexed_jars_paths': ['<(dex_path)'],
107 }, 107 },
108 }, 108 },
109 'conditions': [ 109 'conditions': [
110 ['has_java_resources == 1', { 110 ['has_java_resources == 1', {
111 'variables': { 111 'variables': {
112 'res_dir': '<(java_in_dir)/res', 112 'res_dir': '<(java_in_dir)/res',
113 'res_crunched_dir': '<(intermediate_dir)/res_crunched', 113 'res_crunched_dir': '<(intermediate_dir)/res_crunched',
114 'res_v14_compatibility_stamp': '<(intermediate_dir)/res_v14_compatibilit y.stamp',
114 'res_v14_compatibility_dir': '<(intermediate_dir)/res_v14_compatibility' , 115 'res_v14_compatibility_dir': '<(intermediate_dir)/res_v14_compatibility' ,
115 'res_input_dirs': ['<(res_dir)', '<@(res_extra_dirs)'], 116 'res_input_dirs': ['<(res_dir)', '<@(res_extra_dirs)'],
116 'resource_input_paths': ['<!@(find <(res_dir) -type f)'], 117 'resource_input_paths': ['<!@(find <(res_dir) -type f)'],
117 'R_dir': '<(intermediate_dir)/java_R', 118 'R_dir': '<(intermediate_dir)/java_R',
118 'R_text_file': '<(R_dir)/R.txt', 119 'R_text_file': '<(R_dir)/R.txt',
119 'R_stamp': '<(intermediate_dir)/resources.stamp', 120 'R_stamp': '<(intermediate_dir)/resources.stamp',
120 'generated_src_dirs': ['<(R_dir)'], 121 'generated_src_dirs': ['<(R_dir)'],
121 'additional_input_paths': ['<(R_stamp)', ], 122 'additional_input_paths': ['<(R_stamp)',
123 '<(res_v14_compatibility_stamp)',],
122 'additional_res_dirs': [], 124 'additional_res_dirs': [],
123 'dependencies_res_input_dirs': [], 125 'dependencies_res_input_dirs': [],
124 'dependencies_res_files': [], 126 'dependencies_res_files': [],
125 }, 127 },
126 'all_dependent_settings': { 128 'all_dependent_settings': {
127 'variables': { 129 'variables': {
128 # Dependent jars include this target's R.java file via 130 # Dependent jars include this target's R.java file via
129 # generated_R_dirs and include its resources via 131 # generated_R_dirs and include its resources via
130 # dependencies_res_files. 132 # dependencies_res_files.
131 'generated_R_dirs': ['<(R_dir)'], 133 'generated_R_dirs': ['<(R_dir)'],
132 'additional_input_paths': ['<(R_stamp)', ], 134 'additional_input_paths': ['<(R_stamp)',
135 '<(res_v14_compatibility_stamp)',],
133 'dependencies_res_files': ['<@(resource_input_paths)'], 136 'dependencies_res_files': ['<@(resource_input_paths)'],
134 137
135 'dependencies_res_input_dirs': ['<@(res_input_dirs)'], 138 'dependencies_res_input_dirs': ['<@(res_input_dirs)'],
136 139
137 # Dependent APKs include this target's resources via 140 # Dependent APKs include this target's resources via
138 # additional_res_dirs, additional_res_packages, and 141 # additional_res_dirs, additional_res_packages, and
139 # additional_R_text_files. 142 # additional_R_text_files.
140 'additional_res_dirs': [ 143 'additional_res_dirs': [
141 # The order of these is important to ensure that the proper 144 # The order of these is important to ensure that the proper
142 # version (i.e. the crunched version) of resources takes 145 # version (i.e. the crunched version) of resources takes
(...skipping 12 matching lines...) Expand all
155 'action_name': 'process_resources', 158 'action_name': 'process_resources',
156 'message': 'processing resources for <(_target_name)', 159 'message': 'processing resources for <(_target_name)',
157 'variables': { 160 'variables': {
158 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', 161 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml',
159 # Include the dependencies' res dirs so that references to 162 # Include the dependencies' res dirs so that references to
160 # resources in dependencies can be resolved. 163 # resources in dependencies can be resolved.
161 'dependencies_res_dirs': ['<@(res_extra_dirs)', 164 'dependencies_res_dirs': ['<@(res_extra_dirs)',
162 '>@(dependencies_res_input_dirs)',], 165 '>@(dependencies_res_input_dirs)',],
163 # Write the inputs list to a file, so that its mtime is updated when 166 # Write the inputs list to a file, so that its mtime is updated when
164 # the list of inputs changes. 167 # the list of inputs changes.
165 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(res ource_input_paths) >@(dependencies_res_files))', 168 'inputs_list_file': '>|(java_resources.<(_target_name).gypcmd >@(res ource_input_paths) >@(dependencies_res_files))'
166 'process_resources_options': [],
167 'conditions': [
168 ['res_v14_verify_only == 1', {
169 'process_resources_options': ['--v14-verify-only']
170 }],
171 ],
172 }, 169 },
173 'inputs': [ 170 'inputs': [
174 '<(DEPTH)/build/android/gyp/util/build_utils.py', 171 '<(DEPTH)/build/android/gyp/util/build_utils.py',
175 '<(DEPTH)/build/android/gyp/process_resources.py', 172 '<(DEPTH)/build/android/gyp/process_resources.py',
176 '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py',
177 '>@(resource_input_paths)', 173 '>@(resource_input_paths)',
178 '>@(dependencies_res_files)', 174 '>@(dependencies_res_files)',
179 '>(inputs_list_file)', 175 '>(inputs_list_file)',
180 ], 176 ],
181 'outputs': [ 177 'outputs': [
182 '<(R_stamp)', 178 '<(R_stamp)',
183 ], 179 ],
184 'action': [ 180 'action': [
185 'python', '<(DEPTH)/build/android/gyp/process_resources.py', 181 'python', '<(DEPTH)/build/android/gyp/process_resources.py',
186 '--android-sdk', '<(android_sdk)', 182 '--android-sdk', '<(android_sdk)',
187 '--android-sdk-tools', '<(android_sdk_tools)', 183 '--android-sdk-tools', '<(android_sdk_tools)',
188 '--R-dir', '<(R_dir)', 184 '--R-dir', '<(R_dir)',
189 '--dependencies-res-dirs', '>(dependencies_res_dirs)', 185 '--dependencies-res-dirs', '>(dependencies_res_dirs)',
190 '--resource-dir', '<(res_dir)', 186 '--resource-dir', '<(res_dir)',
191 '--res-v14-compatibility-dir', '<(res_v14_compatibility_dir)',
192 '--crunch-output-dir', '<(res_crunched_dir)', 187 '--crunch-output-dir', '<(res_crunched_dir)',
193 '--android-manifest', '<(android_manifest)', 188 '--android-manifest', '<(android_manifest)',
194 '--non-constant-id', 189 '--non-constant-id',
195 '--custom-package', '<(R_package)', 190 '--custom-package', '<(R_package)',
196 '--stamp', '<(R_stamp)', 191 '--stamp', '<(R_stamp)',
197 '<@(process_resources_options)',
198 ], 192 ],
199 }, 193 },
194 # Generate API 14 resources.
195 {
196 'action_name': 'generate_api_14_resources_<(_target_name)',
197 'message': 'Generating Android API 14 resources <(_target_name)',
198 'variables' : {
199 'res_v14_additional_options': [],
200 },
201 'conditions': [
202 ['res_v14_verify_only == 1', {
203 'variables': {
204 'res_v14_additional_options': ['--verify-only']
205 },
206 }],
207 ],
208 'inputs': [
209 '<(DEPTH)/build/android/gyp/util/build_utils.py',
210 '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py',
211 '>@(resource_input_paths)',
212 ],
213 'outputs': [
214 '<(res_v14_compatibility_stamp)',
215 ],
216 'action': [
217 'python', '<(DEPTH)/build/android/gyp/generate_v14_compatible_resour ces.py',
218 '--res-dir=<(res_dir)',
219 '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)',
220 '--stamp', '<(res_v14_compatibility_stamp)',
221 '<@(res_v14_additional_options)',
222 ]
223 },
200 ], 224 ],
201 }], 225 }],
202 ['proguard_preprocess == 1', { 226 ['proguard_preprocess == 1', {
203 'actions': [ 227 'actions': [
204 { 228 {
205 'action_name': 'proguard_<(_target_name)', 229 'action_name': 'proguard_<(_target_name)',
206 'message': 'Proguard preprocessing <(_target_name) jar', 230 'message': 'Proguard preprocessing <(_target_name) jar',
207 'inputs': [ 231 'inputs': [
208 '<(android_sdk_root)/tools/proguard/bin/proguard.sh', 232 '<(android_sdk_root)/tools/proguard/bin/proguard.sh',
209 '<(DEPTH)/build/android/gyp/util/build_utils.py', 233 '<(DEPTH)/build/android/gyp/util/build_utils.py',
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 'dex_no_locals': 1, 358 'dex_no_locals': 1,
335 }], 359 }],
336 ], 360 ],
337 'dex_input_paths': [ '<(jar_final_path)' ], 361 'dex_input_paths': [ '<(jar_final_path)' ],
338 'output_path': '<(dex_path)', 362 'output_path': '<(dex_path)',
339 }, 363 },
340 'includes': [ 'android/dex_action.gypi' ], 364 'includes': [ 'android/dex_action.gypi' ],
341 }, 365 },
342 ], 366 ],
343 } 367 }
OLDNEW
« no previous file with comments | « build/grit_action.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698