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

Side by Side Diff: chrome/chrome.gyp

Issue 384068: gyp changes - add support for building Native Client for 64-bit Windows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « chrome/browser/renderer_host/render_process_host_dummy.cc ('k') | chrome/chrome_common.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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 8
9 'variables': { 9 'variables': {
10 'version_py_path': 'tools/build/version.py', 10 'version_py_path': 'tools/build/version.py',
(...skipping 15 matching lines...) Expand all
26 'browser', 26 'browser',
27 'debugger', 27 'debugger',
28 'renderer', 28 'renderer',
29 'syncapi', 29 'syncapi',
30 'utility', 30 'utility',
31 'profile_import', 31 'profile_import',
32 'worker', 32 'worker',
33 '../printing/printing.gyp:printing', 33 '../printing/printing.gyp:printing',
34 '../webkit/webkit.gyp:inspector_resources', 34 '../webkit/webkit.gyp:inspector_resources',
35 ], 35 ],
36 'nacl_win64_dependencies': [
37 'common_nacl_win64',
38 'common_constants_win64',
39 ],
36 'allocator_target': '../base/allocator/allocator.gyp:allocator', 40 'allocator_target': '../base/allocator/allocator.gyp:allocator',
37 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', 41 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
38 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', 42 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
39 'chrome_strings_grds': [ 43 'chrome_strings_grds': [
40 # Localizable resources. 44 # Localizable resources.
41 'app/resources/locale_settings.grd', 45 'app/resources/locale_settings.grd',
42 'app/chromium_strings.grd', 46 'app/chromium_strings.grd',
43 'app/generated_resources.grd', 47 'app/generated_resources.grd',
44 'app/google_chrome_strings.grd', 48 'app/google_chrome_strings.grd',
45 ], 49 ],
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 # TODO(gregoryd): consider getting this from NaCl's common.gypi 101 # TODO(gregoryd): consider getting this from NaCl's common.gypi
98 'NACL_TARGET_SUBARCH=64', 102 'NACL_TARGET_SUBARCH=64',
99 'NACL_BUILD_SUBARCH=64', 103 'NACL_BUILD_SUBARCH=64',
100 ], 104 ],
101 }], 105 }],
102 ], # conditions 106 ], # conditions
103 }, # variables 107 }, # variables
104 'includes': [ 108 'includes': [
105 # Place some targets in gypi files to reduce contention on this file. 109 # Place some targets in gypi files to reduce contention on this file.
106 # By using an include, we keep everything in a single xcodeproj file. 110 # By using an include, we keep everything in a single xcodeproj file.
111 # Note on Win64 targets: targets that end with win64 be used
112 # on 64-bit Windows only. Targets that end with nacl_win64 should be used
113 # by Native Client only.
107 'chrome_browser.gypi', 114 'chrome_browser.gypi',
115 'chrome_common.gypi',
116 'chrome_dll.gypi',
117 'chrome_exe.gypi',
108 'chrome_renderer.gypi', 118 'chrome_renderer.gypi',
109 'chrome_tests.gypi', 119 'chrome_tests.gypi',
120 'common_constants.gypi',
121 'nacl.gypi',
110 ], 122 ],
111 'targets': [ 123 'targets': [
112 { 124 {
113 # TODO(mark): It would be better if each static library that needed 125 # TODO(mark): It would be better if each static library that needed
114 # to run grit would list its own .grd files, but unfortunately some 126 # to run grit would list its own .grd files, but unfortunately some
115 # of the static libraries currently have circular dependencies among 127 # of the static libraries currently have circular dependencies among
116 # generated headers. 128 # generated headers.
117 'target_name': 'chrome_resources', 129 'target_name': 'chrome_resources',
118 'type': 'none', 130 'type': 'none',
119 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', 131 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE',
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 { 346 {
335 'destination': '<(PRODUCT_DIR)/extensions', 347 'destination': '<(PRODUCT_DIR)/extensions',
336 'files': [ 348 'files': [
337 'browser/extensions/default_extensions/external_extensions.json' 349 'browser/extensions/default_extensions/external_extensions.json'
338 ] 350 ]
339 } 351 }
340 ], 352 ],
341 }], 353 }],
342 ], 354 ],
343 }, 355 },
344 {
345 'target_name': 'common_constants',
346 'type': '<(library)',
347 'dependencies': [
348 '../base/base.gyp:base',
349 ],
350 'conditions': [
351 ['OS=="linux"', {
352 'dependencies': ['../build/linux/system.gyp:gtk'],
353 }],
354 ],
355 'sources': [
356 'common/chrome_constants.cc',
357 'common/chrome_constants.h',
358 'common/chrome_paths.cc',
359 'common/chrome_paths.h',
360 'common/chrome_paths_internal.h',
361 'common/chrome_paths_linux.cc',
362 'common/chrome_paths_mac.mm',
363 'common/chrome_paths_win.cc',
364 'common/chrome_switches.cc',
365 'common/chrome_switches.h',
366 'common/env_vars.cc',
367 'common/env_vars.h',
368 'common/json_value_serializer.cc',
369 'common/json_value_serializer.h',
370 'common/pref_names.cc',
371 'common/pref_names.h',
372 ],
373 'actions': [
374 {
375 'action_name': 'Make chrome_version.cc',
376 'variables': {
377 'make_version_cc_path': 'tools/build/make_version_cc.py',
378 },
379 'inputs': [
380 '<(make_version_cc_path)',
381 'VERSION',
382 ],
383 'outputs': [
384 '<(INTERMEDIATE_DIR)/chrome_version.cc',
385 ],
386 'action': [
387 'python',
388 '<(make_version_cc_path)',
389 '<@(_outputs)',
390 '<(version_full)',
391 ],
392 'process_outputs_as_sources': 1,
393 },
394 ],
395 },
396 {
397 'target_name': 'common',
398 'type': '<(library)',
399 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
400 'dependencies': [
401 'common_constants',
402 'chrome_resources',
403 'chrome_strings',
404 'theme_resources',
405 '../app/app.gyp:app_base',
406 '../app/app.gyp:app_resources',
407 '../base/base.gyp:base',
408 '../base/base.gyp:base_i18n',
409 '../build/temp_gyp/googleurl.gyp:googleurl',
410 '../ipc/ipc.gyp:ipc',
411 '../net/net.gyp:net',
412 '../net/net.gyp:net_resources',
413 '../skia/skia.gyp:skia',
414 '../third_party/icu/icu.gyp:icui18n',
415 '../third_party/icu/icu.gyp:icuuc',
416 '../third_party/libxml/libxml.gyp:libxml',
417 '../third_party/sqlite/sqlite.gyp:sqlite',
418 '../third_party/zlib/zlib.gyp:zlib',
419 '../third_party/npapi/npapi.gyp:npapi',
420 '../webkit/webkit.gyp:appcache',
421 '../webkit/webkit.gyp:glue',
422 ],
423 'include_dirs': [
424 '..',
425 ],
426 'sources': [
427 # All .cc, .h, and .mm files under chrome/common except for tests.
428 'common/desktop_notifications/active_notification_tracker.h',
429 'common/desktop_notifications/active_notification_tracker.cc',
430 'common/extensions/extension.cc',
431 'common/extensions/extension.h',
432 'common/extensions/extension_constants.cc',
433 'common/extensions/extension_constants.h',
434 'common/extensions/extension_error_reporter.cc',
435 'common/extensions/extension_error_reporter.h',
436 'common/extensions/extension_error_utils.cc',
437 'common/extensions/extension_error_utils.h',
438 'common/extensions/extension_action.cc',
439 'common/extensions/extension_action.h',
440 'common/extensions/extension_l10n_util.cc',
441 'common/extensions/extension_l10n_util.h',
442 'common/extensions/extension_message_bundle.cc',
443 'common/extensions/extension_message_bundle.h',
444 'common/extensions/extension_resource.cc',
445 'common/extensions/extension_resource.h',
446 'common/extensions/extension_unpacker.cc',
447 'common/extensions/extension_unpacker.h',
448 'common/extensions/update_manifest.cc',
449 'common/extensions/update_manifest.h',
450 'common/extensions/url_pattern.cc',
451 'common/extensions/url_pattern.h',
452 'common/extensions/user_script.cc',
453 'common/extensions/user_script.h',
454 'common/gfx/utils.h',
455 'common/net/dns.h',
456 'common/net/net_resource_provider.cc',
457 'common/net/net_resource_provider.h',
458 'common/net/socket_stream.h',
459 'common/net/url_request_intercept_job.cc',
460 'common/net/url_request_intercept_job.h',
461 'common/web_resource/web_resource_unpacker.cc',
462 'common/web_resource/web_resource_unpacker.h',
463 'common/appcache/appcache_backend_proxy.cc',
464 'common/appcache/appcache_backend_proxy.h',
465 'common/appcache/appcache_dispatcher.cc',
466 'common/appcache/appcache_dispatcher.h',
467 'common/appcache/appcache_dispatcher_host.cc',
468 'common/appcache/appcache_dispatcher_host.h',
469 'common/appcache/appcache_frontend_proxy.cc',
470 'common/appcache/appcache_frontend_proxy.h',
471 'common/appcache/chrome_appcache_service.cc',
472 'common/appcache/chrome_appcache_service.h',
473 'common/automation_constants.cc',
474 'common/automation_constants.h',
475 'common/bindings_policy.h',
476 'common/child_process.cc',
477 'common/child_process.h',
478 'common/child_process_host.cc',
479 'common/child_process_host.h',
480 'common/child_process_info.cc',
481 'common/child_process_info.h',
482 'common/child_process_logging.h',
483 'common/child_process_logging_linux.cc',
484 'common/child_process_logging_mac.mm',
485 'common/child_process_logging_win.cc',
486 'common/child_thread.cc',
487 'common/child_thread.h',
488 'common/chrome_counters.cc',
489 'common/chrome_counters.h',
490 'common/chrome_descriptors.h',
491 'common/chrome_plugin_api.h',
492 'common/chrome_plugin_lib.cc',
493 'common/chrome_plugin_lib.h',
494 'common/chrome_plugin_util.cc',
495 'common/chrome_plugin_util.h',
496 'common/command_buffer_messages.h',
497 'common/command_buffer_messages_internal.h',
498 'common/common_glue.cc',
499 'common/common_param_traits.cc',
500 'common/common_param_traits.h',
501 'common/css_colors.h',
502 'common/db_message_filter.cc',
503 'common/db_message_filter.h',
504 'common/debug_flags.cc',
505 'common/debug_flags.h',
506 'common/devtools_messages.h',
507 'common/devtools_messages_internal.h',
508 'common/dom_storage_type.h',
509 'common/filter_policy.h',
510 'common/gears_api.h',
511 'common/gpu_plugin.cc',
512 'common/gpu_plugin.h',
513 'common/gtk_tree.cc',
514 'common/gtk_tree.h',
515 'common/gtk_util.cc',
516 'common/gtk_util.h',
517 'common/histogram_synchronizer.cc',
518 'common/histogram_synchronizer.h',
519 'common/important_file_writer.cc',
520 'common/important_file_writer.h',
521 'common/jstemplate_builder.cc',
522 'common/jstemplate_builder.h',
523 'common/libxml_utils.cc',
524 'common/libxml_utils.h',
525 'common/logging_chrome.cc',
526 'common/logging_chrome.h',
527 'common/main_function_params.h',
528 'common/message_router.cc',
529 'common/message_router.h',
530 'common/mru_cache.h',
531 'common/nacl_messages.h',
532 'common/nacl_messages_internal.h',
533 'common/navigation_gesture.h',
534 'common/navigation_types.h',
535 'common/native_web_keyboard_event.h',
536 'common/native_web_keyboard_event_linux.cc',
537 'common/native_web_keyboard_event_mac.mm',
538 'common/native_web_keyboard_event_win.cc',
539 'common/native_window_notification_source.h',
540 'common/notification_details.h',
541 'common/notification_observer.h',
542 'common/notification_registrar.cc',
543 'common/notification_registrar.h',
544 'common/notification_service.cc',
545 'common/notification_service.h',
546 'common/notification_source.h',
547 'common/notification_type.h',
548 'common/owned_widget_gtk.cc',
549 'common/owned_widget_gtk.h',
550 'common/page_transition_types.h',
551 'common/page_zoom.h',
552 'common/platform_util.h',
553 'common/platform_util_linux.cc',
554 'common/platform_util_mac.mm',
555 'common/platform_util_win.cc',
556 'common/plugin_carbon_interpose_constants_mac.h',
557 'common/plugin_carbon_interpose_constants_mac.cc',
558 'common/plugin_messages.h',
559 'common/plugin_messages_internal.h',
560 'common/pref_member.cc',
561 'common/pref_member.h',
562 'common/pref_service.cc',
563 'common/pref_service.h',
564 'common/process_watcher_mac.cc',
565 'common/process_watcher_posix.cc',
566 'common/process_watcher_win.cc',
567 'common/process_watcher.h',
568 'common/property_bag.cc',
569 'common/property_bag.h',
570 'common/ref_counted_util.h',
571 'common/render_messages.h',
572 'common/render_messages_internal.h',
573 'common/renderer_preferences.h',
574 'common/resource_dispatcher.cc',
575 'common/resource_dispatcher.h',
576 'common/result_codes.h',
577 'common/sandbox_init_wrapper.h',
578 'common/sandbox_init_wrapper_linux.cc',
579 'common/sandbox_init_wrapper_mac.cc',
580 'common/sandbox_init_wrapper_win.cc',
581 'common/sandbox_mac.h',
582 'common/sandbox_mac.mm',
583 'common/spellcheck_common.cc',
584 'common/spellcheck_common.h',
585 'common/security_filter_peer.cc',
586 'common/security_filter_peer.h',
587 'common/socket_stream_dispatcher.cc',
588 'common/socket_stream_dispatcher.h',
589 'common/sqlite_compiled_statement.cc',
590 'common/sqlite_compiled_statement.h',
591 'common/sqlite_utils.cc',
592 'common/sqlite_utils.h',
593 'common/task_queue.cc',
594 'common/task_queue.h',
595 'common/temp_scaffolding_stubs.cc',
596 'common/temp_scaffolding_stubs.h',
597 'common/thumbnail_score.cc',
598 'common/thumbnail_score.h',
599 'common/time_format.cc',
600 'common/time_format.h',
601 'common/transport_dib.h',
602 'common/transport_dib_linux.cc',
603 'common/transport_dib_mac.cc',
604 'common/transport_dib_win.cc',
605 'common/url_constants.cc',
606 'common/url_constants.h',
607 'common/utility_messages.h',
608 'common/utility_messages_internal.h',
609 'common/view_types.cc',
610 'common/view_types.h',
611 'common/visitedlink_common.cc',
612 'common/visitedlink_common.h',
613 'common/webkit_param_traits.h',
614 'common/webmessageportchannel_impl.cc',
615 'common/webmessageportchannel_impl.h',
616 'common/win_safe_util.cc',
617 'common/win_safe_util.h',
618 'common/worker_messages.h',
619 'common/worker_messages_internal.h',
620 'common/worker_thread_ticker.cc',
621 'common/worker_thread_ticker.h',
622 'common/x11_util.cc',
623 'common/x11_util.h',
624 'common/x11_util_internal.h',
625 'common/zip.cc', # Requires zlib directly.
626 'common/zip.h',
627 ],
628 'direct_dependent_settings': {
629 'include_dirs': [
630 '..',
631 ],
632 },
633 'export_dependent_settings': [
634 '../app/app.gyp:app_base',
635 ],
636 'conditions': [
637 ['OS=="linux"', {
638 'dependencies': [
639 '../build/linux/system.gyp:gtk',
640 ],
641 'export_dependent_settings': [
642 '../third_party/sqlite/sqlite.gyp:sqlite',
643 ],
644 'link_settings': {
645 'libraries': [
646 '-lX11',
647 '-lXrender',
648 '-lXext',
649 ],
650 },
651 },],
652 ['OS=="linux" and selinux==1', {
653 'dependencies': [
654 '../build/linux/system.gyp:selinux',
655 ],
656 }],
657 ['OS=="mac"', {
658 'sources!': [
659 'common/process_watcher_posix.cc',
660 ],
661 }],
662 ['OS=="win"', {
663 'include_dirs': [
664 'third_party/wtl/include',
665 ],
666 }, { # else: OS != "win"
667 'sources!': [
668 'common/hi_res_timer_manager.cc',
669 'common/hi_res_timer_manager.h',
670 'common/temp_scaffolding_stubs.h',
671 ],
672 }],
673 ['OS=="win" or OS=="linux"', {
674 'sources!': [
675 'common/temp_scaffolding_stubs.cc',
676 ],
677 }],
678 ],
679 },
680 { 356 {
681 'target_name': 'debugger', 357 'target_name': 'debugger',
682 'type': '<(library)', 358 'type': '<(library)',
683 'msvs_guid': '57823D8C-A317-4713-9125-2C91FDFD12D6', 359 'msvs_guid': '57823D8C-A317-4713-9125-2C91FDFD12D6',
684 'dependencies': [ 360 'dependencies': [
685 'chrome_resources', 361 'chrome_resources',
686 'chrome_strings', 362 'chrome_strings',
687 'theme_resources', 363 'theme_resources',
688 '../skia/skia.gyp:skia', 364 '../skia/skia.gyp:skia',
689 '../third_party/icu/icu.gyp:icui18n', 365 '../third_party/icu/icu.gyp:icui18n',
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 'third_party/wtl/include', 462 'third_party/wtl/include',
787 ], 463 ],
788 'sources': [ 464 'sources': [
789 'plugin/command_buffer_stub.cc', 465 'plugin/command_buffer_stub.cc',
790 'plugin/command_buffer_stub.h', 466 'plugin/command_buffer_stub.h',
791 ], 467 ],
792 },], 468 },],
793 ], 469 ],
794 }, 470 },
795 { 471 {
796 'target_name': 'nacl',
797 'type': '<(library)',
798 'msvs_guid': '83E86DAF-5763-4711-AD34-5FDAE395560C',
799 'dependencies': [
800 'common',
801 'chrome_resources',
802 'chrome_strings',
803 '../third_party/npapi/npapi.gyp:npapi',
804 '../webkit/webkit.gyp:glue',
805 '../native_client/src/trusted/plugin/plugin.gyp:npGoogleNaClPluginChrome ',
806 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
807 '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate ',
808 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:plat form_qual_lib',
809 ],
810 'include_dirs': [
811 '<(INTERMEDIATE_DIR)',
812 ],
813 'defines': [
814 'NACL_BLOCK_SHIFT=5',
815 'NACL_BLOCK_SIZE=32',
816 '<@(nacl_defines)',
817 ],
818 'sources': [
819 # All .cc, .h, .m, and .mm files under nacl except for tests and
820 # mocks.
821 'nacl/sel_main.cc',
822 'nacl/nacl_main.cc',
823 'nacl/nacl_thread.cc',
824 'nacl/nacl_thread.h',
825 ],
826 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
827 'conditions': [
828 ['OS=="win"', {
829 'defines': [
830 '__STD_C',
831 '_CRT_SECURE_NO_DEPRECATE',
832 '_SCL_SECURE_NO_DEPRECATE',
833 ],
834 'include_dirs': [
835 'third_party/wtl/include',
836 ],
837 },],
838 ],
839 },
840 {
841 'target_name': 'utility', 472 'target_name': 'utility',
842 'type': '<(library)', 473 'type': '<(library)',
843 'msvs_guid': '4D2B38E6-65FF-4F97-B88A-E441DF54EBF7', 474 'msvs_guid': '4D2B38E6-65FF-4F97-B88A-E441DF54EBF7',
844 'dependencies': [ 475 'dependencies': [
845 '../base/base.gyp:base', 476 '../base/base.gyp:base',
846 '../skia/skia.gyp:skia', 477 '../skia/skia.gyp:skia',
847 ], 478 ],
848 'sources': [ 479 'sources': [
849 'utility/utility_main.cc', 480 'utility/utility_main.cc',
850 'utility/utility_thread.cc', 481 'utility/utility_thread.cc',
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 'worker/worker_thread.cc', 529 'worker/worker_thread.cc',
899 'worker/worker_thread.h', 530 'worker/worker_thread.h',
900 'worker/worker_webkitclient_impl.cc', 531 'worker/worker_webkitclient_impl.cc',
901 'worker/worker_webkitclient_impl.h', 532 'worker/worker_webkitclient_impl.h',
902 ], 533 ],
903 'include_dirs': [ 534 'include_dirs': [
904 '..', 535 '..',
905 ], 536 ],
906 }, 537 },
907 { 538 {
908 'target_name': 'chrome',
909 'type': 'executable',
910 'mac_bundle': 1,
911 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC',
912 'sources': [
913 # All .cc, .h, .m, and .mm files under app except for tests.
914 'app/breakpad_win.cc',
915 'app/breakpad_win.h',
916 'app/chrome_exe_main.cc',
917 'app/chrome_exe_main.mm',
918 'app/chrome_exe_main_gtk.cc',
919 'app/chrome_exe_resource.h',
920 'app/client_util.cc',
921 'app/client_util.h',
922 'app/hard_error_handler_win.cc',
923 'app/hard_error_handler_win.h',
924 'app/scoped_ole_initializer.h',
925 ],
926 'mac_bundle_resources': [
927 'app/app-Info.plist',
928 ],
929 # TODO(mark): Come up with a fancier way to do this. It should only
930 # be necessary to list app-Info.plist once, not the three times it is
931 # listed here.
932 'mac_bundle_resources!': [
933 'app/app-Info.plist',
934 ],
935 'xcode_settings': {
936 'INFOPLIST_FILE': 'app/app-Info.plist',
937 },
938 'conditions': [
939 ['chrome_frame_define==1 and OS=="win"', {
940 'dependencies': [
941 '../chrome_frame/chrome_frame.gyp:npchrome_tab',
942 ],
943 }],
944 ['OS=="linux" or OS=="freebsd"', {
945 'actions': [
946 {
947 'action_name': 'manpage',
948 'conditions': [
949 [ 'branding == "Chrome"', {
950 'variables': {
951 'name': 'Google Chrome',
952 'filename': 'google-chrome',
953 'confdir': 'google-chrome',
954 },
955 }, { # else branding!="Chrome"
956 'variables': {
957 'name': 'Chromium',
958 'filename': 'chromium-browser',
959 'confdir': 'chromium',
960 },
961 }],
962 ],
963 'inputs': [
964 'tools/build/linux/sed.sh',
965 'app/resources/manpage.1.in',
966 ],
967 'outputs': [
968 '<(PRODUCT_DIR)/chrome.1',
969 ],
970 'action': [
971 'tools/build/linux/sed.sh',
972 'app/resources/manpage.1.in',
973 '<@(_outputs)',
974 '-e', 's/@@NAME@@/<(name)/',
975 '-e', 's/@@FILENAME@@/<(filename)/',
976 '-e', 's/@@CONFDIR@@/<(confdir)/',
977 ],
978 'message': 'Generating manpage'
979 },
980 ],
981 'conditions': [
982 [ 'linux_use_tcmalloc==1', {
983 'dependencies': [
984 '<(allocator_target)',
985 ],
986 },
987 ],
988 ],
989 'dependencies': [
990 # On Linux, link the dependencies (libraries) that make up actual
991 # Chromium functionality directly into the executable.
992 '<@(chromium_dependencies)',
993 # Needed for chrome_dll_main.cc #include of gtk/gtk.h
994 '../build/linux/system.gyp:gtk',
995 'packed_resources',
996 ],
997 'sources': [
998 'app/chrome_dll_main.cc',
999 'app/chrome_dll_resource.h',
1000 ],
1001 'copies': [
1002 {
1003 'destination': '<(PRODUCT_DIR)',
1004 'files': ['tools/build/linux/chrome-wrapper',
1005 '../third_party/xdg-utils/scripts/xdg-settings',
1006 ],
1007 # The wrapper script above may need to generate a .desktop file,
1008 # which requires an icon. So, copy one next to the script.
1009 'conditions': [
1010 ['branding=="Chrome"', {
1011 'files': ['app/theme/google_chrome/product_logo_48.png']
1012 }, { # else: 'branding!="Chrome"
1013 'files': ['app/theme/chromium/product_logo_48.png']
1014 }],
1015 ],
1016 },
1017 ],
1018 }],
1019 ['OS=="linux" and (toolkit_views==1 or chromeos==1)', {
1020 'dependencies': [
1021 '../views/views.gyp:views',
1022 ],
1023 }],
1024 ['OS=="mac"', {
1025 'variables': {
1026 'mac_packaging_dir':
1027 '<(PRODUCT_DIR)/<(mac_product_name) Packaging',
1028 # <(PRODUCT_DIR) expands to $(BUILT_PRODUCTS_DIR), which doesn't
1029 # work properly in a shell script, where ${BUILT_PRODUCTS_DIR} is
1030 # needed.
1031 'mac_packaging_sh_dir':
1032 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Packaging',
1033 },
1034 # 'branding' is a variable defined in common.gypi
1035 # (e.g. "Chromium", "Chrome")
1036 'conditions': [
1037 ['branding=="Chrome"', {
1038 'mac_bundle_resources': [
1039 'app/theme/google_chrome/app.icns',
1040 'app/theme/google_chrome/document.icns',
1041 ],
1042 }, { # else: 'branding!="Chrome"
1043 'mac_bundle_resources': [
1044 'app/theme/chromium/app.icns',
1045 'app/theme/chromium/document.icns',
1046 ],
1047 }],
1048 ['mac_breakpad==1', {
1049 'variables': {
1050 # A real .dSYM is needed for dump_syms to operate on.
1051 'mac_real_dsym': 1,
1052 },
1053 'dependencies': [
1054 '../breakpad/breakpad.gyp:dump_syms',
1055 '../breakpad/breakpad.gyp:symupload',
1056 ],
1057 # The "Dump Symbols" post-build step is in a target_conditions
1058 # block so that it will follow the "Strip If Needed" step if that
1059 # is also being used. There is no standard configuration where
1060 # both of these steps occur together, but Mark likes to use this
1061 # configuraiton sometimes when testing Breakpad-enabled builds
1062 # without the time overhead of creating real .dSYM files. When
1063 # both "Dump Symbols" and "Strip If Needed" are present, "Dump
1064 # Symbols" must come second because "Strip If Needed" creates
1065 # a fake .dSYM that dump_syms needs to fake dump. Since
1066 # "Strip If Needed" is added in a target_conditions block in
1067 # common.gypi, "Dump Symbols" needs to be in an (always true)
1068 # target_conditions block.
1069 'target_conditions': [
1070 ['1 == 1', {
1071 'postbuilds': [
1072 {
1073 'postbuild_name': 'Dump Symbols',
1074 'variables': {
1075 'dump_product_syms_path':
1076 'tools/build/mac/dump_product_syms',
1077 },
1078 'action': ['<(dump_product_syms_path)',
1079 '<(branding)'],
1080 },
1081 ],
1082 }],
1083 ],
1084 }], # mac_breakpad
1085 ['mac_keystone==1', {
1086 'copies': [
1087 {
1088 # Put keystone_install.sh where the packaging system will
1089 # find it. The packager will copy this script to the
1090 # correct location on the disk image.
1091 'destination': '<(mac_packaging_dir)',
1092 'files': [
1093 'tools/build/mac/keystone_install.sh',
1094 ],
1095 },
1096 ],
1097 }], # mac_keystone
1098 ['buildtype=="Official"', {
1099 'actions': [
1100 {
1101 # Create sign.sh, the script that the packaging system will
1102 # use to sign the .app bundle.
1103 'action_name': 'Make sign.sh',
1104 'variables': {
1105 'make_sign_sh_path': 'tools/build/mac/make_sign_sh',
1106 'sign_sh_in_path': 'tools/build/mac/sign.sh.in',
1107 'app_resource_rules_in_path':
1108 'tools/build/mac/app_resource_rules.plist.in',
1109 },
1110 'inputs': [
1111 '<(make_sign_sh_path)',
1112 '<(sign_sh_in_path)',
1113 '<(app_resource_rules_in_path)',
1114 '<(version_path)',
1115 ],
1116 'outputs': [
1117 '<(mac_packaging_dir)/sign.sh',
1118 '<(mac_packaging_dir)/app_resource_rules.plist',
1119 ],
1120 'action': [
1121 '<(make_sign_sh_path)',
1122 '<(mac_packaging_sh_dir)',
1123 '<(mac_product_name)',
1124 '<(version_full)',
1125 ],
1126 },
1127 ],
1128 }], # buildtype=="Official"
1129 ],
1130 'product_name': '<(mac_product_name)',
1131 'xcode_settings': {
1132 # chrome/app/app-Info.plist has:
1133 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID
1134 # CFBundleName of CHROMIUM_SHORT_NAME
1135 # CFBundleSignature of CHROMIUM_CREATOR
1136 # Xcode then replaces these values with the branded values we set
1137 # as settings on the target.
1138 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
1139 'CHROMIUM_CREATOR': '<(mac_creator)',
1140 'CHROMIUM_SHORT_NAME': '<(branding)',
1141 },
1142 'dependencies': [
1143 'helper_app',
1144 'infoplist_strings_tool',
1145 # This library provides the real implementation for NaClSyscallSeg
1146 '../native_client/src/trusted/service_runtime/arch/x86_32/service_ru ntime_x86_32.gyp:service_runtime_x86_32_chrome'
1147 ],
1148 'actions': [
1149 {
1150 # Generate the InfoPlist.strings file
1151 'action_name': 'Generating InfoPlist.strings files',
1152 'variables': {
1153 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool',
1154 # Unique dir to write to so the [lang].lproj/InfoPlist.strings
1155 # for the main app and the helper app don't name collide.
1156 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings',
1157 },
1158 'conditions': [
1159 [ 'branding == "Chrome"', {
1160 'variables': {
1161 'branding_name': 'google_chrome_strings',
1162 },
1163 }, { # else branding!="Chrome"
1164 'variables': {
1165 'branding_name': 'chromium_strings',
1166 },
1167 }],
1168 ],
1169 'inputs': [
1170 '<(tool_path)',
1171 '<(version_path)',
1172 # TODO: remove this helper when we have loops in GYP
1173 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(branding_name)_ZZL OCALE.pak\' <(locales))',
1174 ],
1175 'outputs': [
1176 # TODO: remove this helper when we have loops in GYP
1177 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Inf oPlist.strings\' <(locales))',
1178 ],
1179 'action': [
1180 '<(tool_path)',
1181 '-b', '<(branding_name)',
1182 '-v', '<(version_path)',
1183 '-g', '<(grit_out_dir)',
1184 '-o', '<(output_path)',
1185 '-t', 'main',
1186 '<@(locales)',
1187 ],
1188 'message': 'Generating the language InfoPlist.strings files',
1189 'process_outputs_as_mac_bundle_resources': 1,
1190 },
1191 ],
1192 'copies': [
1193 {
1194 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Ve rsions/<(version_full)',
1195 'files': [
1196 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app',
1197 ],
1198 },
1199 ],
1200 'postbuilds': [
1201 {
1202 'postbuild_name': 'Copy <(mac_product_name) Framework.framework',
1203 'action': [
1204 'tools/build/mac/copy_framework_unversioned',
1205 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Framework.framework',
1206 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Versions/<(versio n_full)',
1207 ],
1208 },
1209 {
1210 # Modify the Info.plist as needed. The script explains why this
1211 # is needed. This is also done in the helper_app and chrome_dll
1212 # targets. Use -b0 to not include any Breakpad information; that
1213 # all goes into the framework's Info.plist. Keystone information
1214 # is included if Keystone is enabled because the ticket will
1215 # reference this Info.plist to determine the tag of the installed
1216 # product. Use -s1 to include Subversion information.
1217 'postbuild_name': 'Tweak Info.plist',
1218 'action': ['<(tweak_info_plist_path)',
1219 '-b0',
1220 '-k<(mac_keystone)',
1221 '-s1',
1222 '<(branding)',
1223 '<(mac_bundle_id)'],
1224 },
1225 {
1226 'postbuild_name': 'Clean up old versions',
1227 'action': [
1228 'tools/build/mac/clean_up_old_versions',
1229 '<(version_full)'
1230 ],
1231 },
1232 ], # postbuilds
1233 }, { # else: OS != "mac"
1234 'conditions': [
1235 ['branding=="Chrome"', {
1236 'product_name': 'chrome'
1237 }, { # else: Branding!="Chrome"
1238 # TODO: change to:
1239 # 'product_name': 'chromium'
1240 # whenever we convert the rest of the infrastructure
1241 # (buildbots etc.) to use "gyp -Dbranding=Chrome".
1242 # NOTE: chrome/app/theme/chromium/BRANDING and
1243 # chrome/app/theme/google_chrome/BRANDING have the short names,
1244 # etc.; should we try to extract from there instead?
1245 'product_name': 'chrome'
1246 }],
1247 ],
1248 }],
1249 ['OS=="linux"', {
1250 'conditions': [
1251 ['branding=="Chrome"', {
1252 'dependencies': [
1253 'installer/installer.gyp:linux_installer_configs',
1254 ],
1255 }],
1256 ['selinux==0', {
1257 'dependencies': [
1258 '../sandbox/sandbox.gyp:sandbox',
1259 ],
1260 }],
1261 ['linux_sandbox_path != ""', {
1262 'defines': [
1263 'LINUX_SANDBOX_PATH="<(linux_sandbox_path)"',
1264 ],
1265 }],
1266 ],
1267 }],
1268 ['OS=="mac" or OS=="win"', {
1269 'dependencies': [
1270 # On Windows and Mac, make sure we've built chrome_dll, which
1271 # contains all of the library code with Chromium functionality.
1272 'chrome_dll',
1273 ],
1274 }],
1275 ['OS=="win"', {
1276 'dependencies': [
1277 'installer/installer.gyp:installer_util',
1278 'installer/installer.gyp:installer_util_strings',
1279 '../breakpad/breakpad.gyp:breakpad_handler',
1280 '../breakpad/breakpad.gyp:breakpad_sender',
1281 '../sandbox/sandbox.gyp:sandbox',
1282 'app/locales/locales.gyp:*',
1283 ],
1284 'sources': [
1285 'app/chrome_exe.rc',
1286 'app/chrome_exe_version.rc.version',
1287 ],
1288 'include_dirs': [
1289 '<(SHARED_INTERMEDIATE_DIR)/chrome',
1290 ],
1291 'msvs_settings': {
1292 'VCLinkerTool': {
1293 'DelayLoadDLLs': [
1294 'dbghelp.dll',
1295 'dwmapi.dll',
1296 'uxtheme.dll',
1297 'ole32.dll',
1298 'oleaut32.dll',
1299 ],
1300 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib',
1301 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb',
1302 # Set /SUBSYSTEM:WINDOWS for chrome.exe itself.
1303 'SubSystem': '2',
1304 },
1305 'VCManifestTool': {
1306 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.exe.manifes t',
1307 },
1308 },
1309 'actions': [
1310 {
1311 'action_name': 'version',
1312 'variables': {
1313 'template_input_path': 'app/chrome_exe_version.rc.version',
1314 },
1315 'conditions': [
1316 [ 'branding == "Chrome"', {
1317 'variables': {
1318 'branding_path': 'app/theme/google_chrome/BRANDING',
1319 },
1320 }, { # else branding!="Chrome"
1321 'variables': {
1322 'branding_path': 'app/theme/chromium/BRANDING',
1323 },
1324 }],
1325 ],
1326 'inputs': [
1327 '<(template_input_path)',
1328 '<(version_path)',
1329 '<(branding_path)',
1330 ],
1331 'outputs': [
1332 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_exe_version.rc',
1333 ],
1334 'action': [
1335 'python',
1336 '<(version_py_path)',
1337 '-f', '<(version_path)',
1338 '-f', '<(branding_path)',
1339 '<(template_input_path)',
1340 '<@(_outputs)',
1341 ],
1342 'process_outputs_as_sources': 1,
1343 'message': 'Generating version information in <(_outputs)'
1344 },
1345 {
1346 'action_name': 'first_run',
1347 'inputs': [
1348 'app/FirstRun',
1349 ],
1350 'outputs': [
1351 '<(PRODUCT_DIR)/First Run',
1352 ],
1353 'action': ['cp', '-f', '<@(_inputs)', '<@(_outputs)'],
1354 'message': 'Copy first run complete sentinel file',
1355 },
1356 ],
1357 }, { # 'OS!="win"
1358 'sources!': [
1359 'app/chrome_exe_main.cc',
1360 'app/client_util.cc',
1361 ]
1362 }],
1363 ],
1364 },
1365 {
1366 # Provides a syncapi dynamic library target from checked-in binaries, 539 # Provides a syncapi dynamic library target from checked-in binaries,
1367 # or from compiling a stub implementation. 540 # or from compiling a stub implementation.
1368 'target_name': 'syncapi', 541 'target_name': 'syncapi',
1369 'type': '<(library)', 542 'type': '<(library)',
1370 'sources': [ 543 'sources': [
1371 'browser/sync/engine/syncapi.cc', 544 'browser/sync/engine/syncapi.cc',
1372 ], 545 ],
1373 'include_dirs': [ 546 'include_dirs': [
1374 '..', 547 '..',
1375 '<(protoc_out_dir)', 548 '<(protoc_out_dir)',
1376 ], 549 ],
1377 'defines' : [ 550 'defines' : [
1378 '_CRT_SECURE_NO_WARNINGS', 551 '_CRT_SECURE_NO_WARNINGS',
1379 '_USE_32BIT_TIME_T', 552 '_USE_32BIT_TIME_T',
1380 ], 553 ],
1381 'dependencies': [ 554 'dependencies': [
1382 '../base/base.gyp:base', 555 '../base/base.gyp:base',
1383 '../build/temp_gyp/googleurl.gyp:googleurl', 556 '../build/temp_gyp/googleurl.gyp:googleurl',
1384 '../net/net.gyp:net_base',
1385 '../third_party/icu/icu.gyp:icuuc', 557 '../third_party/icu/icu.gyp:icuuc',
1386 '../third_party/libjingle/libjingle.gyp:libjingle', 558 '../third_party/libjingle/libjingle.gyp:libjingle',
1387 '../third_party/sqlite/sqlite.gyp:sqlite', 559 '../third_party/sqlite/sqlite.gyp:sqlite',
1388 'common_constants', 560 'common_constants',
1389 'notifier', 561 'notifier',
1390 'sync', 562 'sync',
1391 'sync_proto', 563 'sync_proto',
1392 ], 564 ],
1393 }, 565 },
1394 { 566 {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 'link_settings': { 838 'link_settings': {
1667 'libraries': [ 839 'libraries': [
1668 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', 840 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
1669 ], 841 ],
1670 }, 842 },
1671 }], 843 }],
1672 ], 844 ],
1673 }, 845 },
1674 ], 846 ],
1675 'conditions': [ 847 'conditions': [
1676 ['OS=="mac" or OS=="win"', {
1677 'targets': [
1678 {
1679 'target_name': 'chrome_dll',
1680 'type': 'shared_library',
1681 'dependencies': [
1682 '<@(chromium_dependencies)',
1683 ],
1684 'conditions': [
1685 ['OS=="win"', {
1686 'product_name': 'chrome',
1687 'msvs_guid': 'C0A7EE2C-2A6D-45BE-BA78-6D006FDF52D9',
1688 'include_dirs': [
1689 'third_party/wtl/include',
1690 ],
1691 'dependencies': [
1692 # On Windows, link the dependencies (libraries) that make
1693 # up actual Chromium functionality into this .dll.
1694 'chrome_dll_version',
1695 'chrome_resources',
1696 'installer/installer.gyp:installer_util_strings',
1697 'worker',
1698 '../printing/printing.gyp:printing',
1699 '../net/net.gyp:net_resources',
1700 '../build/util/support/support.gyp:*',
1701 '../third_party/cld/cld.gyp:cld',
1702 '../views/views.gyp:views',
1703 '../webkit/webkit.gyp:webkit_resources',
1704 '../gears/gears.gyp:gears',
1705 ],
1706 'defines': [
1707 'CHROME_DLL',
1708 'BROWSER_DLL',
1709 'RENDERER_DLL',
1710 'PLUGIN_DLL',
1711 ],
1712 'sources': [
1713 'app/chrome_dll.rc',
1714 'app/chrome_dll_main.cc',
1715 'app/chrome_dll_resource.h',
1716 '<(SHARED_INTERMEDIATE_DIR)/chrome_dll_version/chrome_dll_versio n.rc',
1717
1718 '../webkit/glue/resources/aliasb.cur',
1719 '../webkit/glue/resources/cell.cur',
1720 '../webkit/glue/resources/col_resize.cur',
1721 '../webkit/glue/resources/copy.cur',
1722 '../webkit/glue/resources/row_resize.cur',
1723 '../webkit/glue/resources/vertical_text.cur',
1724 '../webkit/glue/resources/zoom_in.cur',
1725 '../webkit/glue/resources/zoom_out.cur',
1726
1727 # TODO: It would be nice to have these pulled in
1728 # automatically from direct_dependent_settings in
1729 # their various targets (net.gyp:net_resources, etc.),
1730 # but that causes errors in other targets when
1731 # resulting .res files get referenced multiple times.
1732 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resources.rc',
1733 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
1734 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
1735 '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
1736 '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
1737 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1738 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
1739
1740 # TODO(sgk): left-over from pre-gyp build, figure out
1741 # if we still need them and/or how to update to gyp.
1742 #'app/check_dependents.bat',
1743 #'app/chrome.dll.deps',
1744 ],
1745 'msvs_settings': {
1746 'VCLinkerTool': {
1747 'BaseAddress': '0x01c30000',
1748 'DelayLoadDLLs': [
1749 'crypt32.dll',
1750 'cryptui.dll',
1751 'winhttp.dll',
1752 'wininet.dll',
1753 'wsock32.dll',
1754 'ws2_32.dll',
1755 'winspool.drv',
1756 'comdlg32.dll',
1757 'imagehlp.dll',
1758 'urlmon.dll',
1759 'imm32.dll',
1760 'iphlpapi.dll',
1761 ],
1762 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib',
1763 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb',
1764 # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency).
1765 'SubSystem': '2',
1766 },
1767 'VCManifestTool': {
1768 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest',
1769 },
1770 },
1771 'configurations': {
1772 'Debug_Base': {
1773 'msvs_settings': {
1774 'VCLinkerTool': {
1775 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1776 },
1777 },
1778 },
1779 },
1780 }], # OS=="win"
1781 ['OS=="mac"', {
1782 # The main browser executable's name is <(mac_product_name).
1783 # Certain things will get confused if two modules in the
1784 # executable share the same name, so append " Framework" to the
1785 # product_name used for the framework. This will result in
1786 # a name like "Chromium Framework.framework".
1787 'product_name': '<(mac_product_name) Framework',
1788 'mac_bundle': 1,
1789 'xcode_settings': {
1790 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
1791
1792 # The dylib versions are of the form a[.b[.c]], where a is a
1793 # 16-bit unsigned integer, and b and c are 8-bit unsigned
1794 # integers. Any missing component is taken to be 0. The
1795 # best mapping from product version numbers into this scheme
1796 # is to just use the build and patch numbers. There is no
1797 # ambiguity in this scheme because the build number is
1798 # guaranteed unique even across distinct major and minor
1799 # version numbers. These settings correspond to
1800 # -compatibility_version and -current_version.
1801 'DYLIB_COMPATIBILITY_VERSION': '<(version_build_patch)',
1802 'DYLIB_CURRENT_VERSION': '<(version_build_patch)',
1803
1804 # The framework is placed within the .app's versioned
1805 # directory. DYLIB_INSTALL_NAME_BASE and
1806 # LD_DYLIB_INSTALL_NAME affect -install_name.
1807 'DYLIB_INSTALL_NAME_BASE':
1808 '@executable_path/../Versions/<(version_full)',
1809 # See tools/build/mac/copy_framework_unversioned for
1810 # information on LD_DYLIB_INSTALL_NAME.
1811 'LD_DYLIB_INSTALL_NAME':
1812 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/ $(PRODUCT_NAME)',
1813
1814 'INFOPLIST_FILE': 'app/framework-Info.plist',
1815
1816 # Define the order of symbols within the framework. This
1817 # sets -order_file.
1818 'ORDER_FILE': 'app/framework.order',
1819 },
1820 'sources': [
1821 'app/chrome_dll_main.cc',
1822 'app/chrome_dll_resource.h',
1823 'app/chrome_exe_main.mm',
1824 ],
1825 # TODO(mark): Come up with a fancier way to do this. It should
1826 # only be necessary to list framework-Info.plist once, not the
1827 # three times it is listed here.
1828 'mac_bundle_resources': [
1829 'app/framework-Info.plist',
1830 'app/nibs/About.xib',
1831 'app/nibs/AboutIPC.xib',
1832 'app/nibs/BookmarkAllTabs.xib',
1833 'app/nibs/BookmarkBar.xib',
1834 'app/nibs/BookmarkBubble.xib',
1835 'app/nibs/BookmarkEditor.xib',
1836 'app/nibs/BookmarkNameFolder.xib',
1837 'app/nibs/BrowserWindow.xib',
1838 'app/nibs/ClearBrowsingData.xib',
1839 'app/nibs/DownloadItem.xib',
1840 'app/nibs/DownloadShelf.xib',
1841 'app/nibs/EditSearchEngine.xib',
1842 'app/nibs/ExtensionShelf.xib',
1843 'app/nibs/FindBar.xib',
1844 'app/nibs/FirstRunDialog.xib',
1845 'app/nibs/FontLanguageSettings.xib',
1846 'app/nibs/HungRendererDialog.xib',
1847 'app/nibs/HttpAuthLoginSheet.xib',
1848 'app/nibs/ImportSettingsDialog.xib',
1849 'app/nibs/InfoBar.xib',
1850 'app/nibs/InfoBarContainer.xib',
1851 'app/nibs/ImportProgressDialog.xib',
1852 'app/nibs/KeywordEditor.xib',
1853 'app/nibs/MainMenu.xib',
1854 'app/nibs/PageInfo.xib',
1855 'app/nibs/Preferences.xib',
1856 'app/nibs/ReportBug.xib',
1857 'app/nibs/SaveAccessoryView.xib',
1858 'app/nibs/SadTab.xib',
1859 'app/nibs/TabContents.xib',
1860 'app/nibs/TabView.xib',
1861 'app/nibs/TaskManager.xib',
1862 'app/nibs/Toolbar.xib',
1863 'app/theme/back_Template.pdf',
1864 'app/theme/chevron.png', # TODO(jrg): get and use a pdf version
1865 'app/theme/close_bar.pdf',
1866 'app/theme/close_bar_h.pdf',
1867 'app/theme/close_bar_p.pdf',
1868 'app/theme/find_next_Template.pdf',
1869 'app/theme/find_prev_Template.pdf',
1870 'app/theme/forward_Template.pdf',
1871 'app/theme/go_Template.pdf',
1872 'app/theme/home_Template.pdf',
1873 'app/theme/menu_chrome_rtl_Template.pdf',
1874 'app/theme/menu_chrome_Template.pdf',
1875 'app/theme/menu_page_rtl_Template.pdf',
1876 'app/theme/menu_page_Template.pdf',
1877 'app/theme/nav.pdf',
1878 'app/theme/newtab.pdf',
1879 'app/theme/newtab_h.pdf',
1880 'app/theme/newtab_p.pdf',
1881 'app/theme/otr_icon.pdf',
1882 'app/theme/reload_Template.pdf',
1883 'app/theme/star_Template.pdf',
1884 'app/theme/starred.pdf',
1885 'app/theme/stop_Template.pdf',
1886 ],
1887 'mac_bundle_resources!': [
1888 'app/framework-Info.plist',
1889 ],
1890 'dependencies': [
1891 # Bring in pdfsqueeze and run it on all pdfs
1892 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze',
1893 '../build/util/support/support.gyp:*',
1894 ],
1895 'rules': [
1896 {
1897 'rule_name': 'pdfsqueeze',
1898 'extension': 'pdf',
1899 'inputs': [
1900 '<(PRODUCT_DIR)/pdfsqueeze',
1901 ],
1902 'outputs': [
1903 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf',
1904 ],
1905 'action': ['<(PRODUCT_DIR)/pdfsqueeze',
1906 '<(RULE_INPUT_PATH)', '<@(_outputs)'],
1907 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
1908 },
1909 ],
1910 'variables': {
1911 'repack_path': '../tools/data_pack/repack.py',
1912 },
1913 'actions': [
1914 # TODO(mark): These actions are duplicated for Linux and
1915 # FreeBSD in the chrome target. Can they be unified?
1916 {
1917 'action_name': 'repack_chrome',
1918 'variables': {
1919 'pak_inputs': [
1920 '<(grit_out_dir)/browser_resources.pak',
1921 '<(grit_out_dir)/common_resources.pak',
1922 '<(grit_out_dir)/renderer_resources.pak',
1923 '<(grit_out_dir)/theme_resources.pak',
1924 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resource s.pak',
1925 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
1926 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
1927 ],
1928 },
1929 'inputs': [
1930 '<(repack_path)',
1931 '<@(pak_inputs)',
1932 ],
1933 'outputs': [
1934 '<(INTERMEDIATE_DIR)/repack/chrome.pak',
1935 ],
1936 'action': ['python', '<(repack_path)', '<@(_outputs)',
1937 '<@(pak_inputs)'],
1938 'process_outputs_as_mac_bundle_resources': 1,
1939 },
1940 {
1941 'action_name': 'repack_locales',
1942 'process_outputs_as_mac_bundle_resources': 1,
1943 'variables': {
1944 'conditions': [
1945 ['branding=="Chrome"', {
1946 'branding_flag': ['-b', 'google_chrome',],
1947 }, { # else: branding!="Chrome"
1948 'branding_flag': ['-b', 'chromium',],
1949 }],
1950 ],
1951 },
1952 'inputs': [
1953 'tools/build/repack_locales.py',
1954 # NOTE: Ideally the common command args would be shared
1955 # amongst inputs/outputs/action, but the args include shell
1956 # variables which need to be passed intact, and command
1957 # expansion wants to expand the shell variables. Adding the
1958 # explicit quoting here was the only way it seemed to work.
1959 '>!@(<(repack_locales_cmd) -i <(branding_flag) -g \'<(grit_o ut_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales ))',
1960 ],
1961 'outputs': [
1962 '>!@(<(repack_locales_cmd) -o -g \'<(grit_out_dir)\' -s \'<( SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
1963 ],
1964 'action': [
1965 '<@(repack_locales_cmd)',
1966 '<@(branding_flag)',
1967 '-g', '<(grit_out_dir)',
1968 '-s', '<(SHARED_INTERMEDIATE_DIR)',
1969 '-x', '<(INTERMEDIATE_DIR)',
1970 '<@(locales)',
1971 ],
1972 },
1973 ],
1974 'postbuilds': [
1975 {
1976 # This step causes an error to be raised if the .order file
1977 # does not account for all global text symbols. It
1978 # validates the completeness of the .order file.
1979 'postbuild_name': 'Verify global text symbol order',
1980 'variables': {
1981 'verify_order_path': 'tools/build/mac/verify_order',
1982 },
1983 'action': [
1984 '<(verify_order_path)',
1985 '_ChromeMain',
1986 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
1987 ],
1988 },
1989 {
1990 # Modify the Info.plist as needed. The script explains why
1991 # this is needed. This is also done in the chrome target.
1992 # The framework needs the Breakpad and Keystone keys if
1993 # those features are enabled. It doesn't currently use the
1994 # Subversion keys for anything, but this seems like a really
1995 # good place to store them.
1996 'postbuild_name': 'Tweak Info.plist',
1997 'action': ['<(tweak_info_plist_path)',
1998 '-b<(mac_breakpad)',
1999 '-k<(mac_keystone)',
2000 '-s1',
2001 '<(branding)',
2002 '<(mac_bundle_id)'],
2003 },
2004 {
2005 'postbuild_name': 'Symlink Libraries',
2006 'action': [
2007 'ln',
2008 '-fhs',
2009 'Versions/Current/Libraries',
2010 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries'
2011 ],
2012 },
2013 ],
2014 'copies': [
2015 {
2016 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resourc es',
2017 'files': [
2018 '<(PRODUCT_DIR)/resources/inspector/'
2019 ],
2020 'conditions': [
2021 ['mac_breakpad==1', {
2022 'files': [
2023 '<(PRODUCT_DIR)/crash_inspector',
2024 '<(PRODUCT_DIR)/crash_report_sender.app'
2025 ],
2026 }],
2027 ],
2028 },
2029 {
2030 'destination':
2031 '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
2032 'files': [
2033 # TODO(ajwong): Find a way to share this path with
2034 # ffmpeg.gyp so they don't diverge. (BUG=23602)
2035 '<(PRODUCT_DIR)/libffmpegsumo.dylib',
2036 ],
2037 },
2038 ],
2039 'conditions': [
2040 ['mac_breakpad==1', {
2041 'variables': {
2042 # A real .dSYM is needed for dump_syms to operate on.
2043 'mac_real_dsym': 1,
2044 },
2045 'sources': [
2046 'app/breakpad_mac.mm',
2047 'app/breakpad_mac.h',
2048 ],
2049 'dependencies': [
2050 '../breakpad/breakpad.gyp:breakpad',
2051 ],
2052 }, { # else: mac_breakpad!=1
2053 # No Breakpad, put in the stubs.
2054 'sources': [
2055 'app/breakpad_mac_stubs.mm',
2056 'app/breakpad_mac.h',
2057 ],
2058 }], # mac_breakpad
2059 ['mac_keystone==1', {
2060 'variables': {
2061 'conditions': [
2062 ['branding=="Chrome"', {
2063 'theme_dir_name': 'google_chrome',
2064 }, { # else: 'branding!="Chrome"
2065 'theme_dir_name': 'chromium',
2066 }],
2067 ],
2068 },
2069 'mac_bundle_resources': [
2070 # This image is used to badge the lock icon in the
2071 # promotion authentication dialog. It needs to exist as
2072 # a file on disk and not just something in a resource
2073 # bundle because that's the interface that Authorization
2074 # Services uses. Also, Authorization Services can't deal
2075 # with .icns files.
2076 'app/theme/<(theme_dir_name)/product_logo_32.png',
2077
2078 'browser/cocoa/keystone_promote_preflight.sh',
2079 'browser/cocoa/keystone_promote_postflight.sh',
2080 ],
2081 'postbuilds': [
2082 {
2083 'postbuild_name': 'Copy KeystoneRegistration.framework',
2084 'action': [
2085 'tools/build/mac/copy_framework_unversioned',
2086 '../third_party/googlemac/Releases/Keystone/KeystoneRegi stration.framework',
2087 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Framework s',
2088 ],
2089 },
2090 {
2091 'postbuild_name': 'Symlink Frameworks',
2092 'action': [
2093 'ln',
2094 '-fhs',
2095 'Versions/Current/Frameworks',
2096 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Frameworks'
2097 ],
2098 },
2099 ],
2100 }], # mac_keystone
2101 ], # conditions
2102 }], # OS=="mac"
2103 ], # conditions
2104 }, # target chrome_dll
2105 ], # targets
2106 }], # OS=="mac" or OS=="win"
2107 ['OS=="mac"', 848 ['OS=="mac"',
2108 { 'targets': [ 849 { 'targets': [
2109 { 850 {
2110 'target_name': 'helper_app', 851 'target_name': 'helper_app',
2111 'type': 'executable', 852 'type': 'executable',
2112 'product_name': '<(mac_product_name) Helper', 853 'product_name': '<(mac_product_name) Helper',
2113 'mac_bundle': 1, 854 'mac_bundle': 1,
2114 'dependencies': [ 855 'dependencies': [
2115 'chrome_dll', 856 'chrome_dll',
2116 'interpose_dependency_shim', 857 'interpose_dependency_shim',
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 ], 1160 ],
2420 'dependencies': [ 1161 'dependencies': [
2421 'chrome', 1162 'chrome',
2422 '../breakpad/breakpad.gyp:dump_syms', 1163 '../breakpad/breakpad.gyp:dump_syms',
2423 ], 1164 ],
2424 }], 1165 }],
2425 ], 1166 ],
2426 } 1167 }
2427 ], 1168 ],
2428 },], # OS=="linux" 1169 },], # OS=="linux"
2429 ['OS!="win"',
2430 { 'targets': [
2431 ], # targets
2432 }], # OS!="win"
2433 ['OS=="win"', 1170 ['OS=="win"',
2434 { 'targets': [ 1171 { 'targets': [
2435 { 1172 {
2436 # TODO(sgk): remove this when we change the buildbots to 1173 # TODO(sgk): remove this when we change the buildbots to
2437 # use the generated build\all.sln file to build the world. 1174 # use the generated build\all.sln file to build the world.
2438 'target_name': 'pull_in_all', 1175 'target_name': 'pull_in_all',
2439 'type': 'none', 1176 'type': 'none',
2440 'dependencies': [ 1177 'dependencies': [
2441 'installer/mini_installer.gyp:*', 1178 'installer/mini_installer.gyp:*',
2442 'installer/installer.gyp:*', 1179 'installer/installer.gyp:*',
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2728 }], # targets 1465 }], # targets
2729 }], # OS=="linux" or OS=="freebsd" 1466 }], # OS=="linux" or OS=="freebsd"
2730 ], # 'conditions' 1467 ], # 'conditions'
2731 } 1468 }
2732 1469
2733 # Local Variables: 1470 # Local Variables:
2734 # tab-width:2 1471 # tab-width:2
2735 # indent-tabs-mode:nil 1472 # indent-tabs-mode:nil
2736 # End: 1473 # End:
2737 # vim: set expandtab tabstop=2 shiftwidth=2: 1474 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_process_host_dummy.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698