Home | History | Annotate | Download | only in glue
      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   'target_defaults': {
      7      # Disable narrowing-conversion-in-initialization-list warnings in that we
      8      # do not want to fix it in data file "webcursor_gtk_data.h".
      9      'cflags+': ['-Wno-narrowing'],
     10      'cflags_cc+': ['-Wno-narrowing'],
     11   },
     12   'targets': [
     13     {
     14       'target_name': 'glue_child',
     15       'type': '<(component)',
     16       'variables': { 'enable_wexit_time_destructors': 1, },
     17       'defines': [
     18         'WEBKIT_CHILD_IMPLEMENTATION',
     19       ],
     20       'dependencies': [
     21         '<(DEPTH)/base/base.gyp:base',
     22         '<(DEPTH)/base/base.gyp:base_i18n',
     23         '<(DEPTH)/base/base.gyp:base_static',
     24         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     25         '<(DEPTH)/net/net.gyp:net',
     26         '<(DEPTH)/skia/skia.gyp:skia',
     27         '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
     28         '<(DEPTH)/ui/native_theme/native_theme.gyp:native_theme',
     29         '<(DEPTH)/ui/ui.gyp:ui',
     30         '<(DEPTH)/url/url.gyp:url_lib',
     31         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
     32         '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
     33         '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
     34       ],
     35 
     36       'include_dirs': [
     37         # For JNI generated header.
     38         '<(SHARED_INTERMEDIATE_DIR)/webkit',
     39       ],
     40       'hard_dependency': 1,
     41 
     42       'sources': [
     43         '../child/fling_animator_impl_android.cc',
     44         '../child/fling_animator_impl_android.h',
     45         '../child/fling_curve_configuration.cc',
     46         '../child/fling_curve_configuration.h',
     47         '../child/ftp_directory_listing_response_delegate.cc',
     48         '../child/ftp_directory_listing_response_delegate.h',
     49         '../child/multipart_response_delegate.cc',
     50         '../child/multipart_response_delegate.h',
     51         '../child/resource_loader_bridge.cc',
     52         '../child/resource_loader_bridge.h',
     53         '../child/touch_fling_gesture_curve.cc',
     54         '../child/touch_fling_gesture_curve.h',
     55         '../child/web_discardable_memory_impl.cc',
     56         '../child/web_discardable_memory_impl.h',
     57         '../child/webfallbackthemeengine_impl.cc',
     58         '../child/webfallbackthemeengine_impl.h',
     59         '../child/webkit_child_export.h',
     60         '../child/webkit_child_helpers.cc',
     61         '../child/webkit_child_helpers.h',
     62         '../child/webkitplatformsupport_child_impl.cc',
     63         '../child/webkitplatformsupport_child_impl.h',
     64         '../child/webkitplatformsupport_impl.cc',
     65         '../child/webkitplatformsupport_impl.h',
     66         '../child/websocketstreamhandle_bridge.h',
     67         '../child/websocketstreamhandle_delegate.h',
     68         '../child/websocketstreamhandle_impl.cc',
     69         '../child/websocketstreamhandle_impl.h',
     70         '../child/webthemeengine_impl_android.cc',
     71         '../child/webthemeengine_impl_android.h',
     72         '../child/webthemeengine_impl_default.cc',
     73         '../child/webthemeengine_impl_default.h',
     74         '../child/webthemeengine_impl_mac.cc',
     75         '../child/webthemeengine_impl_mac.h',
     76         '../child/webthemeengine_impl_win.cc',
     77         '../child/webthemeengine_impl_win.h',
     78         '../child/webthread_impl.cc',
     79         '../child/webthread_impl.h',
     80         '../child/weburlloader_impl.cc',
     81         '../child/weburlloader_impl.h',
     82         '../child/weburlrequest_extradata_impl.cc',
     83         '../child/weburlrequest_extradata_impl.h',
     84         '../child/weburlresponse_extradata_impl.cc',
     85         '../child/weburlresponse_extradata_impl.h',
     86         '../child/worker_task_runner.cc',
     87         '../child/worker_task_runner.h',
     88       ],
     89 
     90       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     91       'msvs_disabled_warnings': [ 4267 ],
     92 
     93       'conditions': [
     94         ['use_default_render_theme==0', {
     95           'sources/': [
     96             ['exclude', 'webthemeengine_impl_default.cc'],
     97             ['exclude', 'webthemeengine_impl_default.h'],
     98           ],
     99         }],
    100         ['OS=="mac"', {
    101           'link_settings': {
    102             'libraries': [
    103               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
    104             ],
    105           },
    106         }],
    107         ['OS=="android"', {
    108           'dependencies': [
    109             'overscroller_jni_headers',
    110           ],
    111         }],
    112       ],
    113     },
    114 
    115 
    116     {
    117       'target_name': 'glue',
    118       'type': '<(component)',
    119       'variables': { 'enable_wexit_time_destructors': 1, },
    120       'defines': [
    121         'WEBKIT_EXTENSIONS_IMPLEMENTATION',
    122         'WEBKIT_GLUE_IMPLEMENTATION',
    123       ],
    124       'dependencies': [
    125         '<(DEPTH)/base/base.gyp:base',
    126         '<(DEPTH)/base/base.gyp:base_i18n',
    127         '<(DEPTH)/base/base.gyp:base_static',
    128         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
    129         '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib',
    130         '<(DEPTH)/gpu/gpu.gyp:gles2_implementation',
    131         '<(DEPTH)/net/net.gyp:net',
    132         '<(DEPTH)/printing/printing.gyp:printing',
    133         '<(DEPTH)/skia/skia.gyp:skia',
    134         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
    135         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
    136         '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
    137         '<(DEPTH)/ui/gl/gl.gyp:gl',
    138         '<(DEPTH)/ui/ui.gyp:ui',
    139         '<(DEPTH)/ui/ui.gyp:ui_resources',
    140         '<(DEPTH)/url/url.gyp:url_lib',
    141         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
    142         '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
    143         '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
    144         '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
    145         '<(DEPTH)/webkit/storage_browser.gyp:webkit_storage_browser',
    146         '<(DEPTH)/webkit/storage_common.gyp:webkit_storage_common',
    147         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
    148         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
    149       ],
    150       'include_dirs': [
    151         '<(INTERMEDIATE_DIR)',
    152         '<(SHARED_INTERMEDIATE_DIR)/webkit',
    153         '<(SHARED_INTERMEDIATE_DIR)/ui',
    154       ],
    155       'sources': [
    156         'simple_webmimeregistry_impl.cc',
    157         'simple_webmimeregistry_impl.h',
    158         'webfileutilities_impl.cc',
    159         'webfileutilities_impl.h',
    160         'webkit_glue.cc',
    161         'webkit_glue.h',
    162         'webkit_glue_export.h',
    163       ],
    164       # When glue is a dependency, it needs to be a hard dependency.
    165       # Dependents may rely on files generated by this target or one of its
    166       # own hard dependencies.
    167       'hard_dependency': 1,
    168       'conditions': [
    169         ['toolkit_uses_gtk == 1', {
    170           'dependencies': [
    171             '<(DEPTH)/build/linux/system.gyp:gtk',
    172           ],
    173           'sources/': [['exclude', '_x11\\.cc$']],
    174         }],
    175         ['use_aura==1 and use_x11==1', {
    176           'link_settings': {
    177             'libraries': [ '-lXcursor', ],
    178           },
    179         }],
    180         ['OS=="win"', {
    181           'include_dirs': [
    182             '<(DEPTH)/third_party/wtl/include',
    183           ],
    184           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
    185           'msvs_disabled_warnings': [ 4800, 4267 ],
    186           'conditions': [
    187             ['component=="shared_library"', {
    188               'dependencies': [
    189                  '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
    190                ],
    191                'export_dependent_settings': [
    192                  '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
    193                  '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
    194                ],
    195             }],
    196           ],
    197         }],
    198         ['chrome_multiple_dll!=1', {
    199           'dependencies': [
    200             '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
    201           ],
    202         }],
    203       ],
    204     },
    205   ],
    206   'conditions': [
    207     ['use_third_party_translations==1', {
    208       'targets': [
    209         {
    210           'target_name': 'inspector_strings',
    211           'type': 'none',
    212           'variables': {
    213             'grit_out_dir': '<(PRODUCT_DIR)/resources/inspector/l10n',
    214           },
    215           'actions': [
    216             {
    217               'action_name': 'inspector_strings',
    218               'variables': {
    219                 'grit_grd_file': 'inspector_strings.grd',
    220               },
    221               'includes': [ '../../build/grit_action.gypi' ],
    222             },
    223           ],
    224           'includes': [ '../../build/grit_target.gypi' ],
    225         },
    226       ],
    227     }],
    228     ['OS=="android"', {
    229       'targets': [
    230         {
    231           'target_name': 'overscroller_jni_headers',
    232           'type': 'none',
    233           'variables': {
    234             'jni_gen_package': 'webkit',
    235             'input_java_class': 'android/widget/OverScroller.class',
    236           },
    237           'includes': [ '../../build/jar_file_jni_generator.gypi' ],
    238         },
    239       ],
    240     }],
    241   ],
    242 }
    243