Home | History | Annotate | Download | only in chrome
      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   'targets': [
      7     {
      8       'target_name': 'renderer',
      9       'type': 'static_library',
     10       'variables': { 'enable_wexit_time_destructors': 1, },
     11       'dependencies': [
     12         'common',
     13         'common_net',
     14         'chrome_resources.gyp:chrome_resources',
     15         'chrome_resources.gyp:chrome_strings',
     16         '../components/components.gyp:autofill_content_renderer',
     17         '../components/components.gyp:visitedlink_renderer',
     18         '../content/content.gyp:content_renderer',
     19         '../net/net.gyp:net',
     20         '../printing/printing.gyp:printing',
     21         '../skia/skia.gyp:skia',
     22         '../third_party/WebKit/public/blink.gyp:blink',
     23         '../third_party/hunspell/hunspell.gyp:hunspell',
     24         '../third_party/icu/icu.gyp:icui18n',
     25         '../third_party/icu/icu.gyp:icuuc',
     26         '../third_party/npapi/npapi.gyp:npapi',
     27         '../third_party/re2/re2.gyp:re2',
     28         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
     29         '../ui/surface/surface.gyp:surface',
     30         '../webkit/common/webkit_common.gyp:webkit_common',
     31         '../webkit/support/webkit_support.gyp:glue_child',
     32         '../webkit/renderer/webkit_renderer.gyp:webkit_renderer',
     33         '../webkit/support/webkit_support.gyp:glue',
     34         '../webkit/webkit_resources.gyp:webkit_resources',
     35       ],
     36       'include_dirs': [
     37         '..',
     38         # Needed by chrome_content_renderer_client.cc.
     39         '<(SHARED_INTERMEDIATE_DIR)',
     40       ],
     41       'defines': [
     42         '<@(nacl_defines)',
     43       ],
     44       'direct_dependent_settings': {
     45         'defines': [
     46           '<@(nacl_defines)',
     47         ],
     48       },
     49       'sources': [
     50         'renderer/benchmarking_extension.cc',
     51         'renderer/benchmarking_extension.h',
     52         'renderer/extensions/activity_log_converter_strategy.cc',
     53         'renderer/extensions/activity_log_converter_strategy.h',
     54         'renderer/extensions/api_activity_logger.cc',
     55         'renderer/extensions/api_activity_logger.h',
     56         'renderer/extensions/api_definitions_natives.cc',
     57         'renderer/extensions/api_definitions_natives.h',
     58         'renderer/extensions/app_bindings.cc',
     59         'renderer/extensions/app_bindings.h',
     60         'renderer/extensions/app_runtime_custom_bindings.cc',
     61         'renderer/extensions/app_runtime_custom_bindings.h',
     62         'renderer/extensions/app_window_custom_bindings.cc',
     63         'renderer/extensions/app_window_custom_bindings.h',
     64         'renderer/extensions/binding_generating_native_handler.cc',
     65         'renderer/extensions/binding_generating_native_handler.h',
     66         'renderer/extensions/chrome_v8_context.cc',
     67         'renderer/extensions/chrome_v8_context.h',
     68         'renderer/extensions/chrome_v8_context_set.cc',
     69         'renderer/extensions/chrome_v8_context_set.h',
     70         'renderer/extensions/chrome_v8_extension.cc',
     71         'renderer/extensions/chrome_v8_extension.h',
     72         'renderer/extensions/chrome_v8_extension_handler.cc',
     73         'renderer/extensions/chrome_v8_extension_handler.h',
     74         'renderer/extensions/console.cc',
     75         'renderer/extensions/console.h',
     76         'renderer/extensions/content_watcher.cc',
     77         'renderer/extensions/content_watcher.h',
     78         'renderer/extensions/context_menus_custom_bindings.cc',
     79         'renderer/extensions/context_menus_custom_bindings.h',
     80         'renderer/extensions/dispatcher.cc',
     81         'renderer/extensions/dispatcher.h',
     82         'renderer/extensions/dom_activity_logger.cc',
     83         'renderer/extensions/dom_activity_logger.h',
     84         'renderer/extensions/event_bindings.cc',
     85         'renderer/extensions/event_bindings.h',
     86         'renderer/extensions/extension_custom_bindings.cc',
     87         'renderer/extensions/extension_custom_bindings.h',
     88         'renderer/extensions/extension_groups.h',
     89         'renderer/extensions/extension_helper.cc',
     90         'renderer/extensions/extension_helper.h',
     91         'renderer/extensions/extension_localization_peer.cc',
     92         'renderer/extensions/extension_localization_peer.h',
     93         'renderer/extensions/feedback_private_custom_bindings.cc',
     94         'renderer/extensions/feedback_private_custom_bindings.h',
     95         'renderer/extensions/file_browser_handler_custom_bindings.cc',
     96         'renderer/extensions/file_browser_handler_custom_bindings.h',
     97         'renderer/extensions/file_browser_private_custom_bindings.cc',
     98         'renderer/extensions/file_browser_private_custom_bindings.h',
     99         'renderer/extensions/file_system_natives.cc',
    100         'renderer/extensions/file_system_natives.h',
    101         'renderer/extensions/i18n_custom_bindings.cc',
    102         'renderer/extensions/i18n_custom_bindings.h',
    103         'renderer/extensions/logging_native_handler.cc',
    104         'renderer/extensions/logging_native_handler.h',
    105         'renderer/extensions/media_galleries_custom_bindings.cc',
    106         'renderer/extensions/media_galleries_custom_bindings.h',
    107         'renderer/extensions/messaging_bindings.cc',
    108         'renderer/extensions/messaging_bindings.h',
    109         'renderer/extensions/module_system.cc',
    110         'renderer/extensions/module_system.h',
    111         'renderer/extensions/native_handler.cc',
    112         'renderer/extensions/native_handler.h',
    113         'renderer/extensions/object_backed_native_handler.cc',
    114         'renderer/extensions/object_backed_native_handler.h',
    115         'renderer/extensions/page_actions_custom_bindings.cc',
    116         'renderer/extensions/page_actions_custom_bindings.h',
    117         'renderer/extensions/page_capture_custom_bindings.cc',
    118         'renderer/extensions/page_capture_custom_bindings.h',
    119         'renderer/extensions/renderer_permissions_policy_delegate.cc',
    120         'renderer/extensions/renderer_permissions_policy_delegate.h',
    121         'renderer/extensions/render_view_observer_natives.cc',
    122         'renderer/extensions/render_view_observer_natives.h',
    123         'renderer/extensions/request_sender.cc',
    124         'renderer/extensions/request_sender.h',
    125         'renderer/extensions/resource_request_policy.cc',
    126         'renderer/extensions/resource_request_policy.h',
    127         'renderer/extensions/runtime_custom_bindings.cc',
    128         'renderer/extensions/runtime_custom_bindings.h',
    129         'renderer/extensions/safe_builtins.cc',
    130         'renderer/extensions/safe_builtins.h',
    131         'renderer/extensions/scoped_persistent.h',
    132         'renderer/extensions/send_request_natives.cc',
    133         'renderer/extensions/send_request_natives.h',
    134         'renderer/extensions/set_icon_natives.cc',
    135         'renderer/extensions/set_icon_natives.h',
    136         'renderer/extensions/sync_file_system_custom_bindings.cc',
    137         'renderer/extensions/sync_file_system_custom_bindings.h',
    138         'renderer/extensions/tab_finder.cc',
    139         'renderer/extensions/tab_finder.h',
    140         'renderer/extensions/tabs_custom_bindings.cc',
    141         'renderer/extensions/tabs_custom_bindings.h',
    142         'renderer/extensions/tts_custom_bindings.cc',
    143         'renderer/extensions/tts_custom_bindings.h',
    144         'renderer/extensions/unsafe_persistent.h',
    145         'renderer/extensions/user_script_scheduler.cc',
    146         'renderer/extensions/user_script_scheduler.h',
    147         'renderer/extensions/user_script_slave.cc',
    148         'renderer/extensions/user_script_slave.h',
    149         'renderer/extensions/v8_schema_registry.cc',
    150         'renderer/extensions/v8_schema_registry.h',
    151         'renderer/extensions/web_request_custom_bindings.cc',
    152         'renderer/extensions/web_request_custom_bindings.h',
    153         'renderer/extensions/webstore_bindings.cc',
    154         'renderer/extensions/webstore_bindings.h',
    155         'renderer/frame_sniffer.cc',
    156         'renderer/frame_sniffer.h',
    157         'renderer/isolated_world_ids.h',
    158         'renderer/loadtimes_extension_bindings.cc',
    159         'renderer/loadtimes_extension_bindings.h',
    160         'renderer/media/chrome_webrtc_log_message_delegate.cc',
    161         'renderer/media/chrome_webrtc_log_message_delegate.h',
    162         'renderer/media/webrtc_logging_message_filter.cc',
    163         'renderer/media/webrtc_logging_message_filter.h',
    164         'renderer/net/net_error_helper.cc',
    165         'renderer/net/net_error_helper.h',
    166         'renderer/net/predictor_queue.cc',
    167         'renderer/net/predictor_queue.h',
    168         'renderer/net/prescient_networking_dispatcher.cc',
    169         'renderer/net/prescient_networking_dispatcher.h',
    170         'renderer/net/renderer_net_predictor.cc',
    171         'renderer/net/renderer_net_predictor.h',
    172         'renderer/net_benchmarking_extension.cc',
    173         'renderer/net_benchmarking_extension.h',
    174         'renderer/one_click_signin_agent.cc',
    175         'renderer/one_click_signin_agent.h',
    176         'renderer/playback_extension.cc',
    177         'renderer/playback_extension.h',
    178         'renderer/resource_bundle_source_map.cc',
    179         'renderer/resource_bundle_source_map.h',
    180         'renderer/resources/extensions/app_custom_bindings.js',
    181         'renderer/resources/extensions/app_window_custom_bindings.js',
    182         'renderer/resources/extensions/binding.js',
    183         'renderer/resources/extensions/browser_action_custom_bindings.js',
    184         'renderer/resources/extensions/chrome_direct_setting.js',
    185         'renderer/resources/extensions/chrome_setting.js',
    186         'renderer/resources/extensions/content_setting.js',
    187         'renderer/resources/extensions/content_watcher.js',
    188         'renderer/resources/extensions/context_menus_custom_bindings.js',
    189         'renderer/resources/extensions/declarative_content_custom_bindings.js',
    190         'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
    191         'renderer/resources/extensions/event.js',
    192         'renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js',
    193         'renderer/resources/extensions/extension_custom_bindings.js',
    194         'renderer/resources/extensions/feedback_private_custom_bindings.js',
    195         'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
    196         'renderer/resources/extensions/file_browser_private_custom_bindings.js',
    197         'renderer/resources/extensions/file_system_custom_bindings.js',
    198         'renderer/resources/extensions/greasemonkey_api.js',
    199         'renderer/resources/extensions/input.ime_custom_bindings.js',
    200         'renderer/resources/extensions/json_schema.js',
    201         'renderer/resources/extensions/last_error.js',
    202         'renderer/resources/extensions/messaging.js',
    203         'renderer/resources/extensions/notifications_custom_bindings.js',
    204         'renderer/resources/extensions/omnibox_custom_bindings.js',
    205         'renderer/resources/extensions/page_action_custom_bindings.js',
    206         'renderer/resources/extensions/page_actions_custom_bindings.js',
    207         'renderer/resources/extensions/page_capture_custom_bindings.js',
    208         'renderer/resources/extensions/platform_app.js',
    209         'renderer/resources/extensions/runtime_custom_bindings.js',
    210         'renderer/resources/extensions/send_request.js',
    211         'renderer/resources/extensions/set_icon.js',
    212         'renderer/resources/extensions/storage_area.js',
    213         'renderer/resources/extensions/system_indicator_custom_bindings.js',
    214         'renderer/resources/extensions/test_custom_bindings.js',
    215         'renderer/resources/extensions/tts_custom_bindings.js',
    216         'renderer/resources/extensions/tts_engine_custom_bindings.js',
    217         'renderer/resources/extensions/unload_event.js',
    218         'renderer/resources/extensions/utils.js',
    219         'renderer/resources/extensions/web_request_custom_bindings.js',
    220         'renderer/resources/extensions/web_view.js',
    221         'renderer/resources/extensions/web_view_experimental.js',
    222         'renderer/chrome_content_renderer_client.cc',
    223         'renderer/chrome_content_renderer_client.h',
    224         'renderer/chrome_render_process_observer.cc',
    225         'renderer/chrome_render_process_observer.h',
    226         'renderer/chrome_render_view_observer.cc',
    227         'renderer/chrome_render_view_observer.h',
    228         'renderer/content_settings_observer.cc',
    229         'renderer/content_settings_observer.h',
    230         'renderer/custom_menu_commands.h',
    231         'renderer/external_host_bindings.cc',
    232         'renderer/external_host_bindings.h',
    233         'renderer/external_extension.cc',
    234         'renderer/external_extension.h',
    235         'renderer/page_load_histograms.cc',
    236         'renderer/page_load_histograms.h',
    237         'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
    238         'renderer/pepper/chrome_renderer_pepper_host_factory.h',
    239         'renderer/pepper/pepper_extensions_common_host.cc',
    240         'renderer/pepper/pepper_extensions_common_host.h',
    241         'renderer/pepper/pepper_flash_drm_renderer_host.cc',
    242         'renderer/pepper/pepper_flash_drm_renderer_host.h',
    243         'renderer/pepper/pepper_flash_font_file_host.cc',
    244         'renderer/pepper/pepper_flash_font_file_host.h',
    245         'renderer/pepper/pepper_flash_fullscreen_host.cc',
    246         'renderer/pepper/pepper_flash_fullscreen_host.h',
    247         'renderer/pepper/pepper_flash_menu_host.cc',
    248         'renderer/pepper/pepper_flash_menu_host.h',
    249         'renderer/pepper/pepper_flash_renderer_host.cc',
    250         'renderer/pepper/pepper_flash_renderer_host.h',
    251         'renderer/pepper/pepper_helper.cc',
    252         'renderer/pepper/pepper_helper.h',
    253         'renderer/pepper/pepper_pdf_host.cc',
    254         'renderer/pepper/pepper_pdf_host.h',
    255         'renderer/pepper/pepper_shared_memory_message_filter.cc',
    256         'renderer/pepper/pepper_shared_memory_message_filter.h',
    257         'renderer/pepper/pnacl_translation_resource_host.cc',
    258         'renderer/pepper/pnacl_translation_resource_host.h',
    259         'renderer/pepper/ppb_nacl_private_impl.cc',
    260         'renderer/pepper/ppb_nacl_private_impl.h',
    261         'renderer/pepper/ppb_pdf_impl.cc',
    262         'renderer/pepper/ppb_pdf_impl.h',
    263         'renderer/plugins/plugin_placeholder.cc',
    264         'renderer/plugins/plugin_placeholder.h',
    265         'renderer/plugins/plugin_uma.cc',
    266         'renderer/plugins/plugin_uma.h',
    267         'renderer/plugins/webview_plugin.cc',
    268         'renderer/plugins/webview_plugin.h',
    269         'renderer/prerender/prerender_dispatcher.cc',
    270         'renderer/prerender/prerender_dispatcher.h',
    271         'renderer/prerender/prerender_extra_data.cc',
    272         'renderer/prerender/prerender_extra_data.h',
    273         'renderer/prerender/prerender_helper.cc',
    274         'renderer/prerender/prerender_helper.h',
    275         'renderer/prerender/prerender_media_load_deferrer.cc',
    276         'renderer/prerender/prerender_media_load_deferrer.h',
    277         'renderer/prerender/prerenderer_client.cc',
    278         'renderer/prerender/prerenderer_client.h',
    279         'renderer/printing/print_web_view_helper.cc',
    280         'renderer/printing/print_web_view_helper.h',
    281         'renderer/printing/print_web_view_helper_android.cc',
    282         'renderer/printing/print_web_view_helper_linux.cc',
    283         'renderer/printing/print_web_view_helper_mac.mm',
    284         'renderer/printing/print_web_view_helper_win.cc',
    285         'renderer/safe_browsing/feature_extractor_clock.cc',
    286         'renderer/safe_browsing/feature_extractor_clock.h',
    287         'renderer/safe_browsing/features.cc',
    288         'renderer/safe_browsing/features.h',
    289         'renderer/safe_browsing/malware_dom_details.cc',
    290         'renderer/safe_browsing/malware_dom_details.h',
    291         'renderer/safe_browsing/murmurhash3_util.cc',
    292         'renderer/safe_browsing/murmurhash3_util.h',
    293         'renderer/safe_browsing/phishing_classifier.cc',
    294         'renderer/safe_browsing/phishing_classifier.h',
    295         'renderer/safe_browsing/phishing_classifier_delegate.cc',
    296         'renderer/safe_browsing/phishing_classifier_delegate.h',
    297         'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
    298         'renderer/safe_browsing/phishing_dom_feature_extractor.h',
    299         'renderer/safe_browsing/phishing_term_feature_extractor.cc',
    300         'renderer/safe_browsing/phishing_term_feature_extractor.h',
    301         'renderer/safe_browsing/phishing_url_feature_extractor.cc',
    302         'renderer/safe_browsing/phishing_url_feature_extractor.h',
    303         'renderer/safe_browsing/scorer.cc',
    304         'renderer/safe_browsing/scorer.h',
    305         'renderer/searchbox/searchbox.cc',
    306         'renderer/searchbox/searchbox.h',
    307         'renderer/searchbox/searchbox_extension.cc',
    308         'renderer/searchbox/searchbox_extension.h',
    309         'renderer/security_filter_peer.cc',
    310         'renderer/security_filter_peer.h',
    311         'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
    312         'renderer/spellchecker/cocoa_spelling_engine_mac.h',
    313         'renderer/spellchecker/custom_dictionary_engine.cc',
    314         'renderer/spellchecker/custom_dictionary_engine.h',
    315         'renderer/spellchecker/hunspell_engine.cc',
    316         'renderer/spellchecker/hunspell_engine.h',
    317         'renderer/spellchecker/spellcheck_provider.cc',
    318         'renderer/spellchecker/spellcheck_provider.h',
    319         'renderer/spellchecker/spellcheck.cc',
    320         'renderer/spellchecker/spellcheck.h',
    321         'renderer/spellchecker/spellcheck_language.cc',
    322         'renderer/spellchecker/spellcheck_language.h',
    323         'renderer/spellchecker/spellcheck_worditerator.cc',
    324         'renderer/spellchecker/spellcheck_worditerator.h',
    325         'renderer/spellchecker/spelling_engine.h',
    326         'renderer/static_v8_external_string_resource.cc',
    327         'renderer/static_v8_external_string_resource.h',
    328         'renderer/tts_dispatcher.cc',
    329         'renderer/tts_dispatcher.h',
    330         'renderer/translate/translate_helper.cc',
    331         'renderer/translate/translate_helper.h',
    332         'renderer/validation_message_agent.cc',
    333         'renderer/validation_message_agent.h',
    334         'renderer/web_apps.cc',
    335         'renderer/web_apps.h',
    336         'renderer/webview_color_overlay.cc',
    337         'renderer/webview_color_overlay.h',
    338       ],
    339       'conditions': [
    340         ['disable_nacl!=1', {
    341           'dependencies': [
    342             '../components/nacl.gyp:nacl',
    343           ],
    344         }],
    345         ['enable_plugins==1', {
    346           'dependencies': [
    347             '../ppapi/ppapi_internal.gyp:ppapi_host',
    348             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
    349             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
    350             '../ppapi/ppapi_internal.gyp:ppapi_shared',
    351           ],
    352         }, {  # enable_plugins==0
    353           'sources/': [
    354             ['exclude', '^renderer/pepper/'],
    355           ],
    356         }],
    357         ['safe_browsing==1', {
    358           'defines': [
    359             'FULL_SAFE_BROWSING',
    360           ],
    361           'dependencies': [
    362             'safe_browsing_proto',
    363             '../third_party/smhasher/smhasher.gyp:murmurhash3',
    364           ],
    365         }, {  # safe_browsing==0 || safe_browsing==2
    366           'sources/': [
    367             ['exclude', '^renderer/safe_browsing/'],
    368           ],
    369         }],
    370         ['enable_webrtc==0', {
    371           'sources!': [
    372             'renderer/media/chrome_webrtc_log_message_delegate.cc',
    373             'renderer/media/chrome_webrtc_log_message_delegate.h',
    374             'renderer/media/webrtc_logging_message_filter.cc',
    375             'renderer/media/webrtc_logging_message_filter.h',
    376           ],
    377         }],
    378         ['enable_spellcheck==0', {
    379           'sources/': [
    380             ['exclude', '^renderer/spellchecker/']
    381           ],
    382           'dependencies!': [
    383             '../third_party/hunspell/hunspell.gyp:hunspell',
    384           ],
    385         }],
    386         ['OS=="mac"', {
    387           'dependencies': [
    388             '../third_party/mach_override/mach_override.gyp:mach_override',
    389           ],
    390         }],
    391         ['toolkit_uses_gtk == 1', {
    392           'dependencies': [
    393             '../build/linux/system.gyp:gtk',
    394             '../sandbox/sandbox.gyp:sandbox',
    395           ],
    396         }],
    397         ['enable_automation==0', {
    398           'sources/': [
    399             ['exclude', '^renderer/automation/']
    400           ]
    401         }],
    402 	['enable_printing==0', {
    403           'sources/': [
    404             ['exclude', '^renderer/printing/']
    405           ]
    406 	}],
    407         ['OS=="android"', {
    408           'sources!': [
    409             'renderer/prerender/prerender_media_load_deferrer.cc',
    410             'renderer/prerender/prerender_media_load_deferrer.h',
    411           ],
    412           'defines': [
    413             'ENABLE_MOBILE_YOUTUBE_PLUGIN',
    414           ],
    415         }],
    416         ['OS=="win"', {
    417           'include_dirs': [
    418             '<(DEPTH)/third_party/wtl/include',
    419           ],
    420           'conditions': [
    421             ['win_use_allocator_shim==1', {
    422               'dependencies': [
    423                 '<(allocator_target)',
    424               ],
    425               'export_dependent_settings': [
    426                 '<(allocator_target)',
    427               ],
    428             }],
    429           ],
    430         }],
    431       ],
    432     },
    433   ],
    434 }
    435