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

Side by Side Diff: chrome/chrome_dll.gypi

Issue 8425002: Introduces chromium_resources.gyp to factor out Chrome resource generation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux psuedo_locales output dir. Created 9 years, 1 month 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 | « chrome/chrome_common.gypi ('k') | chrome/chrome_exe.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) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 'conditions': [ 5 'conditions': [
6 ['OS=="mac" or OS=="win"', { 6 ['OS=="mac" or OS=="win"', {
7 'targets': [ 7 'targets': [
8 { 8 {
9 'variables': { 9 'variables': {
10 'conditions' : [ 10 'conditions' : [
(...skipping 15 matching lines...) Expand all
26 'dependencies': [ 26 'dependencies': [
27 '<@(chromium_dependencies)', 27 '<@(chromium_dependencies)',
28 'app/policy/cloud_policy_codegen.gyp:policy', 28 'app/policy/cloud_policy_codegen.gyp:policy',
29 ], 29 ],
30 'conditions': [ 30 'conditions': [
31 ['OS=="win"', { 31 ['OS=="win"', {
32 'product_name': 'chrome', 32 'product_name': 'chrome',
33 'dependencies': [ 33 'dependencies': [
34 # On Windows, link the dependencies (libraries) that make 34 # On Windows, link the dependencies (libraries) that make
35 # up actual Chromium functionality into this .dll. 35 # up actual Chromium functionality into this .dll.
36 'chrome_resources.gyp:chrome_resources',
36 'chrome_version_resources', 37 'chrome_version_resources',
37 'chrome_resources',
38 'installer_util_strings', 38 'installer_util_strings',
39 '../content/content.gyp:content_worker', 39 '../content/content.gyp:content_worker',
40 '../crypto/crypto.gyp:crypto', 40 '../crypto/crypto.gyp:crypto',
41 '../printing/printing.gyp:printing', 41 '../printing/printing.gyp:printing',
42 '../net/net.gyp:net_resources', 42 '../net/net.gyp:net_resources',
43 '../third_party/cld/cld.gyp:cld', 43 '../third_party/cld/cld.gyp:cld',
44 '../views/views.gyp:views', 44 '../views/views.gyp:views',
45 '../webkit/support/webkit_support.gyp:webkit_resources', 45 '../webkit/support/webkit_support.gyp:webkit_resources',
46 ], 46 ],
47 'sources': [ 47 'sources': [
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 'app/theme/omnibox_history.pdf', 283 'app/theme/omnibox_history.pdf',
284 'app/theme/omnibox_http.pdf', 284 'app/theme/omnibox_http.pdf',
285 'app/theme/omnibox_https_invalid.pdf', 285 'app/theme/omnibox_https_invalid.pdf',
286 'app/theme/omnibox_https_valid.pdf', 286 'app/theme/omnibox_https_valid.pdf',
287 'app/theme/omnibox_https_warning.pdf', 287 'app/theme/omnibox_https_warning.pdf',
288 'app/theme/omnibox_search.pdf', 288 'app/theme/omnibox_search.pdf',
289 'app/theme/otr_icon.pdf', 289 'app/theme/otr_icon.pdf',
290 'app/theme/star.pdf', 290 'app/theme/star.pdf',
291 'app/theme/star_lit.pdf', 291 'app/theme/star_lit.pdf',
292 'browser/mac/install.sh', 292 'browser/mac/install.sh',
293 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
294 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak',
295 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHAR ED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
296 # Note: pseudo_locales are generated via the packed_resources
297 # dependency but not copied to the final target. See
298 # common.gypi for more info.
293 ], 299 ],
294 'mac_bundle_resources!': [ 300 'mac_bundle_resources!': [
295 'app/framework-Info.plist', 301 'app/framework-Info.plist',
296 ], 302 ],
297 'dependencies': [ 303 'dependencies': [
298 # Bring in pdfsqueeze and run it on all pdfs 304 # Bring in pdfsqueeze and run it on all pdfs
299 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', 305 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze',
300 '../crypto/crypto.gyp:crypto', 306 '../crypto/crypto.gyp:crypto',
301 # On Mac, Flash gets put into the framework, so we need this 307 # On Mac, Flash gets put into the framework, so we need this
302 # dependency here. flash_player.gyp will copy the Flash bundle 308 # dependency here. flash_player.gyp will copy the Flash bundle
303 # into PRODUCT_DIR. 309 # into PRODUCT_DIR.
304 '../third_party/adobe/flash/flash_player.gyp:flash_player', 310 '../third_party/adobe/flash/flash_player.gyp:flash_player',
311 'chrome_resources.gyp:packed_extra_resources',
312 'chrome_resources.gyp:packed_resources',
305 ], 313 ],
306 'rules': [ 314 'rules': [
307 { 315 {
308 'rule_name': 'pdfsqueeze', 316 'rule_name': 'pdfsqueeze',
309 'extension': 'pdf', 317 'extension': 'pdf',
310 'inputs': [ 318 'inputs': [
311 '<(PRODUCT_DIR)/pdfsqueeze', 319 '<(PRODUCT_DIR)/pdfsqueeze',
312 ], 320 ],
313 'outputs': [ 321 'outputs': [
314 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', 322 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf',
315 ], 323 ],
316 'action': ['<(PRODUCT_DIR)/pdfsqueeze', 324 'action': ['<(PRODUCT_DIR)/pdfsqueeze',
317 '<(RULE_INPUT_PATH)', '<@(_outputs)'], 325 '<(RULE_INPUT_PATH)', '<@(_outputs)'],
318 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)', 326 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
319 }, 327 },
320 ], 328 ],
321 'variables': { 329 'variables': {
322 'conditions': [ 330 'conditions': [
323 ['branding=="Chrome"', { 331 ['branding=="Chrome"', {
324 'theme_dir_name': 'google_chrome', 332 'theme_dir_name': 'google_chrome',
325 }, { # else: 'branding!="Chrome" 333 }, { # else: 'branding!="Chrome"
326 'theme_dir_name': 'chromium', 334 'theme_dir_name': 'chromium',
327 }], 335 }],
328 ], 336 ],
329 'repack_path': '../tools/grit/grit/format/repack.py', 337 'repack_path': '../tools/grit/grit/format/repack.py',
330 }, 338 },
331 'actions': [ 339 'actions': [
332 # TODO(mark): These actions are duplicated for Linux and
333 # FreeBSD in the chrome target. Can they be unified?
334 { 340 {
335 'action_name': 'repack_chrome', 341 'includes': ['chrome_repack_theme_resources_large.gypi']
336 'variables': {
337 'pak_inputs': [
338 '<(grit_out_dir)/browser_resources.pak',
339 '<(grit_out_dir)/common_resources.pak',
340 '<(grit_out_dir)/default_plugin_resources/default_plugin_r esources.pak',
341 '<(grit_out_dir)/renderer_resources.pak',
342 '<(grit_out_dir)/theme_resources.pak',
343 '<(grit_out_dir)/theme_resources_standard.pak',
344 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
345 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.p ak',
346 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_re sources_standard.pak',
347 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resourc es.pak',
348 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
349 ],
350 },
351 'inputs': [
352 '<(repack_path)',
353 '<@(pak_inputs)',
354 ],
355 'outputs': [
356 '<(INTERMEDIATE_DIR)/repack/chrome.pak',
357 ],
358 'action': ['python', '<(repack_path)', '<@(_outputs)',
359 '<@(pak_inputs)'],
360 'process_outputs_as_mac_bundle_resources': 1,
361 },
362 {
363 'action_name': 'repack_theme_resources_large',
364 'variables': {
365 'pak_inputs': [
366 '<(grit_out_dir)/theme_resources_large.pak',
367 ],
368 },
369 'inputs': [
370 '<(repack_path)',
371 '<@(pak_inputs)',
372 ],
373 'outputs': [
374 '<(INTERMEDIATE_DIR)/repack/theme_resources_large.pak',
375 ],
376 'action': ['python', '<(repack_path)', '<@(_outputs)',
377 '<@(pak_inputs)'],
378 'process_outputs_as_mac_bundle_resources': 1,
379 },
380 {
381 'action_name': 'repack_locales',
382 'process_outputs_as_mac_bundle_resources': 1,
383 'variables': {
384 'conditions': [
385 ['branding=="Chrome"', {
386 'branding_flag': ['-b', 'google_chrome',],
387 }, { # else: branding!="Chrome"
388 'branding_flag': ['-b', 'chromium',],
389 }],
390 ],
391 },
392 'inputs': [
393 'tools/build/repack_locales.py',
394 # NOTE: Ideally the common command args would be shared
395 # amongst inputs/outputs/action, but the args include shell
396 # variables which need to be passed intact, and command
397 # expansion wants to expand the shell variables. Adding the
398 # explicit quoting here was the only way it seemed to work.
399 '>!@(<(repack_locales_cmd) -i <(branding_flag) -g \'<(grit_o ut_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales ))',
400 ],
401 'outputs': [
402 '>!@(<(repack_locales_cmd) -o -g \'<(grit_out_dir)\' -s \'<( SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
403 ],
404 'action': [
405 '<@(repack_locales_cmd)',
406 '<@(branding_flag)',
407 '-g', '<(grit_out_dir)',
408 '-s', '<(SHARED_INTERMEDIATE_DIR)',
409 '-x', '<(INTERMEDIATE_DIR)',
410 '<@(locales)',
411 ],
412 },
413 {
414 # This is an exact copy of the above phase, except for two
415 # changes:
416 # 1. process_outputs_as_mac_bundle_resources is omitted.
417 # 2. We pass 'pseudo_locales' instead of 'locales' wherever
418 # 'locales' is used.
419 # The result is a build phase that builds all pseudo locales
420 # but doesn't copy them to the final dll/framework.
421 'action_name': 'repack_pseudo_locales',
422 'variables': {
423 'conditions': [
424 ['branding=="Chrome"', {
425 'branding_flag': ['-b', 'google_chrome',],
426 }, { # else: branding!="Chrome"
427 'branding_flag': ['-b', 'chromium',],
428 }],
429 ],
430 },
431 'inputs': [
432 'tools/build/repack_locales.py',
433 # NOTE: Ideally the common command args would be shared
434 # amongst inputs/outputs/action, but the args include shell
435 # variables which need to be passed intact, and command
436 # expansion wants to expand the shell variables. Adding the
437 # explicit quoting here was the only way it seemed to work.
438 '>!@(<(repack_locales_cmd) -i <(branding_flag) -g \'<(grit_o ut_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(pseudo_ locales))',
439 ],
440 'outputs': [
441 '<(INTERMEDIATE_DIR)/<(pseudo_locales).pak'
442 ],
443 'action': [
444 '<@(repack_locales_cmd)',
445 '<@(branding_flag)',
446 '-g', '<(grit_out_dir)',
447 '-s', '<(SHARED_INTERMEDIATE_DIR)',
448 '-x', '<(INTERMEDIATE_DIR)',
449 '<@(pseudo_locales)',
450 ],
451 },
452 {
453 'action_name': 'repack_resources',
454 'variables': {
455 'pak_inputs': [
456 '<(grit_out_dir)/component_extension_resources.pak',
457 '<(grit_out_dir)/devtools_frontend_resources.pak',
458 '<(grit_out_dir)/devtools_resources.pak',
459 '<(grit_out_dir)/net_internals_resources.pak',
460 '<(grit_out_dir)/options_resources.pak',
461 '<(grit_out_dir)/quota_internals_resources.pak',
462 '<(grit_out_dir)/shared_resources.pak',
463 '<(grit_out_dir)/sync_internals_resources.pak',
464 '<(grit_out_dir)/workers_resources.pak',
465 ],
466 },
467 'inputs': [
468 '<(repack_path)',
469 '<@(pak_inputs)',
470 ],
471 'outputs': [
472 '<(INTERMEDIATE_DIR)/repack/resources.pak',
473 ],
474 'action': ['python', '<(repack_path)', '<@(_outputs)',
475 '<@(pak_inputs)'],
476 'process_outputs_as_mac_bundle_resources': 1,
477 }, 342 },
478 ], 343 ],
479 'postbuilds': [ 344 'postbuilds': [
480 { 345 {
481 # This step causes an error to be raised if the .order file 346 # This step causes an error to be raised if the .order file
482 # does not account for all global text symbols. It 347 # does not account for all global text symbols. It
483 # validates the completeness of the .order file. 348 # validates the completeness of the .order file.
484 'postbuild_name': 'Verify global text symbol order', 349 'postbuild_name': 'Verify global text symbol order',
485 'variables': { 350 'variables': {
486 'verify_order_path': 'tools/build/mac/verify_order', 351 'verify_order_path': 'tools/build/mac/verify_order',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 'files': [ 411 'files': [
547 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.plugin', 412 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.plugin',
548 # We leave out nacl_irt_x86_64.nexe because we only 413 # We leave out nacl_irt_x86_64.nexe because we only
549 # support x86-32 NaCl on Mac OS X. 414 # support x86-32 NaCl on Mac OS X.
550 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', 415 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
551 ], 416 ],
552 }], 417 }],
553 ], 418 ],
554 }, 419 },
555 { 420 {
421 # Copy of resources used by tests.
556 'destination': '<(PRODUCT_DIR)', 422 'destination': '<(PRODUCT_DIR)',
557 'files': [ 423 'files': [
558 '<(INTERMEDIATE_DIR)/repack/resources.pak' 424 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
559 ], 425 ],
560 }, 426 },
561 { 427 {
428 # Copy of resources used by tests.
562 'destination': '<(PRODUCT_DIR)/pseudo_locales', 429 'destination': '<(PRODUCT_DIR)/pseudo_locales',
563 'files': [ 430 'files': [
564 '<(INTERMEDIATE_DIR)/<(pseudo_locales).pak' 431 '<(SHARED_INTERMEDIATE_DIR)/<(pseudo_locales).pak'
565 ], 432 ],
566 }, 433 },
567 { 434 {
568 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/resourc es', 435 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/resourc es',
569 'files': [], 436 'files': [],
570 'conditions': [ 437 'conditions': [
571 ['debug_devtools!=0', { 438 ['debug_devtools!=0', {
572 'files': [ 439 'files': [
573 '<(PRODUCT_DIR)/resources/inspector', 440 '<(PRODUCT_DIR)/resources/inspector',
574 ], 441 ],
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 ], 517 ],
651 }], 518 }],
652 ], # conditions 519 ], # conditions
653 }], # OS=="mac" 520 }], # OS=="mac"
654 ], # conditions 521 ], # conditions
655 }, # target chrome_dll 522 }, # target chrome_dll
656 ], # targets 523 ], # targets
657 }], # OS=="mac" or OS=="win" 524 }], # OS=="mac" or OS=="win"
658 ], 525 ],
659 } 526 }
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/chrome_exe.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698