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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 # Add hash of inputs to the command line, so if inputs change | 178 # Add hash of inputs to the command line, so if inputs change |
179 # (e.g. if a resource if removed), the command will be re-run. | 179 # (e.g. if a resource if removed), the command will be re-run. |
180 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 180 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
181 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 181 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
182 ], | 182 ], |
183 }, | 183 }, |
184 # Generate API 14 resources. | 184 # Generate API 14 resources. |
185 { | 185 { |
186 'action_name': 'generate_api_14_resources_<(_target_name)', | 186 'action_name': 'generate_api_14_resources_<(_target_name)', |
187 'message': 'Generating Android API 14 resources <(_target_name)', | 187 'message': 'Generating Android API 14 resources <(_target_name)', |
188 'variables' : { | |
189 'res_v14_verify_only%': 0, | |
newt (away)
2013/07/09 00:52:49
res_v14_verify_only should probably go at the top
Kibeom Kim (inactive)
2013/07/09 02:10:21
Done.
| |
190 'res_v14_additional_options': [], | |
191 }, | |
192 'conditions': [ | |
193 ['res_v14_verify_only == 1', { | |
194 'variables': { | |
195 'res_v14_additional_options': ['--verify-only'] | |
196 }, | |
197 }], | |
198 ], | |
188 'inputs': [ | 199 'inputs': [ |
189 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 200 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
190 '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py', | 201 '<(DEPTH)/build/android/gyp/generate_v14_compatible_resources.py', |
191 '>@(resource_input_paths)', | 202 '>@(resource_input_paths)', |
192 ], | 203 ], |
193 'outputs': [ | 204 'outputs': [ |
194 '<(res_v14_compatibility_stamp)', | 205 '<(res_v14_compatibility_stamp)', |
195 ], | 206 ], |
196 'action': [ | 207 'action': [ |
197 'python', '<(DEPTH)/build/android/gyp/generate_v14_compatible_resour ces.py', | 208 'python', '<(DEPTH)/build/android/gyp/generate_v14_compatible_resour ces.py', |
198 '--res-dir=<(res_dir)', | 209 '--res-dir=<(res_dir)', |
199 '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)', | 210 '--res-v14-compatibility-dir=<(res_v14_compatibility_dir)', |
200 '--stamp', '<(res_v14_compatibility_stamp)', | 211 '--stamp', '<(res_v14_compatibility_stamp)', |
212 '<@(res_v14_additional_options)', | |
201 ] | 213 ] |
202 }, | 214 }, |
203 ], | 215 ], |
204 }], | 216 }], |
205 ], | 217 ], |
206 'actions': [ | 218 'actions': [ |
207 { | 219 { |
208 'action_name': 'javac_<(_target_name)', | 220 'action_name': 'javac_<(_target_name)', |
209 'message': 'Compiling <(_target_name) java sources', | 221 'message': 'Compiling <(_target_name) java sources', |
210 'variables': { | 222 'variables': { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 { | 295 { |
284 'action_name': 'dex_<(_target_name)', | 296 'action_name': 'dex_<(_target_name)', |
285 'variables': { | 297 'variables': { |
286 'dex_input_paths': [ '<(jar_path)' ], | 298 'dex_input_paths': [ '<(jar_path)' ], |
287 'output_path': '<(dex_path)', | 299 'output_path': '<(dex_path)', |
288 }, | 300 }, |
289 'includes': [ 'android/dex_action.gypi' ], | 301 'includes': [ 'android/dex_action.gypi' ], |
290 }, | 302 }, |
291 ], | 303 ], |
292 } | 304 } |
OLD | NEW |