• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2013 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    'enable_wexit_time_destructors': 1,
8    'chromium_code': 1
9  },
10  'targets': [
11    {
12      'target_name': 'webkit_common',
13      'type': '<(component)',
14      'defines': [
15        'WEBKIT_COMMON_IMPLEMENTATION',
16      ],
17      'dependencies': [
18        '<(DEPTH)/base/base.gyp:base',
19        '<(DEPTH)/base/base.gyp:base_i18n',
20        '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21        '<(DEPTH)/net/net.gyp:net',
22        '<(DEPTH)/skia/skia.gyp:skia',
23        '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
24        '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
25        '<(DEPTH)/ui/ui.gyp:ui',
26        '<(DEPTH)/url/url.gyp:url_lib',
27        '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
28      ],
29
30      'include_dirs': [
31        '<(INTERMEDIATE_DIR)',
32        '<(SHARED_INTERMEDIATE_DIR)/ui',
33        '<(SHARED_INTERMEDIATE_DIR)/webkit',
34      ],
35
36      'sources': [
37        'cursors/webcursor.cc',
38        'cursors/webcursor.h',
39        'cursors/webcursor_android.cc',
40        'cursors/webcursor_aura.cc',
41        'cursors/webcursor_aurawin.cc',
42        'cursors/webcursor_aurax11.cc',
43        'cursors/webcursor_gtk.cc',
44        'cursors/webcursor_gtk_data.h',
45        'cursors/webcursor_mac.mm',
46        'cursors/webcursor_null.cc',
47        'cursors/webcursor_win.cc',
48        'data_element.cc',
49        'data_element.h',
50        'resource_devtools_info.cc',
51        'resource_devtools_info.h',
52        'resource_request_body.cc',
53        'resource_request_body.h',
54        'resource_response_info.cc',
55        'resource_response_info.h',
56        'resource_type.cc',
57        'resource_type.h',
58        'webkit_common_export.h',
59        'webpreferences.cc',
60        'webpreferences.h',
61      ],
62
63      'conditions': [
64        ['toolkit_uses_gtk == 1', {
65          'dependencies': [
66            '<(DEPTH)/build/linux/system.gyp:gtk',
67          ],
68          'sources/': [['exclude', '_x11\\.cc$']],
69        }],
70        ['use_aura==1', {
71          'sources!': [
72            'cursors/webcursor_mac.mm',
73            'cursors/webcursor_win.cc',
74          ],
75        }],
76        ['use_aura==1 and use_x11==1', {
77          'link_settings': {
78            'libraries': [ '-lXcursor', ],
79          },
80        }],
81        ['use_ozone==0', {
82          'sources!': [
83            'cursors/webcursor_null.cc',
84          ],
85        }],
86        ['OS!="mac"', {
87          'sources/': [['exclude', '_mac\\.(cc|mm)$']],
88        }, {  # else: OS=="mac"
89          'link_settings': {
90            'libraries': [
91              '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
92            ],
93          },
94        }],
95        ['OS!="win"', {
96          'sources/': [['exclude', '_win\\.cc$']],
97        }, {  # else: OS=="win"
98          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
99          'msvs_disabled_warnings': [ 4800, 4267 ],
100          'sources/': [['exclude', '_posix\\.cc$']],
101        }],
102      ],
103    },
104  ],
105}
106