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

Side by Side Diff: chrome/chrome_dll.gypi

Issue 8430011: Revert 107967 - Introduces chromium_resources.gyp to factor out Chrome resource generation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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',
37 'chrome_version_resources', 36 '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 '<(INTERMEDIATE_DIR)/repack/chrome.pak',
294 '<(INTERMEDIATE_DIR)/repack/resources.pak',
295 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHAR ED_INTERMEDIATE_DIR) -x <(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.
299 ], 293 ],
300 'mac_bundle_resources!': [ 294 'mac_bundle_resources!': [
301 'app/framework-Info.plist', 295 'app/framework-Info.plist',
302 ], 296 ],
303 'dependencies': [ 297 'dependencies': [
304 # Bring in pdfsqueeze and run it on all pdfs 298 # Bring in pdfsqueeze and run it on all pdfs
305 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', 299 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze',
306 '../crypto/crypto.gyp:crypto', 300 '../crypto/crypto.gyp:crypto',
307 # On Mac, Flash gets put into the framework, so we need this 301 # On Mac, Flash gets put into the framework, so we need this
308 # dependency here. flash_player.gyp will copy the Flash bundle 302 # dependency here. flash_player.gyp will copy the Flash bundle
309 # into PRODUCT_DIR. 303 # into PRODUCT_DIR.
310 '../third_party/adobe/flash/flash_player.gyp:flash_player', 304 '../third_party/adobe/flash/flash_player.gyp:flash_player',
311 'chrome_resources.gyp:packed_extra_resources',
312 'chrome_resources.gyp:packed_resources',
313 ], 305 ],
314 'rules': [ 306 'rules': [
315 { 307 {
316 'rule_name': 'pdfsqueeze', 308 'rule_name': 'pdfsqueeze',
317 'extension': 'pdf', 309 'extension': 'pdf',
318 'inputs': [ 310 'inputs': [
319 '<(PRODUCT_DIR)/pdfsqueeze', 311 '<(PRODUCT_DIR)/pdfsqueeze',
320 ], 312 ],
321 'outputs': [ 313 'outputs': [
322 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', 314 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf',
323 ], 315 ],
324 'action': ['<(PRODUCT_DIR)/pdfsqueeze', 316 'action': ['<(PRODUCT_DIR)/pdfsqueeze',
325 '<(RULE_INPUT_PATH)', '<@(_outputs)'], 317 '<(RULE_INPUT_PATH)', '<@(_outputs)'],
326 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)', 318 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
327 }, 319 },
328 ], 320 ],
329 'variables': { 321 'variables': {
330 'conditions': [ 322 'conditions': [
331 ['branding=="Chrome"', { 323 ['branding=="Chrome"', {
332 'theme_dir_name': 'google_chrome', 324 'theme_dir_name': 'google_chrome',
333 }, { # else: 'branding!="Chrome" 325 }, { # else: 'branding!="Chrome"
334 'theme_dir_name': 'chromium', 326 'theme_dir_name': 'chromium',
335 }], 327 }],
336 ], 328 ],
337 'repack_path': '../tools/grit/grit/format/repack.py', 329 'repack_path': '../tools/grit/grit/format/repack.py',
338 }, 330 },
339 'actions': [ 331 'actions': [
332 # TODO(mark): These actions are duplicated for Linux and
333 # FreeBSD in the chrome target. Can they be unified?
340 { 334 {
341 'includes': ['chrome_repack_theme_resources_large.gypi'] 335 'action_name': 'repack_chrome',
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)/shared_resources.pak',
462 '<(grit_out_dir)/sync_internals_resources.pak',
463 '<(grit_out_dir)/workers_resources.pak',
464 ],
465 },
466 'inputs': [
467 '<(repack_path)',
468 '<@(pak_inputs)',
469 ],
470 'outputs': [
471 '<(INTERMEDIATE_DIR)/repack/resources.pak',
472 ],
473 'action': ['python', '<(repack_path)', '<@(_outputs)',
474 '<@(pak_inputs)'],
475 'process_outputs_as_mac_bundle_resources': 1,
342 }, 476 },
343 ], 477 ],
344 'postbuilds': [ 478 'postbuilds': [
345 { 479 {
346 # This step causes an error to be raised if the .order file 480 # This step causes an error to be raised if the .order file
347 # does not account for all global text symbols. It 481 # does not account for all global text symbols. It
348 # validates the completeness of the .order file. 482 # validates the completeness of the .order file.
349 'postbuild_name': 'Verify global text symbol order', 483 'postbuild_name': 'Verify global text symbol order',
350 'variables': { 484 'variables': {
351 'verify_order_path': 'tools/build/mac/verify_order', 485 'verify_order_path': 'tools/build/mac/verify_order',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 'files': [ 545 'files': [
412 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.plugin', 546 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.plugin',
413 # We leave out nacl_irt_x86_64.nexe because we only 547 # We leave out nacl_irt_x86_64.nexe because we only
414 # support x86-32 NaCl on Mac OS X. 548 # support x86-32 NaCl on Mac OS X.
415 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', 549 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
416 ], 550 ],
417 }], 551 }],
418 ], 552 ],
419 }, 553 },
420 { 554 {
555 'destination': '<(PRODUCT_DIR)',
556 'files': [
557 '<(INTERMEDIATE_DIR)/repack/resources.pak'
558 ],
559 },
560 {
561 'destination': '<(PRODUCT_DIR)/pseudo_locales',
562 'files': [
563 '<(INTERMEDIATE_DIR)/<(pseudo_locales).pak'
564 ],
565 },
566 {
421 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/resourc es', 567 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/resourc es',
422 'files': [], 568 'files': [],
423 'conditions': [ 569 'conditions': [
424 ['debug_devtools!=0', { 570 ['debug_devtools!=0', {
425 'files': [ 571 'files': [
426 '<(PRODUCT_DIR)/resources/inspector', 572 '<(PRODUCT_DIR)/resources/inspector',
427 ], 573 ],
428 }], 574 }],
429 ], 575 ],
430 }, 576 },
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 ], 649 ],
504 }], 650 }],
505 ], # conditions 651 ], # conditions
506 }], # OS=="mac" 652 }], # OS=="mac"
507 ], # conditions 653 ], # conditions
508 }, # target chrome_dll 654 }, # target chrome_dll
509 ], # targets 655 ], # targets
510 }], # OS=="mac" or OS=="win" 656 }], # OS=="mac" or OS=="win"
511 ], 657 ],
512 } 658 }
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