# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, # Keep the archive builder happy. 'chrome_personalization%': 1, 'use_syncapi_stub%': 0, 'conditions': [ ['OS=="win"', { 'python': [ '<(DEPTH)\\third_party\\python_26\\setup_env.bat && python' ], }, { # OS != win 'python': [ 'python' ], }], ], }, 'includes': [ '../build/win_precompile.gypi', '../chrome/version.gypi', ], 'target_defaults': { 'dependencies': [ '../chrome/chrome_resources.gyp:chrome_resources', '../chrome/chrome_resources.gyp:chrome_strings', '../chrome/chrome_resources.gyp:packed_resources', '../chrome/chrome_resources.gyp:theme_resources', '../skia/skia.gyp:skia', ], 'defines': [ 'ISOLATION_AWARE_ENABLED=1' ], 'include_dirs': [ # all our own includes are relative to src/ '..', ], }, 'targets': [ { 'target_name': 'chrome_frame_version_resources', 'type': 'none', 'conditions': [ ['branding == "Chrome"', { 'variables': { 'branding_path': '../chrome/app/theme/google_chrome/BRANDING', }, }, { # else branding!="Chrome" 'variables': { 'branding_path': '../chrome/app/theme/chromium/BRANDING', }, }], ], 'variables': { 'output_dir': 'chrome_frame', 'template_input_path': 'npchrome_frame_version.rc.version', 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above }, 'direct_dependent_settings': { 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', ], }, 'sources': [ 'npchrome_frame_dll.ver', ], 'includes': [ '../chrome/version_resource_rules.gypi', ], }, { # Builds the crash tests in crash_reporting. 'target_name': 'chrome_frame_crash_tests', 'type': 'none', 'dependencies': [ 'crash_reporting/crash_reporting.gyp:minidump_test', 'crash_reporting/crash_reporting.gyp:vectored_handler_tests', ], }, { # Builds our IDL file to the shared intermediate directory. 'target_name': 'chrome_tab_idl', 'type': 'none', 'msvs_settings': { 'VCMIDLTool': { 'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/chrome_frame', }, }, 'sources': [ 'chrome_tab.idl', ], # Add the output dir for those who depend on us. 'direct_dependent_settings': { 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'], }, }, { 'target_name': 'chrome_frame_unittests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:test_support_base', '../chrome/chrome.gyp:test_support_common', '../components/components.gyp:policy', '../net/net.gyp:net', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', 'chrome_frame_launcher.gyp:chrome_frame_helper_lib', 'chrome_frame_ie', 'chrome_frame_strings', 'chrome_tab_idl', 'locales/locales.gyp:*', ], 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', 'chrome_frame_unittest_main.cc', 'chrome_launcher.cc', 'chrome_launcher.h', 'chrome_launcher_unittest.cc', 'function_stub_unittest.cc', 'scoped_initialization_manager_unittest.cc', 'test/chrome_tab_mocks.h', 'test/chrome_frame_test_utils.h', 'test/chrome_frame_test_utils.cc', 'test/com_message_event_unittest.cc', 'test/dll_redirector_test.cc', 'test/exception_barrier_unittest.cc', 'test/html_util_unittests.cc', 'test/http_negotiate_unittest.cc', 'test/infobar_unittests.cc', 'test/policy_settings_unittest.cc', 'test/registry_watcher_unittest.cc', 'test/simulate_input.h', 'test/simulate_input.cc', 'test/urlmon_moniker_tests.h', 'test/urlmon_moniker_unittest.cc', 'test/util_unittests.cc', 'test/win_event_receiver.h', 'test/win_event_receiver.cc', 'unittest_precompile.h', 'unittest_precompile.cc', 'urlmon_upload_data_stream_unittest.cc', 'vtable_patch_manager_unittest.cc', ], 'include_dirs': [ '<(DEPTH)/breakpad/src', ], 'resource_include_dirs': [ '<(INTERMEDIATE_DIR)', ], 'conditions': [ ['OS=="win" and buildtype=="Official"', { 'configurations': { 'Release': { 'msvs_settings': { 'VCCLCompilerTool': { 'WholeProgramOptimization': 'false', }, }, }, }, },], ['OS=="win"', { 'link_settings': { 'libraries': [ '-lshdocvw.lib', '-loleacc.lib', ], }, 'msvs_settings': { 'VCLinkerTool': { 'DelayLoadDLLs': ['shdocvw.dll'], }, }, 'dependencies': [ '../breakpad/breakpad.gyp:breakpad_handler', # TODO(slightlyoff): Get automation targets working on OS X '../chrome/chrome.gyp:automation', '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', ], 'configurations': { 'Debug_Base': { 'msvs_settings': { 'VCLinkerTool': { 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', }, }, }, }, }], ], }, { 'target_name': 'chrome_frame_tests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:test_support_base', '../chrome/chrome.gyp:browser', '../chrome/chrome.gyp:common', '../chrome/chrome.gyp:debugger', '../chrome/chrome.gyp:renderer', '../chrome/chrome.gyp:test_support_common', '../chrome/chrome.gyp:utility', '../chrome/installer/upgrade_test.gyp:alternate_version_generator_lib', '../content/content.gyp:content_gpu', '../net/net.gyp:net', '../net/net.gyp:net_test_support', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/iaccessible2/iaccessible2.gyp:IAccessible2Proxy', '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2', '../third_party/libxslt/libxslt.gyp:libxslt', '../url/url.gyp:url_lib', 'chrome_frame_ie', 'chrome_frame_strings', 'chrome_frame_utils', 'chrome_tab_idl', 'locales/locales.gyp:*', 'npchrome_frame', ], 'sources': [ '../base/test/test_suite.h', 'test/automation_client_mock.cc', 'test/automation_client_mock.h', 'test/chrome_frame_test_utils.cc', 'test/chrome_frame_test_utils.h', 'test/chrome_frame_ui_test_utils.cc', 'test/chrome_frame_ui_test_utils.h', 'test/chrome_frame_automation_mock.cc', 'test/chrome_frame_automation_mock.h', 'test/delete_chrome_history_test.cc', 'test/dll_redirector_loading_test.cc', 'test/header_test.cc', 'test/ie_configurator.cc', 'test/ie_configurator.h', 'test/ie_event_sink.cc', 'test/ie_event_sink.h', 'test/mock_ie_event_sink_actions.h', 'test/mock_ie_event_sink_test.cc', 'test/mock_ie_event_sink_test.h', 'test/navigation_test.cc', 'test/proxy_factory_mock.cc', 'test/proxy_factory_mock.h', 'test/run_all_unittests.cc', 'test/simple_resource_loader_test.cc', 'test/simulate_input.cc', 'test/simulate_input.h', 'test/test_scrubber.cc', 'test/test_scrubber.h', 'test/test_server.cc', 'test/test_server.h', 'test/test_server_test.cc', 'test/test_with_web_server.cc', 'test/test_with_web_server.h', 'test/ui_test.cc', 'test/urlmon_moniker_tests.h', 'test/urlmon_moniker_integration_test.cc', 'test/url_request_test.cc', 'test/win_event_receiver.cc', 'test/win_event_receiver.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_launcher_exe_version.rc', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', 'test_utils.cc', 'test_utils.h', ], 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', '<(DEPTH)/breakpad/src', ], 'resource_include_dirs': [ '<(INTERMEDIATE_DIR)', ], 'conditions': [ ['OS=="win"', { 'link_settings': { 'libraries': [ '-loleacc.lib', ], }, 'dependencies': [ '../chrome/chrome.gyp:crash_service', '../chrome/chrome.gyp:automation', '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', ], 'configurations': { 'Debug_Base': { 'msvs_settings': { 'VCLinkerTool': { 'LinkIncremental': '<(msvs_debug_link_nonincremental)', }, }, }, }, 'conditions': [ ['win_use_allocator_shim==1', { 'dependencies': [ '../base/allocator/allocator.gyp:allocator', ], }], ], }], ], }, { 'target_name': 'chrome_frame_perftests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/base.gyp:test_support_base', '../chrome/chrome.gyp:browser', '../chrome/chrome.gyp:common', '../chrome/chrome.gyp:debugger', '../chrome/chrome.gyp:image_pre_reader', '../chrome/chrome.gyp:test_support_common', '../chrome/chrome.gyp:test_support_ui', '../chrome/chrome.gyp:utility', '../chrome/test/perf/perf_test.gyp:*', '../content/content.gyp:content_gpu', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/libxml/libxml.gyp:libxml', '../third_party/libxslt/libxslt.gyp:libxslt', '../url/url.gyp:url_lib', 'chrome_frame_ie', 'chrome_frame_strings', 'chrome_frame_utils', 'chrome_tab_idl', 'locales/locales.gyp:*', 'npchrome_frame', ], 'sources': [ '../base/test/perf_test_suite.h', '../base/test/test_file_util.h', '../chrome/test/base/chrome_process_util.cc', '../chrome/test/base/chrome_process_util.h', '../chrome/test/ui/ui_test.cc', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', 'test/chrome_frame_test_utils.cc', 'test/chrome_frame_test_utils.h', 'test/perf/chrome_frame_perftest.cc', 'test/perf/chrome_frame_perftest.h', 'test/perf/run_all.cc', 'test/perf/silverlight.cc', 'test/simulate_input.cc', 'test/simulate_input.h', 'test_utils.cc', 'test_utils.h', 'test/win_event_receiver.cc', 'test/win_event_receiver.h', ], 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', ], 'conditions': [ ['OS=="win"', { 'configurations': { 'Debug_Base': { 'msvs_settings': { 'VCLinkerTool': { 'LinkIncremental': '<(msvs_debug_link_nonincremental)', }, }, }, }, 'link_settings': { 'libraries': [ '-loleacc.lib', ], }, 'dependencies': [ '../breakpad/breakpad.gyp:breakpad_handler', '../chrome/chrome.gyp:automation', '../chrome/chrome.gyp:crash_service', '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', ], 'sources': [ '../base/test/test_file_util_win.cc', ] }], ], }, { 'target_name': 'chrome_frame_net_tests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:test_support_base', '../chrome/chrome.gyp:browser', '../chrome/chrome.gyp:debugger', '../chrome/chrome.gyp:renderer', '../chrome/chrome.gyp:test_support_common', '../chrome/chrome_resources.gyp:chrome_resources', '../content/content.gyp:content_app_both', '../content/content.gyp:content_gpu', '../content/content_shell_and_tests.gyp:test_support_content', '../net/net.gyp:net', '../net/net.gyp:net_test_support', '../skia/skia.gyp:skia', '../sync/sync.gyp:sync', '../testing/gtest.gyp:gtest', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/resources/ui_resources.gyp:ui_resources', 'chrome_frame_ie', 'chrome_tab_idl', 'npchrome_frame', ], 'include_dirs': [ '<(DEPTH)/breakpad/src', ], 'defines': [ 'CHROME_FRAME_NET_TESTS=1' ], 'sources': [ '../net/url_request/url_request_unittest.cc', 'test/chrome_frame_test_utils.cc', 'test/chrome_frame_test_utils.h', 'test/ie_configurator.cc', 'test/ie_configurator.h', 'test/simulate_input.cc', 'test/simulate_input.h', 'test/test_server.cc', 'test/test_server.h', 'test/win_event_receiver.cc', 'test/win_event_receiver.h', 'test/net/fake_external_tab.cc', 'test/net/fake_external_tab.h', 'test/net/test_automation_provider.cc', 'test/net/test_automation_provider.h', 'test/net/test_automation_resource_message_filter.cc', 'test/net/test_automation_resource_message_filter.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', 'test_utils.cc', 'test_utils.h', ], 'conditions': [ ['OS=="win"', { 'msvs_large_pdb': 1, 'link_settings': { 'libraries': [ '-loleacc.lib', ], }, 'msvs_settings': { 'VCLinkerTool': { 'DelayLoadDLLs': ['prntvpt.dll'], }, }, 'dependencies': [ '../breakpad/breakpad.gyp:breakpad_handler', '../chrome/chrome.gyp:automation', '../chrome/chrome.gyp:crash_service', '../chrome/chrome.gyp:chrome_version_resources', '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', ], 'configurations': { 'Debug_Base': { 'msvs_settings': { 'VCLinkerTool': { 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', }, }, }, }, }], ], }, { 'target_name': 'chrome_frame_reliability_tests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:test_support_base', '../chrome/chrome.gyp:browser', '../chrome/chrome.gyp:debugger', '../chrome/chrome.gyp:renderer', '../chrome/chrome.gyp:test_support_common', '../content/content.gyp:content_gpu', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', 'chrome_frame_ie', 'chrome_frame_strings', 'chrome_tab_idl', 'locales/locales.gyp:*', ], 'sources': [ 'test/reliability/run_all_unittests.cc', 'test/reliability/page_load_test.cc', 'test/reliability/page_load_test.h', 'test/reliability/reliability_test_suite.h', 'test/chrome_frame_test_utils.cc', 'test/chrome_frame_test_utils.h', 'test/ie_event_sink.cc', 'test/ie_event_sink.h', 'test_utils.cc', 'test_utils.h', 'test/simulate_input.cc', 'test/simulate_input.h', 'test/win_event_receiver.cc', 'test/win_event_receiver.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', '../base/test/test_file_util_win.cc', '../chrome/test/automation/proxy_launcher.cc', '../chrome/test/automation/proxy_launcher.h', '../chrome/test/base/chrome_process_util.cc', '../chrome/test/base/chrome_process_util.h', '../chrome/test/ui/ui_test.cc', '../chrome/test/ui/ui_test.h', '../chrome/test/ui/ui_test_suite.cc', '../chrome/test/ui/ui_test_suite.h', ], 'resource_include_dirs': [ '<(INTERMEDIATE_DIR)', ], 'conditions': [ ['OS=="win"', { 'msvs_large_pdb': 1, 'link_settings': { 'libraries': [ '-loleacc.lib', ], }, 'dependencies': [ # TODO(slightlyoff): Get automation targets working on OS X '../chrome/chrome.gyp:automation', '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', ], 'configurations': { 'Debug_Base': { 'msvs_settings': { 'VCLinkerTool': { 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', }, }, }, }, }], ], }, { 'target_name': 'chrome_frame_qa_tests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:test_support_base', '../chrome/chrome.gyp:test_support_common', '../net/net.gyp:net', '../net/net.gyp:net_test_support', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2', '../third_party/protobuf/protobuf.gyp:protobuf_lite', '../url/url.gyp:url_lib', 'chrome_frame_ie', 'chrome_frame_strings', 'chrome_tab_idl', 'locales/locales.gyp:*', 'npchrome_frame', ], 'sources': [ '../base/test/test_suite.h', 'test/chrome_frame_test_utils.cc', 'test/chrome_frame_test_utils.h', 'test/chrome_frame_ui_test_utils.cc', 'test/chrome_frame_ui_test_utils.h', 'test/external_sites_test.cc', 'test/ie_configurator.cc', 'test/ie_configurator.h', 'test/ie_event_sink.cc', 'test/ie_event_sink.h', 'test/mock_ie_event_sink_actions.h', 'test/mock_ie_event_sink_test.cc', 'test/mock_ie_event_sink_test.h', 'test/run_all_unittests.cc', 'test/simulate_input.cc', 'test/simulate_input.h', 'test/test_scrubber.cc', 'test/test_scrubber.h', 'test/test_server.cc', 'test/test_server.h', 'test/test_with_web_server.cc', 'test/test_with_web_server.h', 'test/win_event_receiver.cc', 'test/win_event_receiver.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', 'chrome_tab.idl', 'test_utils.cc', 'test_utils.h', ], 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', '<(DEPTH)/breakpad/src', ], 'resource_include_dirs': [ '<(INTERMEDIATE_DIR)', ], 'conditions': [ ['OS=="win"', { 'link_settings': { 'libraries': [ '-loleacc.lib', ], }, 'dependencies': [ '../chrome/chrome.gyp:crash_service', '../chrome/chrome.gyp:automation', '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', ] }], ], }, { 'target_name': 'chrome_frame_strings', 'type': 'none', 'variables': { 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome_frame', }, 'actions': [ { 'action_name': 'chrome_frame_resources', 'variables': { 'grit_grd_file': 'resources/chrome_frame_resources.grd', }, 'includes': [ '../build/grit_action.gypi' ], }, { 'action_name': 'chrome_frame_dialogs', 'variables': { 'grit_grd_file': 'resources/chrome_frame_dialogs.grd', }, 'includes': [ '../build/grit_action.gypi' ], }, ], 'includes': [ '../build/grit_target.gypi' ], }, { 'target_name': 'chrome_frame_utils', # The intent is that shared util code can be built into a separate lib. 'type': 'static_library', 'dependencies': [ '../base/base.gyp:base_i18n', '../breakpad/breakpad.gyp:breakpad_handler', '../chrome/chrome.gyp:chrome_version_header', ], 'include_dirs': [ # To allow including "version.h" # TODO(grt): remove this as per http://crbug.com/99368 '<(SHARED_INTERMEDIATE_DIR)', ], 'sources': [ 'crash_server_init.cc', 'crash_server_init.h', 'simple_resource_loader.cc', 'simple_resource_loader.h', ], }, { 'target_name': 'chrome_frame_ie', 'type': 'static_library', 'dependencies': [ '../chrome/chrome.gyp:common', '../chrome/chrome.gyp:utility', '../components/components.gyp:policy', '../content/content.gyp:content_common', '../net/net.gyp:net', '../third_party/libxml/libxml.gyp:libxml', '../url/url.gyp:url_lib', '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent', 'chrome_frame_common', 'chrome_frame_strings', 'chrome_frame_utils', 'chrome_tab_idl', 'locales/locales.gyp:*', ], 'sources': [ 'bho.cc', 'bho.h', 'bho.rgs', 'bind_context_info.cc', 'bind_context_info.h', 'bind_status_callback_impl.cc', 'bind_status_callback_impl.h', 'buggy_bho_handling.cc', 'buggy_bho_handling.h', 'chrome_active_document.cc', 'chrome_active_document.h', 'chrome_active_document.rgs', 'chrome_frame_activex.cc', 'chrome_frame_activex.h', 'chrome_frame_activex.rgs', 'chrome_frame_activex_base.h', 'chrome_protocol.cc', 'chrome_protocol.h', 'chrome_protocol.rgs', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', 'com_message_event.cc', 'com_message_event.h', 'com_type_info_holder.cc', 'com_type_info_holder.h', 'delete_chrome_history.cc', 'delete_chrome_history.h', 'dll_redirector.cc', 'dll_redirector.h', 'exception_barrier.cc', 'exception_barrier.h', 'exception_barrier_lowlevel.asm', 'extra_system_apis.h', 'find_dialog.cc', 'find_dialog.h', 'function_stub.cc', 'function_stub.h', 'html_utils.h', 'html_utils.cc', 'http_negotiate.cc', 'http_negotiate.h', 'iids.cc', 'infobars/infobar_content.h', 'infobars/internal/displaced_window_manager.cc', 'infobars/internal/displaced_window_manager.h', 'infobars/internal/host_window_manager.cc', 'infobars/internal/host_window_manager.h', 'infobars/internal/infobar_window.cc', 'infobars/internal/infobar_window.h', 'infobars/internal/subclassing_window_with_delegate.h', 'infobars/infobar_manager.h', 'infobars/infobar_manager.cc', 'metrics_service.cc', 'metrics_service.h', 'pin_module.cc', 'pin_module.h', 'policy_settings.cc', 'policy_settings.h', 'protocol_sink_wrap.cc', 'protocol_sink_wrap.h', 'ready_mode/internal/ready_mode_web_browser_adapter.cc', 'ready_mode/internal/ready_mode_web_browser_adapter.h', 'ready_mode/internal/url_launcher.h', 'register_bho.rgs', 'registry_list_preferences_holder.cc', 'registry_list_preferences_holder.h', 'stream_impl.cc', 'stream_impl.h', 'turndown_prompt/turndown_prompt.cc', 'turndown_prompt/turndown_prompt.h', 'turndown_prompt/turndown_prompt_content.cc', 'turndown_prompt/turndown_prompt_content.h', 'turndown_prompt/turndown_prompt_window.cc', 'turndown_prompt/turndown_prompt_window.h', 'urlmon_bind_status_callback.h', 'urlmon_bind_status_callback.cc', 'urlmon_moniker.h', 'urlmon_moniker.cc', 'urlmon_url_request.cc', 'urlmon_url_request.h', 'urlmon_url_request_private.h', 'urlmon_upload_data_stream.cc', 'urlmon_upload_data_stream.h', 'utils.h', 'utils.cc', 'vtable_patch_manager.cc', 'vtable_patch_manager.h', '../third_party/active_doc/in_place_menu.h', '../third_party/active_doc/ole_document_impl.h', ], 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', ], 'conditions': [ ['OS=="win"', { # NOTE(slightlyoff): # this is a fix for the include dirs length limit on the resource # compiler, tickled by the xul_include_dirs variable 'resource_include_dirs': [ '<(INTERMEDIATE_DIR)' ], 'dependencies': [ '../breakpad/breakpad.gyp:breakpad_handler', '../chrome/chrome.gyp:automation', # Installer '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', # Make the archive build happy. '../sync/sync.gyp:sync', # Crash Reporting 'crash_reporting/crash_reporting.gyp:crash_report', ], 'link_settings': { 'libraries': ['-lurlmon.lib'], }, },], ], 'rules': [ { 'rule_name': 'Assemble', 'extension': 'asm', 'inputs': [], 'outputs': [ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj', ], 'action': [ 'ml', '/safeseh', '/Fo', '<(INTERMEDIATE_DIR)\<(RULE_INPUT_ROOT).obj', '/c', '<(RULE_INPUT_PATH)', ], 'process_outputs_as_sources': 1, 'message': 'Assembling <(RULE_INPUT_PATH) to ' \ '<(INTERMEDIATE_DIR)\<(RULE_INPUT_ROOT).obj', }, ], 'msvs_settings': { 'VCLinkerTool': { 'AdditionalOptions': [ '/safeseh', ], }, }, }, { 'target_name': 'chrome_frame_common', 'type': 'static_library', 'sources': [ 'chrome_frame_automation.h', 'chrome_frame_automation.cc', 'chrome_frame_delegate.h', 'chrome_frame_delegate.cc', 'chrome_frame_plugin.cc', 'chrome_frame_plugin.h', 'chrome_launcher_utils.cc', 'chrome_launcher_utils.h', 'custom_sync_call_context.cc', 'custom_sync_call_context.h', 'navigation_constraints.h', 'navigation_constraints.cc', 'plugin_url_request.h', 'plugin_url_request.cc', 'sync_msg_reply_dispatcher.h', 'sync_msg_reply_dispatcher.cc', 'task_marshaller.h', 'task_marshaller.cc', ], 'dependencies': [ '../base/base.gyp:base', '../net/net.gyp:net', ], 'export_dependent_settings': [ '../base/base.gyp:base', ], }, { 'target_name': 'npchrome_frame', 'type': 'shared_library', 'dependencies': [ '../base/base.gyp:base', '../chrome/chrome.gyp:chrome', '../chrome/chrome.gyp:chrome_dll', '../chrome/chrome.gyp:chrome_version_resources', '../chrome/chrome.gyp:common', '../url/url.gyp:url_lib', 'chrome_frame_ie', 'chrome_frame_launcher.gyp:chrome_frame_helper', 'chrome_frame_launcher.gyp:chrome_frame_helper_dll', 'chrome_frame_launcher.gyp:chrome_launcher', 'chrome_frame_strings', 'chrome_frame_utils', 'chrome_frame_version_resources', 'chrome_tab_idl', 'locales/locales.gyp:*', ], 'defines': [ '_WINDLL', ], 'sources': [ 'chrome_frame_elevation.rgs', 'chrome_frame_reporting.cc', 'chrome_frame_reporting.h', 'chrome_tab.cc', 'chrome_tab.def', 'scoped_initialization_manager.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/npchrome_frame_dll_version.rc', # FIXME(slightlyoff): For chrome_tab.tlb. Giant hack until we can # figure out something more gyp-ish. 'resources/tlb_resource.rc', 'chrome_tab.rgs', 'resource.h', ], 'conditions': [ ['OS=="win"', { # NOTE(slightlyoff): # this is a fix for the include dirs length limit on the resource # compiler, tickled by the xul_include_dirs variable 'resource_include_dirs': [ '<(INTERMEDIATE_DIR)' ], 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_frame_resources.rc', ], 'dependencies': [ '../breakpad/breakpad.gyp:breakpad_handler', '../chrome/chrome.gyp:automation', # Installer '../chrome/chrome.gyp:installer_util', '../google_update/google_update.gyp:google_update', # Make the archive build happy. '../sync/sync.gyp:sync', # Crash Reporting 'crash_reporting/crash_reporting.gyp:crash_report', ], 'link_settings': { 'libraries': [ '-lshdocvw.lib', ], }, 'msvs_settings': { 'VCLinkerTool': { 'DelayLoadDLLs': [], 'BaseAddress': '0x33000000', # Set /SUBSYSTEM:WINDOWS (for consistency). 'SubSystem': '2', }, 'VCManifestTool': { 'AdditionalManifestFiles': [ '$(ProjectDir)\\resources\\npchrome_frame.dll.manifest', ], }, }, }], ], }, ], }