Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / webkit / common / webkit_common.gyp
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/gfx/gfx.gyp:gfx_geometry',
25         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
26         '<(DEPTH)/ui/ui.gyp:ui',
27         '<(DEPTH)/url/url.gyp:url_lib',
28         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
29       ],
30
31       'include_dirs': [
32         '<(INTERMEDIATE_DIR)',
33         '<(SHARED_INTERMEDIATE_DIR)/ui',
34         '<(SHARED_INTERMEDIATE_DIR)/webkit',
35       ],
36
37       'sources': [
38         'cursors/webcursor.cc',
39         'cursors/webcursor.h',
40         'cursors/webcursor_android.cc',
41         'cursors/webcursor_aura.cc',
42         'cursors/webcursor_aurawin.cc',
43         'cursors/webcursor_aurax11.cc',
44         'cursors/webcursor_gtk.cc',
45         'cursors/webcursor_gtk_data.h',
46         'cursors/webcursor_mac.mm',
47         'cursors/webcursor_null.cc',
48         'cursors/webcursor_win.cc',
49         'data_element.cc',
50         'data_element.h',
51         'resource_devtools_info.cc',
52         'resource_devtools_info.h',
53         'resource_request_body.cc',
54         'resource_request_body.h',
55         'resource_response_info.cc',
56         'resource_response_info.h',
57         'resource_type.cc',
58         'resource_type.h',
59         'webkit_common_export.h',
60         'webpreferences.cc',
61         'webpreferences.h',
62       ],
63
64       'conditions': [
65         ['toolkit_uses_gtk == 1', {
66           'dependencies': [
67             '<(DEPTH)/build/linux/system.gyp:gtk',
68           ],
69           'sources/': [['exclude', '_x11\\.cc$']],
70         }],
71         ['use_aura==1', {
72           'sources!': [
73             'cursors/webcursor_mac.mm',
74             'cursors/webcursor_win.cc',
75           ],
76         }],
77         ['use_aura==1 and use_x11==1', {
78           'dependencies': [
79             '<(DEPTH)/build/linux/system.gyp:xcursor',
80           ],
81         }],
82         ['use_ozone==0', {
83           'sources!': [
84             'cursors/webcursor_null.cc',
85           ],
86         }],
87         ['OS=="mac"', {
88           'link_settings': {
89             'libraries': [
90               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
91             ],
92           },
93         }],
94         ['OS=="win"', {
95           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96           'msvs_disabled_warnings': [ 4800, 4267 ],
97         }],
98       ],
99     },
100   ],
101 }