Home | History | Annotate | Download | only in chrome_frame
      1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'chromium_code': 1,
      8 
      9     # Keep the archive builder happy.
     10     'chrome_personalization%': 1,
     11     'use_syncapi_stub%': 0,
     12 
     13     'conditions': [
     14       ['OS=="win"', {
     15         'python': [
     16           '<(DEPTH)\\third_party\\python_26\\setup_env.bat && python'
     17         ],
     18       }, { # OS != win
     19         'python': [
     20           'python'
     21         ],
     22       }],
     23     ],
     24   },
     25   'includes': [
     26     '../build/win_precompile.gypi',
     27     '../chrome/version.gypi',
     28   ],
     29   'target_defaults': {
     30     'dependencies': [
     31       '../chrome/chrome_resources.gyp:chrome_resources',
     32       '../chrome/chrome_resources.gyp:chrome_strings',
     33       '../chrome/chrome_resources.gyp:packed_resources',
     34       '../chrome/chrome_resources.gyp:theme_resources',
     35       '../skia/skia.gyp:skia',
     36     ],
     37     'defines': [ 'ISOLATION_AWARE_ENABLED=1' ],
     38     'include_dirs': [
     39       # all our own includes are relative to src/
     40       '..',
     41     ],
     42   },
     43   'targets': [
     44     {
     45       'target_name': 'chrome_frame_version_resources',
     46       'type': 'none',
     47       'conditions': [
     48         ['branding == "Chrome"', {
     49           'variables': {
     50              'branding_path': '../chrome/app/theme/google_chrome/BRANDING',
     51           },
     52         }, { # else branding!="Chrome"
     53           'variables': {
     54              'branding_path': '../chrome/app/theme/chromium/BRANDING',
     55           },
     56         }],
     57       ],
     58       'variables': {
     59         'output_dir': 'chrome_frame',
     60         'template_input_path': 'npchrome_frame_version.rc.version',
     61         'extra_variable_files_arguments': [ '-f', 'BRANDING' ],
     62         'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above
     63       },
     64       'direct_dependent_settings': {
     65         'include_dirs': [
     66           '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
     67         ],
     68       },
     69       'sources': [
     70         'npchrome_frame_dll.ver',
     71       ],
     72       'includes': [
     73         '../chrome/version_resource_rules.gypi',
     74       ],
     75     },
     76     {
     77       # Builds the crash tests in crash_reporting.
     78       'target_name': 'chrome_frame_crash_tests',
     79       'type': 'none',
     80       'dependencies': [
     81         'crash_reporting/crash_reporting.gyp:minidump_test',
     82         'crash_reporting/crash_reporting.gyp:vectored_handler_tests',
     83       ],
     84     },
     85     {
     86       # Builds our IDL file to the shared intermediate directory.
     87       'target_name': 'chrome_tab_idl',
     88       'type': 'none',
     89       'msvs_settings': {
     90         'VCMIDLTool': {
     91           'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/chrome_frame',
     92         },
     93       },
     94       'sources': [
     95         'chrome_tab.idl',
     96       ],
     97       # Add the output dir for those who depend on us.
     98       'direct_dependent_settings': {
     99         'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
    100       },
    101     },
    102     {
    103       'target_name': 'chrome_frame_unittests',
    104       'type': 'executable',
    105       'dependencies': [
    106         '../base/base.gyp:test_support_base',
    107         '../chrome/chrome.gyp:test_support_common',
    108         '../components/components.gyp:policy',
    109         '../net/net.gyp:net',
    110         '../testing/gmock.gyp:gmock',
    111         '../testing/gtest.gyp:gtest',
    112         'chrome_frame_launcher.gyp:chrome_frame_helper_lib',
    113         'chrome_frame_ie',
    114         'chrome_frame_strings',
    115         'chrome_tab_idl',
    116         'locales/locales.gyp:*',
    117       ],
    118       'sources': [
    119         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    120         'chrome_frame_unittest_main.cc',
    121         'chrome_launcher.cc',
    122         'chrome_launcher.h',
    123         'chrome_launcher_unittest.cc',
    124         'function_stub_unittest.cc',
    125         'scoped_initialization_manager_unittest.cc',
    126         'test/chrome_tab_mocks.h',
    127         'test/chrome_frame_test_utils.h',
    128         'test/chrome_frame_test_utils.cc',
    129         'test/com_message_event_unittest.cc',
    130         'test/dll_redirector_test.cc',
    131         'test/exception_barrier_unittest.cc',
    132         'test/html_util_unittests.cc',
    133         'test/http_negotiate_unittest.cc',
    134         'test/infobar_unittests.cc',
    135         'test/policy_settings_unittest.cc',
    136         'test/registry_watcher_unittest.cc',
    137         'test/simulate_input.h',
    138         'test/simulate_input.cc',
    139         'test/urlmon_moniker_tests.h',
    140         'test/urlmon_moniker_unittest.cc',
    141         'test/util_unittests.cc',
    142         'test/win_event_receiver.h',
    143         'test/win_event_receiver.cc',
    144         'unittest_precompile.h',
    145         'unittest_precompile.cc',
    146         'urlmon_upload_data_stream_unittest.cc',
    147         'vtable_patch_manager_unittest.cc',
    148       ],
    149       'include_dirs': [
    150         '<(DEPTH)/breakpad/src',
    151       ],
    152       'resource_include_dirs': [
    153         '<(INTERMEDIATE_DIR)',
    154       ],
    155       'conditions': [
    156         ['OS=="win" and buildtype=="Official"', {
    157           'configurations': {
    158             'Release': {
    159               'msvs_settings': {
    160                 'VCCLCompilerTool': {
    161                   'WholeProgramOptimization': 'false',
    162                 },
    163               },
    164             },
    165           },
    166         },],
    167         ['OS=="win"', {
    168           'link_settings': {
    169             'libraries': [
    170               '-lshdocvw.lib',
    171               '-loleacc.lib',
    172             ],
    173           },
    174           'msvs_settings': {
    175             'VCLinkerTool': {
    176               'DelayLoadDLLs': ['shdocvw.dll'],
    177             },
    178           },
    179           'dependencies': [
    180             '../breakpad/breakpad.gyp:breakpad_handler',
    181             # TODO(slightlyoff): Get automation targets working on OS X
    182             '../chrome/chrome.gyp:automation',
    183             '../chrome/chrome.gyp:installer_util',
    184             '../google_update/google_update.gyp:google_update',
    185           ],
    186           'configurations': {
    187             'Debug_Base': {
    188               'msvs_settings': {
    189                 'VCLinkerTool': {
    190                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
    191                 },
    192               },
    193             },
    194           },
    195         }],
    196       ],
    197     },
    198     {
    199       'target_name': 'chrome_frame_tests',
    200       'type': 'executable',
    201       'dependencies': [
    202         '../base/base.gyp:test_support_base',
    203         '../chrome/chrome.gyp:browser',
    204         '../chrome/chrome.gyp:common',
    205         '../chrome/chrome.gyp:debugger',
    206         '../chrome/chrome.gyp:renderer',
    207         '../chrome/chrome.gyp:test_support_common',
    208         '../chrome/chrome.gyp:utility',
    209         '../chrome/installer/upgrade_test.gyp:alternate_version_generator_lib',
    210         '../content/content.gyp:content_gpu',
    211         '../net/net.gyp:net',
    212         '../net/net.gyp:net_test_support',
    213         '../testing/gmock.gyp:gmock',
    214         '../testing/gtest.gyp:gtest',
    215         '../third_party/iaccessible2/iaccessible2.gyp:IAccessible2Proxy',
    216         '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
    217         '../third_party/libxslt/libxslt.gyp:libxslt',
    218         '../url/url.gyp:url_lib',
    219         'chrome_frame_ie',
    220         'chrome_frame_strings',
    221         'chrome_frame_utils',
    222         'chrome_tab_idl',
    223         'locales/locales.gyp:*',
    224         'npchrome_frame',
    225       ],
    226       'sources': [
    227         '../base/test/test_suite.h',
    228         'test/automation_client_mock.cc',
    229         'test/automation_client_mock.h',
    230         'test/chrome_frame_test_utils.cc',
    231         'test/chrome_frame_test_utils.h',
    232         'test/chrome_frame_ui_test_utils.cc',
    233         'test/chrome_frame_ui_test_utils.h',
    234         'test/chrome_frame_automation_mock.cc',
    235         'test/chrome_frame_automation_mock.h',
    236         'test/delete_chrome_history_test.cc',
    237         'test/dll_redirector_loading_test.cc',
    238         'test/header_test.cc',
    239         'test/ie_configurator.cc',
    240         'test/ie_configurator.h',
    241         'test/ie_event_sink.cc',
    242         'test/ie_event_sink.h',
    243         'test/mock_ie_event_sink_actions.h',
    244         'test/mock_ie_event_sink_test.cc',
    245         'test/mock_ie_event_sink_test.h',
    246         'test/navigation_test.cc',
    247         'test/proxy_factory_mock.cc',
    248         'test/proxy_factory_mock.h',
    249         'test/run_all_unittests.cc',
    250         'test/simple_resource_loader_test.cc',
    251         'test/simulate_input.cc',
    252         'test/simulate_input.h',
    253         'test/test_scrubber.cc',
    254         'test/test_scrubber.h',
    255         'test/test_server.cc',
    256         'test/test_server.h',
    257         'test/test_server_test.cc',
    258         'test/test_with_web_server.cc',
    259         'test/test_with_web_server.h',
    260         'test/ui_test.cc',
    261         'test/urlmon_moniker_tests.h',
    262         'test/urlmon_moniker_integration_test.cc',
    263         'test/url_request_test.cc',
    264         'test/win_event_receiver.cc',
    265         'test/win_event_receiver.h',
    266         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_launcher_exe_version.rc',
    267         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    268         'test_utils.cc',
    269         'test_utils.h',
    270       ],
    271       'include_dirs': [
    272         '<(DEPTH)/third_party/wtl/include',
    273         '<(DEPTH)/breakpad/src',
    274       ],
    275       'resource_include_dirs': [
    276         '<(INTERMEDIATE_DIR)',
    277       ],
    278       'conditions': [
    279         ['OS=="win"', {
    280           'link_settings': {
    281             'libraries': [
    282               '-loleacc.lib',
    283             ],
    284           },
    285           'dependencies': [
    286             '../chrome/chrome.gyp:crash_service',
    287             '../chrome/chrome.gyp:automation',
    288             '../chrome/chrome.gyp:installer_util',
    289             '../google_update/google_update.gyp:google_update',
    290           ],
    291           'configurations': {
    292             'Debug_Base': {
    293               'msvs_settings': {
    294                 'VCLinkerTool': {
    295                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
    296                 },
    297               },
    298             },
    299           },
    300           'conditions': [
    301             ['win_use_allocator_shim==1', {
    302               'dependencies': [
    303                 '../base/allocator/allocator.gyp:allocator',
    304               ],
    305             }],
    306           ],
    307         }],
    308       ],
    309     },
    310     {
    311       'target_name': 'chrome_frame_perftests',
    312       'type': 'executable',
    313       'dependencies': [
    314         '../base/base.gyp:base',
    315         '../base/base.gyp:base_i18n',
    316         '../base/base.gyp:test_support_base',
    317         '../chrome/chrome.gyp:browser',
    318         '../chrome/chrome.gyp:common',
    319         '../chrome/chrome.gyp:debugger',
    320         '../chrome/chrome.gyp:image_pre_reader',
    321         '../chrome/chrome.gyp:test_support_common',
    322         '../chrome/chrome.gyp:test_support_ui',
    323         '../chrome/chrome.gyp:utility',
    324         '../chrome/test/perf/perf_test.gyp:*',
    325         '../content/content.gyp:content_gpu',
    326         '../testing/gmock.gyp:gmock',
    327         '../testing/gtest.gyp:gtest',
    328         '../third_party/libxml/libxml.gyp:libxml',
    329         '../third_party/libxslt/libxslt.gyp:libxslt',
    330         '../url/url.gyp:url_lib',
    331         'chrome_frame_ie',
    332         'chrome_frame_strings',
    333         'chrome_frame_utils',
    334         'chrome_tab_idl',
    335         'locales/locales.gyp:*',
    336         'npchrome_frame',
    337       ],
    338       'sources': [
    339         '../base/test/perf_test_suite.h',
    340         '../base/test/test_file_util.h',
    341         '../chrome/test/base/chrome_process_util.cc',
    342         '../chrome/test/base/chrome_process_util.h',
    343         '../chrome/test/ui/ui_test.cc',
    344         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    345         'test/chrome_frame_test_utils.cc',
    346         'test/chrome_frame_test_utils.h',
    347         'test/perf/chrome_frame_perftest.cc',
    348         'test/perf/chrome_frame_perftest.h',
    349         'test/perf/run_all.cc',
    350         'test/perf/silverlight.cc',
    351         'test/simulate_input.cc',
    352         'test/simulate_input.h',
    353         'test_utils.cc',
    354         'test_utils.h',
    355         'test/win_event_receiver.cc',
    356         'test/win_event_receiver.h',
    357       ],
    358       'include_dirs': [
    359         '<(DEPTH)/third_party/wtl/include',
    360       ],
    361       'conditions': [
    362         ['OS=="win"', {
    363           'configurations': {
    364             'Debug_Base': {
    365               'msvs_settings': {
    366                 'VCLinkerTool': {
    367                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
    368                 },
    369               },
    370             },
    371           },
    372           'link_settings': {
    373             'libraries': [
    374               '-loleacc.lib',
    375             ],
    376           },
    377           'dependencies': [
    378             '../breakpad/breakpad.gyp:breakpad_handler',
    379             '../chrome/chrome.gyp:automation',
    380             '../chrome/chrome.gyp:crash_service',
    381             '../chrome/chrome.gyp:installer_util',
    382             '../google_update/google_update.gyp:google_update',
    383           ],
    384           'sources': [
    385             '../base/test/test_file_util_win.cc',
    386           ]
    387         }],
    388       ],
    389     },
    390 
    391     {
    392       'target_name': 'chrome_frame_net_tests',
    393       'type': 'executable',
    394       'dependencies': [
    395         '../base/base.gyp:test_support_base',
    396         '../chrome/chrome.gyp:browser',
    397         '../chrome/chrome.gyp:debugger',
    398         '../chrome/chrome.gyp:renderer',
    399         '../chrome/chrome.gyp:test_support_common',
    400         '../chrome/chrome_resources.gyp:chrome_resources',
    401         '../content/content.gyp:content_app_both',
    402         '../content/content.gyp:content_gpu',
    403         '../content/content_shell_and_tests.gyp:test_support_content',
    404         '../net/net.gyp:net',
    405         '../net/net.gyp:net_test_support',
    406         '../skia/skia.gyp:skia',
    407         '../sync/sync.gyp:sync',
    408         '../testing/gtest.gyp:gtest',
    409         '../third_party/icu/icu.gyp:icui18n',
    410         '../third_party/icu/icu.gyp:icuuc',
    411         '../ui/resources/ui_resources.gyp:ui_resources',
    412         'chrome_frame_ie',
    413         'chrome_tab_idl',
    414         'npchrome_frame',
    415       ],
    416       'include_dirs': [
    417         '<(DEPTH)/breakpad/src',
    418       ],
    419       'defines': [ 'CHROME_FRAME_NET_TESTS=1' ],
    420       'sources': [
    421         '../net/url_request/url_request_unittest.cc',
    422         'test/chrome_frame_test_utils.cc',
    423         'test/chrome_frame_test_utils.h',
    424         'test/ie_configurator.cc',
    425         'test/ie_configurator.h',
    426         'test/simulate_input.cc',
    427         'test/simulate_input.h',
    428         'test/test_server.cc',
    429         'test/test_server.h',
    430         'test/win_event_receiver.cc',
    431         'test/win_event_receiver.h',
    432         'test/net/fake_external_tab.cc',
    433         'test/net/fake_external_tab.h',
    434         'test/net/test_automation_provider.cc',
    435         'test/net/test_automation_provider.h',
    436         'test/net/test_automation_resource_message_filter.cc',
    437         'test/net/test_automation_resource_message_filter.h',
    438         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    439         'test_utils.cc',
    440         'test_utils.h',
    441       ],
    442       'conditions': [
    443         ['OS=="win"', {
    444           'msvs_large_pdb': 1,
    445           'link_settings': {
    446             'libraries': [
    447               '-loleacc.lib',
    448             ],
    449           },
    450           'msvs_settings': {
    451             'VCLinkerTool': {
    452               'DelayLoadDLLs': ['prntvpt.dll'],
    453             },
    454           },
    455           'dependencies': [
    456             '../breakpad/breakpad.gyp:breakpad_handler',
    457             '../chrome/chrome.gyp:automation',
    458             '../chrome/chrome.gyp:crash_service',
    459             '../chrome/chrome.gyp:chrome_version_resources',
    460             '../chrome/chrome.gyp:installer_util',
    461             '../google_update/google_update.gyp:google_update',
    462           ],
    463           'configurations': {
    464             'Debug_Base': {
    465               'msvs_settings': {
    466                 'VCLinkerTool': {
    467                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
    468                 },
    469               },
    470             },
    471           },
    472         }],
    473       ],
    474     },
    475 
    476     {
    477       'target_name': 'chrome_frame_reliability_tests',
    478       'type': 'executable',
    479       'dependencies': [
    480         '../base/base.gyp:base',
    481         '../base/base.gyp:test_support_base',
    482         '../chrome/chrome.gyp:browser',
    483         '../chrome/chrome.gyp:debugger',
    484         '../chrome/chrome.gyp:renderer',
    485         '../chrome/chrome.gyp:test_support_common',
    486         '../content/content.gyp:content_gpu',
    487         '../testing/gmock.gyp:gmock',
    488         '../testing/gtest.gyp:gtest',
    489         'chrome_frame_ie',
    490         'chrome_frame_strings',
    491         'chrome_tab_idl',
    492         'locales/locales.gyp:*',
    493       ],
    494       'sources': [
    495         'test/reliability/run_all_unittests.cc',
    496         'test/reliability/page_load_test.cc',
    497         'test/reliability/page_load_test.h',
    498         'test/reliability/reliability_test_suite.h',
    499         'test/chrome_frame_test_utils.cc',
    500         'test/chrome_frame_test_utils.h',
    501         'test/ie_event_sink.cc',
    502         'test/ie_event_sink.h',
    503         'test_utils.cc',
    504         'test_utils.h',
    505         'test/simulate_input.cc',
    506         'test/simulate_input.h',
    507         'test/win_event_receiver.cc',
    508         'test/win_event_receiver.h',
    509         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    510         '../base/test/test_file_util_win.cc',
    511         '../chrome/test/automation/proxy_launcher.cc',
    512         '../chrome/test/automation/proxy_launcher.h',
    513         '../chrome/test/base/chrome_process_util.cc',
    514         '../chrome/test/base/chrome_process_util.h',
    515         '../chrome/test/ui/ui_test.cc',
    516         '../chrome/test/ui/ui_test.h',
    517         '../chrome/test/ui/ui_test_suite.cc',
    518         '../chrome/test/ui/ui_test_suite.h',
    519       ],
    520       'resource_include_dirs': [
    521         '<(INTERMEDIATE_DIR)',
    522       ],
    523       'conditions': [
    524         ['OS=="win"', {
    525           'msvs_large_pdb': 1,
    526           'link_settings': {
    527             'libraries': [
    528               '-loleacc.lib',
    529             ],
    530           },
    531           'dependencies': [
    532             # TODO(slightlyoff): Get automation targets working on OS X
    533             '../chrome/chrome.gyp:automation',
    534             '../chrome/chrome.gyp:installer_util',
    535             '../google_update/google_update.gyp:google_update',
    536           ],
    537           'configurations': {
    538             'Debug_Base': {
    539               'msvs_settings': {
    540                 'VCLinkerTool': {
    541                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
    542                 },
    543               },
    544             },
    545           },
    546         }],
    547       ],
    548     },
    549     {
    550       'target_name': 'chrome_frame_qa_tests',
    551       'type': 'executable',
    552       'dependencies': [
    553         '../base/base.gyp:test_support_base',
    554         '../chrome/chrome.gyp:test_support_common',
    555         '../net/net.gyp:net',
    556         '../net/net.gyp:net_test_support',
    557         '../testing/gmock.gyp:gmock',
    558         '../testing/gtest.gyp:gtest',
    559         '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
    560         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
    561         '../url/url.gyp:url_lib',
    562         'chrome_frame_ie',
    563         'chrome_frame_strings',
    564         'chrome_tab_idl',
    565         'locales/locales.gyp:*',
    566         'npchrome_frame',
    567       ],
    568       'sources': [
    569         '../base/test/test_suite.h',
    570         'test/chrome_frame_test_utils.cc',
    571         'test/chrome_frame_test_utils.h',
    572         'test/chrome_frame_ui_test_utils.cc',
    573         'test/chrome_frame_ui_test_utils.h',
    574         'test/external_sites_test.cc',
    575         'test/ie_configurator.cc',
    576         'test/ie_configurator.h',
    577         'test/ie_event_sink.cc',
    578         'test/ie_event_sink.h',
    579         'test/mock_ie_event_sink_actions.h',
    580         'test/mock_ie_event_sink_test.cc',
    581         'test/mock_ie_event_sink_test.h',
    582         'test/run_all_unittests.cc',
    583         'test/simulate_input.cc',
    584         'test/simulate_input.h',
    585         'test/test_scrubber.cc',
    586         'test/test_scrubber.h',
    587         'test/test_server.cc',
    588         'test/test_server.h',
    589         'test/test_with_web_server.cc',
    590         'test/test_with_web_server.h',
    591         'test/win_event_receiver.cc',
    592         'test/win_event_receiver.h',
    593         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    594         'chrome_tab.idl',
    595         'test_utils.cc',
    596         'test_utils.h',
    597       ],
    598       'include_dirs': [
    599         '<(DEPTH)/third_party/wtl/include',
    600         '<(DEPTH)/breakpad/src',
    601       ],
    602       'resource_include_dirs': [
    603         '<(INTERMEDIATE_DIR)',
    604       ],
    605       'conditions': [
    606         ['OS=="win"', {
    607           'link_settings': {
    608             'libraries': [
    609               '-loleacc.lib',
    610             ],
    611           },
    612           'dependencies': [
    613             '../chrome/chrome.gyp:crash_service',
    614             '../chrome/chrome.gyp:automation',
    615             '../chrome/chrome.gyp:installer_util',
    616             '../google_update/google_update.gyp:google_update',
    617           ]
    618         }],
    619       ],
    620     },
    621     {
    622       'target_name': 'chrome_frame_strings',
    623       'type': 'none',
    624       'variables': {
    625         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome_frame',
    626       },
    627       'actions': [
    628         {
    629           'action_name': 'chrome_frame_resources',
    630           'variables': {
    631             'grit_grd_file': 'resources/chrome_frame_resources.grd',
    632           },
    633           'includes': [ '../build/grit_action.gypi' ],
    634         },
    635         {
    636           'action_name': 'chrome_frame_dialogs',
    637           'variables': {
    638             'grit_grd_file': 'resources/chrome_frame_dialogs.grd',
    639           },
    640           'includes': [ '../build/grit_action.gypi' ],
    641         },
    642       ],
    643       'includes': [ '../build/grit_target.gypi' ],
    644     },
    645     {
    646       'target_name': 'chrome_frame_utils',
    647        # The intent is that shared util code can be built into a separate lib.
    648       'type': 'static_library',
    649       'dependencies': [
    650         '../base/base.gyp:base_i18n',
    651         '../breakpad/breakpad.gyp:breakpad_handler',
    652         '../chrome/chrome.gyp:chrome_version_header',
    653       ],
    654       'include_dirs': [
    655         # To allow including "version.h"
    656         # TODO(grt): remove this as per http://crbug.com/99368
    657         '<(SHARED_INTERMEDIATE_DIR)',
    658       ],
    659       'sources': [
    660         'crash_server_init.cc',
    661         'crash_server_init.h',
    662         'simple_resource_loader.cc',
    663         'simple_resource_loader.h',
    664       ],
    665     },
    666     {
    667       'target_name': 'chrome_frame_ie',
    668       'type': 'static_library',
    669       'dependencies': [
    670         '../chrome/chrome.gyp:common',
    671         '../chrome/chrome.gyp:utility',
    672         '../components/components.gyp:policy',
    673         '../content/content.gyp:content_common',
    674         '../net/net.gyp:net',
    675         '../third_party/libxml/libxml.gyp:libxml',
    676         '../url/url.gyp:url_lib',
    677         '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
    678         'chrome_frame_common',
    679         'chrome_frame_strings',
    680         'chrome_frame_utils',
    681         'chrome_tab_idl',
    682         'locales/locales.gyp:*',
    683       ],
    684       'sources': [
    685         'bho.cc',
    686         'bho.h',
    687         'bho.rgs',
    688         'bind_context_info.cc',
    689         'bind_context_info.h',
    690         'bind_status_callback_impl.cc',
    691         'bind_status_callback_impl.h',
    692         'buggy_bho_handling.cc',
    693         'buggy_bho_handling.h',
    694         'chrome_active_document.cc',
    695         'chrome_active_document.h',
    696         'chrome_active_document.rgs',
    697         'chrome_frame_activex.cc',
    698         'chrome_frame_activex.h',
    699         'chrome_frame_activex.rgs',
    700         'chrome_frame_activex_base.h',
    701         'chrome_protocol.cc',
    702         'chrome_protocol.h',
    703         'chrome_protocol.rgs',
    704         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    705         'com_message_event.cc',
    706         'com_message_event.h',
    707         'com_type_info_holder.cc',
    708         'com_type_info_holder.h',
    709         'delete_chrome_history.cc',
    710         'delete_chrome_history.h',
    711         'dll_redirector.cc',
    712         'dll_redirector.h',
    713         'exception_barrier.cc',
    714         'exception_barrier.h',
    715         'exception_barrier_lowlevel.asm',
    716         'extra_system_apis.h',
    717         'find_dialog.cc',
    718         'find_dialog.h',
    719         'function_stub.cc',
    720         'function_stub.h',
    721         'html_utils.h',
    722         'html_utils.cc',
    723         'http_negotiate.cc',
    724         'http_negotiate.h',
    725         'iids.cc',
    726         'infobars/infobar_content.h',
    727         'infobars/internal/displaced_window_manager.cc',
    728         'infobars/internal/displaced_window_manager.h',
    729         'infobars/internal/host_window_manager.cc',
    730         'infobars/internal/host_window_manager.h',
    731         'infobars/internal/infobar_window.cc',
    732         'infobars/internal/infobar_window.h',
    733         'infobars/internal/subclassing_window_with_delegate.h',
    734         'infobars/infobar_manager.h',
    735         'infobars/infobar_manager.cc',
    736         'metrics_service.cc',
    737         'metrics_service.h',
    738         'pin_module.cc',
    739         'pin_module.h',
    740         'policy_settings.cc',
    741         'policy_settings.h',
    742         'protocol_sink_wrap.cc',
    743         'protocol_sink_wrap.h',
    744         'ready_mode/internal/ready_mode_web_browser_adapter.cc',
    745         'ready_mode/internal/ready_mode_web_browser_adapter.h',
    746         'ready_mode/internal/url_launcher.h',
    747         'register_bho.rgs',
    748         'registry_list_preferences_holder.cc',
    749         'registry_list_preferences_holder.h',
    750         'stream_impl.cc',
    751         'stream_impl.h',
    752         'turndown_prompt/turndown_prompt.cc',
    753         'turndown_prompt/turndown_prompt.h',
    754         'turndown_prompt/turndown_prompt_content.cc',
    755         'turndown_prompt/turndown_prompt_content.h',
    756         'turndown_prompt/turndown_prompt_window.cc',
    757         'turndown_prompt/turndown_prompt_window.h',
    758         'urlmon_bind_status_callback.h',
    759         'urlmon_bind_status_callback.cc',
    760         'urlmon_moniker.h',
    761         'urlmon_moniker.cc',
    762         'urlmon_url_request.cc',
    763         'urlmon_url_request.h',
    764         'urlmon_url_request_private.h',
    765         'urlmon_upload_data_stream.cc',
    766         'urlmon_upload_data_stream.h',
    767         'utils.h',
    768         'utils.cc',
    769         'vtable_patch_manager.cc',
    770         'vtable_patch_manager.h',
    771         '../third_party/active_doc/in_place_menu.h',
    772         '../third_party/active_doc/ole_document_impl.h',
    773       ],
    774       'include_dirs': [
    775         '<(DEPTH)/third_party/wtl/include',
    776       ],
    777       'conditions': [
    778         ['OS=="win"', {
    779           # NOTE(slightlyoff):
    780           #   this is a fix for the include dirs length limit on the resource
    781           #   compiler, tickled by the xul_include_dirs variable
    782           'resource_include_dirs': [
    783             '<(INTERMEDIATE_DIR)'
    784           ],
    785           'dependencies': [
    786             '../breakpad/breakpad.gyp:breakpad_handler',
    787             '../chrome/chrome.gyp:automation',
    788             # Installer
    789             '../chrome/chrome.gyp:installer_util',
    790             '../google_update/google_update.gyp:google_update',
    791             # Make the archive build happy.
    792             '../sync/sync.gyp:sync',
    793             # Crash Reporting
    794             'crash_reporting/crash_reporting.gyp:crash_report',
    795           ],
    796           'link_settings': {
    797             'libraries': ['-lurlmon.lib'],
    798           },
    799         },],
    800       ],
    801       'rules': [
    802         {
    803           'rule_name': 'Assemble',
    804           'extension': 'asm',
    805           'inputs': [],
    806           'outputs': [
    807             '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
    808           ],
    809           'action': [
    810             'ml',
    811             '/safeseh',
    812             '/Fo', '<(INTERMEDIATE_DIR)\<(RULE_INPUT_ROOT).obj',
    813             '/c', '<(RULE_INPUT_PATH)',
    814           ],
    815           'process_outputs_as_sources': 1,
    816           'message':
    817               'Assembling <(RULE_INPUT_PATH) to ' \
    818               '<(INTERMEDIATE_DIR)\<(RULE_INPUT_ROOT).obj',
    819         },
    820       ],
    821       'msvs_settings': {
    822         'VCLinkerTool': {
    823           'AdditionalOptions': [
    824             '/safeseh',
    825           ],
    826         },
    827       },
    828     },
    829     {
    830       'target_name': 'chrome_frame_common',
    831       'type': 'static_library',
    832       'sources': [
    833         'chrome_frame_automation.h',
    834         'chrome_frame_automation.cc',
    835         'chrome_frame_delegate.h',
    836         'chrome_frame_delegate.cc',
    837         'chrome_frame_plugin.cc',
    838         'chrome_frame_plugin.h',
    839         'chrome_launcher_utils.cc',
    840         'chrome_launcher_utils.h',
    841         'custom_sync_call_context.cc',
    842         'custom_sync_call_context.h',
    843         'navigation_constraints.h',
    844         'navigation_constraints.cc',
    845         'plugin_url_request.h',
    846         'plugin_url_request.cc',
    847         'sync_msg_reply_dispatcher.h',
    848         'sync_msg_reply_dispatcher.cc',
    849         'task_marshaller.h',
    850         'task_marshaller.cc',
    851       ],
    852       'dependencies': [
    853         '../base/base.gyp:base',
    854         '../net/net.gyp:net',
    855       ],
    856       'export_dependent_settings': [
    857         '../base/base.gyp:base',
    858       ],
    859     },
    860     {
    861       'target_name': 'npchrome_frame',
    862       'type': 'shared_library',
    863       'dependencies': [
    864         '../base/base.gyp:base',
    865         '../chrome/chrome.gyp:chrome',
    866         '../chrome/chrome.gyp:chrome_dll',
    867         '../chrome/chrome.gyp:chrome_version_resources',
    868         '../chrome/chrome.gyp:common',
    869         '../url/url.gyp:url_lib',
    870         'chrome_frame_ie',
    871         'chrome_frame_launcher.gyp:chrome_frame_helper',
    872         'chrome_frame_launcher.gyp:chrome_frame_helper_dll',
    873         'chrome_frame_launcher.gyp:chrome_launcher',
    874         'chrome_frame_strings',
    875         'chrome_frame_utils',
    876         'chrome_frame_version_resources',
    877         'chrome_tab_idl',
    878         'locales/locales.gyp:*',
    879       ],
    880       'defines': [
    881         '_WINDLL',
    882       ],
    883       'sources': [
    884         'chrome_frame_elevation.rgs',
    885         'chrome_frame_reporting.cc',
    886         'chrome_frame_reporting.h',
    887         'chrome_tab.cc',
    888         'chrome_tab.def',
    889         'scoped_initialization_manager.h',
    890         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
    891         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/npchrome_frame_dll_version.rc',
    892         # FIXME(slightlyoff): For chrome_tab.tlb. Giant hack until we can
    893         #   figure out something more gyp-ish.
    894         'resources/tlb_resource.rc',
    895         'chrome_tab.rgs',
    896         'resource.h',
    897       ],
    898       'conditions': [
    899         ['OS=="win"', {
    900           # NOTE(slightlyoff):
    901           #   this is a fix for the include dirs length limit on the resource
    902           #   compiler, tickled by the xul_include_dirs variable
    903           'resource_include_dirs': [
    904             '<(INTERMEDIATE_DIR)'
    905           ],
    906           'sources': [
    907             '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_frame_resources.rc',
    908           ],
    909           'dependencies': [
    910             '../breakpad/breakpad.gyp:breakpad_handler',
    911             '../chrome/chrome.gyp:automation',
    912             # Installer
    913             '../chrome/chrome.gyp:installer_util',
    914             '../google_update/google_update.gyp:google_update',
    915             # Make the archive build happy.
    916             '../sync/sync.gyp:sync',
    917             # Crash Reporting
    918             'crash_reporting/crash_reporting.gyp:crash_report',
    919           ],
    920           'link_settings': {
    921             'libraries': [
    922               '-lshdocvw.lib',
    923             ],
    924           },
    925           'msvs_settings': {
    926             'VCLinkerTool': {
    927               'DelayLoadDLLs': [],
    928               'BaseAddress': '0x33000000',
    929               # Set /SUBSYSTEM:WINDOWS (for consistency).
    930               'SubSystem': '2',
    931             },
    932             'VCManifestTool': {
    933               'AdditionalManifestFiles': [
    934                 '$(ProjectDir)\\resources\\npchrome_frame.dll.manifest',
    935               ],
    936             },
    937           },
    938         }],
    939       ],
    940     },
    941   ],
    942 }
    943