OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 | 7 |
8 'variables': { | 8 'variables': { |
9 'version_py_path': 'tools/build/version.py', | 9 'version_py_path': 'tools/build/version.py', |
10 'version_path': 'VERSION', | 10 'version_path': 'VERSION', |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 # This means you end up with all the outputs from all the grd | 195 # This means you end up with all the outputs from all the grd |
196 # files, which angers scons and confuses vstudio. | 196 # files, which angers scons and confuses vstudio. |
197 # One alternative would be to turn this into several actions, | 197 # One alternative would be to turn this into several actions, |
198 # but that would be rather verbose. | 198 # but that would be rather verbose. |
199 ], | 199 ], |
200 'action': ['<@(grit_cmd)', '-i', | 200 'action': ['<@(grit_cmd)', '-i', |
201 '<(RULE_INPUT_PATH)', | 201 '<(RULE_INPUT_PATH)', |
202 'build', '-o', '<(grit_out_dir)', | 202 'build', '-o', '<(grit_out_dir)', |
203 '-D', '<(chrome_build)', | 203 '-D', '<(chrome_build)', |
204 '-E', '<(branded_env)', | 204 '-E', '<(branded_env)', |
205 ], | 205 '<@(grit_defines)', |
206 'conditions': [ | |
207 ['chromeos==1', { | |
208 'action': ['-D', 'chromeos'], | |
209 }], | |
210 ['toolkit_views==1', { | |
211 'action': ['-D', 'toolkit_views'], | |
212 }], | |
213 ['use_titlecase_in_grd_files==1', { | |
214 'action': ['-D', 'use_titlecase'], | |
215 }], | |
216 ], | 206 ], |
217 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 207 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
218 }, | 208 }, |
219 ], | 209 ], |
220 'sources': [ | 210 'sources': [ |
221 '<@(chrome_resources_grds)', | 211 '<@(chrome_resources_grds)', |
222 '<@(chrome_resources_inputs)', | 212 '<@(chrome_resources_inputs)', |
223 ], | 213 ], |
224 'direct_dependent_settings': { | 214 'direct_dependent_settings': { |
225 'include_dirs': [ | 215 'include_dirs': [ |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', | 272 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', |
283 # TODO: remove this helper when we have loops in GYP | 273 # TODO: remove this helper when we have loops in GYP |
284 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)_ZZLOC
ALE.pak\' <(locales))', | 274 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)_ZZLOC
ALE.pak\' <(locales))', |
285 # TODO(bradnelson): move to something like this | 275 # TODO(bradnelson): move to something like this |
286 #'<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(chrome_string
s_grds))', | 276 #'<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(chrome_string
s_grds))', |
287 # See comment in chrome_resources as to why. | 277 # See comment in chrome_resources as to why. |
288 ], | 278 ], |
289 'action': ['<@(grit_cmd)', '-i', | 279 'action': ['<@(grit_cmd)', '-i', |
290 '<(RULE_INPUT_PATH)', | 280 '<(RULE_INPUT_PATH)', |
291 'build', '-o', '<(grit_out_dir)', | 281 'build', '-o', '<(grit_out_dir)', |
292 '-D', '<(chrome_build)'], | 282 '-D', '<(chrome_build)', |
293 'conditions': [ | 283 '<@(grit_defines)' ], |
294 ['chromeos==1', { | |
295 'action': ['-D', 'chromeos'], | |
296 }], | |
297 ['use_titlecase_in_grd_files==1', { | |
298 'action': ['-D', 'use_titlecase'], | |
299 }], | |
300 ], | |
301 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 284 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
302 }, | 285 }, |
303 ], | 286 ], |
304 'sources': [ | 287 'sources': [ |
305 '<@(chrome_strings_grds)', | 288 '<@(chrome_strings_grds)', |
306 '<@(chrome_strings_inputs)', | 289 '<@(chrome_strings_inputs)', |
307 ], | 290 ], |
308 'include_dirs': [ | 291 'include_dirs': [ |
309 '<(grit_out_dir)', | 292 '<(grit_out_dir)', |
310 ], | 293 ], |
(...skipping 27 matching lines...) Expand all Loading... |
338 'inputs': [ | 321 'inputs': [ |
339 '<!@(<(grit_info_cmd) --inputs <(input_path))', | 322 '<!@(<(grit_info_cmd) --inputs <(input_path))', |
340 ], | 323 ], |
341 'outputs': [ | 324 'outputs': [ |
342 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', | 325 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', |
343 ], | 326 ], |
344 'action': [ | 327 'action': [ |
345 '<@(grit_cmd)', | 328 '<@(grit_cmd)', |
346 '-i', '<(input_path)', 'build', | 329 '-i', '<(input_path)', 'build', |
347 '-o', '<(grit_out_dir)', | 330 '-o', '<(grit_out_dir)', |
348 '-D', '<(chrome_build)' | 331 '-D', '<(chrome_build)', |
349 ], | 332 '<@(grit_defines)', |
350 'conditions': [ | |
351 ['chromeos==1', { | |
352 'action': ['-D', 'chromeos'], | |
353 }], | |
354 ['toolkit_views==1', { | |
355 'action': ['-D', 'toolkit_views'], | |
356 }], | |
357 ['use_titlecase_in_grd_files==1', { | |
358 'action': ['-D', 'use_titlecase'], | |
359 }], | |
360 ], | 333 ], |
361 'message': 'Generating resources from <(input_path)', | 334 'message': 'Generating resources from <(input_path)', |
362 }, | 335 }, |
363 ], | 336 ], |
364 'direct_dependent_settings': { | 337 'direct_dependent_settings': { |
365 'include_dirs': [ | 338 'include_dirs': [ |
366 '<(grit_out_dir)', | 339 '<(grit_out_dir)', |
367 ], | 340 ], |
368 }, | 341 }, |
369 'conditions': [ | 342 'conditions': [ |
(...skipping 26 matching lines...) Expand all Loading... |
396 'inputs': [ | 369 'inputs': [ |
397 '<!@(<(grit_info_cmd) --inputs <(input_path))', | 370 '<!@(<(grit_info_cmd) --inputs <(input_path))', |
398 ], | 371 ], |
399 'outputs': [ | 372 'outputs': [ |
400 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', | 373 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', |
401 ], | 374 ], |
402 'action': [ | 375 'action': [ |
403 '<@(grit_cmd)', | 376 '<@(grit_cmd)', |
404 '-i', '<(input_path)', 'build', | 377 '-i', '<(input_path)', 'build', |
405 '-o', '<(grit_out_dir)', | 378 '-o', '<(grit_out_dir)', |
406 '-D', '<(chrome_build)' | 379 '-D', '<(chrome_build)', |
407 ], | 380 '<@(grit_defines)', |
408 'conditions': [ | |
409 ['chromeos==1', { | |
410 'action': ['-D', 'chromeos'], | |
411 }], | |
412 ['use_titlecase_in_grd_files==1', { | |
413 'action': ['-D', 'use_titlecase'], | |
414 }], | |
415 ], | 381 ], |
416 'message': 'Generating resources from <(input_path)', | 382 'message': 'Generating resources from <(input_path)', |
417 }, | 383 }, |
418 ], | 384 ], |
419 'direct_dependent_settings': { | 385 'direct_dependent_settings': { |
420 'include_dirs': [ | 386 'include_dirs': [ |
421 '<(grit_out_dir)', | 387 '<(grit_out_dir)', |
422 ], | 388 ], |
423 }, | 389 }, |
424 'conditions': [ | 390 'conditions': [ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 # This means you end up with all the outputs from all the grd | 434 # This means you end up with all the outputs from all the grd |
469 # files, which angers scons and confuses vstudio. | 435 # files, which angers scons and confuses vstudio. |
470 # One alternative would be to turn this into several actions, | 436 # One alternative would be to turn this into several actions, |
471 # but that would be rather verbose. | 437 # but that would be rather verbose. |
472 ], | 438 ], |
473 'action': ['<@(grit_cmd)', '-i', | 439 'action': ['<@(grit_cmd)', '-i', |
474 '<(RULE_INPUT_PATH)', | 440 '<(RULE_INPUT_PATH)', |
475 'build', '-o', '<(grit_out_dir)', | 441 'build', '-o', '<(grit_out_dir)', |
476 '-D', '<(chrome_build)', | 442 '-D', '<(chrome_build)', |
477 '-E', '<(branded_env)', | 443 '-E', '<(branded_env)', |
478 ], | 444 '<@(grit_defines)', |
479 'conditions': [ | |
480 ['chromeos==1', { | |
481 'action': ['-D', 'chromeos'], | |
482 }], | |
483 ['use_titlecase_in_grd_files==1', { | |
484 'action': ['-D', 'use_titlecase'], | |
485 }], | |
486 ['touchui==1', { | |
487 'action': ['-D', 'touchui'], | |
488 }], | |
489 ], | 445 ], |
490 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 446 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
491 }, | 447 }, |
492 ], | 448 ], |
493 'sources': [ | 449 'sources': [ |
494 '<@(chrome_extra_resources_grds)', | 450 '<@(chrome_extra_resources_grds)', |
495 '<@(chrome_extra_resources_inputs)', | 451 '<@(chrome_extra_resources_inputs)', |
496 ], | 452 ], |
497 'direct_dependent_settings': { | 453 'direct_dependent_settings': { |
498 'include_dirs': [ | 454 'include_dirs': [ |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1936 }], # targets | 1892 }], # targets |
1937 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 1893 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
1938 ], # 'conditions' | 1894 ], # 'conditions' |
1939 } | 1895 } |
1940 | 1896 |
1941 # Local Variables: | 1897 # Local Variables: |
1942 # tab-width:2 | 1898 # tab-width:2 |
1943 # indent-tabs-mode:nil | 1899 # indent-tabs-mode:nil |
1944 # End: | 1900 # End: |
1945 # vim: set expandtab tabstop=2 shiftwidth=2: | 1901 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |