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