Unreviewed EFL build fix
[WebKit-https.git] / Source / WebKit2 / PlatformGTK.cmake
1 set(DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR ${DERIVED_SOURCES_DIR}/webkitdom)
2 set(DERIVED_SOURCES_WEBKIT2GTK_DIR ${DERIVED_SOURCES_DIR}/webkit2gtk)
3 set(WEBKIT2_BUILT_API_DIR ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/webkit2)
4 set(WEBKIT2_FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders/webkit2gtk)
5
6 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
7 file(MAKE_DIRECTORY ${WEBKIT2_BUILT_API_DIR})
8 file(MAKE_DIRECTORY ${WEBKIT2_FORWARDING_HEADERS_DIR})
9
10 configure_file(UIProcess/API/gtk/WebKitVersion.h.in ${WEBKIT2_BUILT_API_DIR}/WebKitVersion.h)
11
12 add_definitions(-DWEBKIT2_COMPILATION)
13 add_definitions(-DLIBEXECDIR="${CMAKE_INSTALL_FULL_LIBEXECDIR}")
14 add_definitions(-DPACKAGE_LOCALE_DIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
15 add_definitions(-DLIBDIR="${CMAKE_INSTALL_FULL_LIBDIR}")
16
17 list(APPEND WebKit2_SOURCES
18     ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
19     ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
20
21     Platform/CoreIPC/unix/AttachmentUnix.cpp
22     Platform/CoreIPC/unix/ConnectionUnix.cpp
23
24     Platform/gtk/LoggingGtk.cpp
25     Platform/gtk/ModuleGtk.cpp
26     Platform/gtk/WorkQueueGtk.cpp
27
28     Platform/unix/SharedMemoryUnix.cpp
29
30     PluginProcess/unix/PluginControllerProxyUnix.cpp
31     PluginProcess/unix/PluginProcessMainUnix.cpp
32     PluginProcess/unix/PluginProcessUnix.cpp
33
34     Shared/API/c/cairo/WKImageCairo.cpp
35
36     Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp
37
38     Shared/Downloads/soup/DownloadSoup.cpp
39
40     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
41
42     Shared/cairo/ShareableBitmapCairo.cpp
43
44     Shared/gtk/ArgumentCodersGtk.cpp
45     Shared/gtk/LayerTreeContextGtk.cpp
46     Shared/gtk/NativeWebKeyboardEventGtk.cpp
47     Shared/gtk/NativeWebMouseEventGtk.cpp
48     Shared/gtk/NativeWebWheelEventGtk.cpp
49     Shared/gtk/PrintInfoGtk.cpp
50     Shared/gtk/ProcessExecutablePathGtk.cpp
51     Shared/gtk/WebEventFactory.cpp
52
53     Shared/linux/WebMemorySamplerLinux.cpp
54
55     Shared/linux/SeccompFilters/OpenSyscall.cpp
56     Shared/linux/SeccompFilters/SeccompBroker.cpp
57     Shared/linux/SeccompFilters/SeccompFilters.cpp
58     Shared/linux/SeccompFilters/SigactionSyscall.cpp
59     Shared/linux/SeccompFilters/SigprocmaskSyscall.cpp
60     Shared/linux/SeccompFilters/Syscall.cpp
61     Shared/linux/SeccompFilters/SyscallPolicy.cpp
62
63     Shared/soup/CertificateInfo.cpp
64     Shared/soup/WebCoreArgumentCodersSoup.cpp
65
66     UIProcess/DefaultUndoController.cpp
67     UIProcess/DrawingAreaProxyImpl.cpp
68
69     UIProcess/API/C/CoordinatedGraphics/WKView.cpp
70
71     UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp
72
73     UIProcess/API/C/gtk/WKFullScreenClientGtk.cpp
74     UIProcess/API/C/gtk/WKInspectorClientGtk.cpp
75     UIProcess/API/C/gtk/WKView.cpp
76
77     UIProcess/API/C/soup/WKContextSoup.cpp
78     UIProcess/API/C/soup/WKCookieManagerSoup.cpp
79     UIProcess/API/C/soup/WKSoupRequestManager.cpp
80
81     UIProcess/API/gtk/PageClientImpl.cpp
82     UIProcess/API/gtk/PageClientImpl.h
83     UIProcess/API/gtk/WebKitAuthenticationDialog.cpp
84     UIProcess/API/gtk/WebKitAuthenticationDialog.h
85     UIProcess/API/gtk/WebKitAuthenticationRequest.cpp
86     UIProcess/API/gtk/WebKitAuthenticationRequest.h
87     UIProcess/API/gtk/WebKitBackForwardList.cpp
88     UIProcess/API/gtk/WebKitBackForwardList.h
89     UIProcess/API/gtk/WebKitBackForwardListItem.cpp
90     UIProcess/API/gtk/WebKitBackForwardListItem.h
91     UIProcess/API/gtk/WebKitBackForwardListPrivate.h
92     UIProcess/API/gtk/WebKitCertificateInfo.cpp
93     UIProcess/API/gtk/WebKitCertificateInfo.h
94     UIProcess/API/gtk/WebKitCertificateInfoPrivate.h
95     UIProcess/API/gtk/WebKitContextMenu.cpp
96     UIProcess/API/gtk/WebKitContextMenu.h
97     UIProcess/API/gtk/WebKitContextMenuActions.cpp
98     UIProcess/API/gtk/WebKitContextMenuActions.h
99     UIProcess/API/gtk/WebKitContextMenuActionsPrivate.h
100     UIProcess/API/gtk/WebKitContextMenuClient.cpp
101     UIProcess/API/gtk/WebKitContextMenuClient.h
102     UIProcess/API/gtk/WebKitContextMenuItem.cpp
103     UIProcess/API/gtk/WebKitContextMenuItem.h
104     UIProcess/API/gtk/WebKitContextMenuItemPrivate.h
105     UIProcess/API/gtk/WebKitContextMenuPrivate.h
106     UIProcess/API/gtk/WebKitCookieManager.cpp
107     UIProcess/API/gtk/WebKitCookieManager.h
108     UIProcess/API/gtk/WebKitCookieManagerPrivate.h
109     UIProcess/API/gtk/WebKitCredential.cpp
110     UIProcess/API/gtk/WebKitCredential.h
111     UIProcess/API/gtk/WebKitDefines.h
112     UIProcess/API/gtk/WebKitDownload.cpp
113     UIProcess/API/gtk/WebKitDownload.h
114     UIProcess/API/gtk/WebKitDownloadClient.cpp
115     UIProcess/API/gtk/WebKitDownloadClient.h
116     UIProcess/API/gtk/WebKitDownloadPrivate.h
117     UIProcess/API/gtk/WebKitEditingCommands.h
118     UIProcess/API/gtk/WebKitError.cpp
119     UIProcess/API/gtk/WebKitError.h
120     UIProcess/API/gtk/WebKitFaviconDatabase.cpp
121     UIProcess/API/gtk/WebKitFaviconDatabase.h
122     UIProcess/API/gtk/WebKitFaviconDatabasePrivate.h
123     UIProcess/API/gtk/WebKitFileChooserRequest.cpp
124     UIProcess/API/gtk/WebKitFileChooserRequest.h
125     UIProcess/API/gtk/WebKitFileChooserRequestPrivate.h
126     UIProcess/API/gtk/WebKitFindController.cpp
127     UIProcess/API/gtk/WebKitFindController.h
128     UIProcess/API/gtk/WebKitFormClient.cpp
129     UIProcess/API/gtk/WebKitFormClient.h
130     UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp
131     UIProcess/API/gtk/WebKitFormSubmissionRequest.h
132     UIProcess/API/gtk/WebKitFormSubmissionRequestPrivate.h
133     UIProcess/API/gtk/WebKitForwardDeclarations.h
134     UIProcess/API/gtk/WebKitFullscreenClient.cpp
135     UIProcess/API/gtk/WebKitFullscreenClient.h
136     UIProcess/API/gtk/WebKitGeolocationPermissionRequest.cpp
137     UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
138     UIProcess/API/gtk/WebKitGeolocationPermissionRequestPrivate.h
139     UIProcess/API/gtk/WebKitGeolocationProvider.cpp
140     UIProcess/API/gtk/WebKitGeolocationProvider.h
141     UIProcess/API/gtk/WebKitHitTestResult.cpp
142     UIProcess/API/gtk/WebKitHitTestResult.h
143     UIProcess/API/gtk/WebKitHitTestResultPrivate.h
144     UIProcess/API/gtk/WebKitInjectedBundleClient.cpp
145     UIProcess/API/gtk/WebKitInjectedBundleClient.h
146     UIProcess/API/gtk/WebKitJavascriptResult.cpp
147     UIProcess/API/gtk/WebKitJavascriptResult.h
148     UIProcess/API/gtk/WebKitJavascriptResultPrivate.h
149     UIProcess/API/gtk/WebKitLoaderClient.cpp
150     UIProcess/API/gtk/WebKitLoaderClient.h
151     UIProcess/API/gtk/WebKitMimeInfo.cpp
152     UIProcess/API/gtk/WebKitMimeInfo.h
153     UIProcess/API/gtk/WebKitMimeInfoPrivate.h
154     UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp
155     UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
156     UIProcess/API/gtk/WebKitNavigationPolicyDecisionPrivate.h
157     UIProcess/API/gtk/WebKitPermissionRequest.cpp
158     UIProcess/API/gtk/WebKitPermissionRequest.h
159     UIProcess/API/gtk/WebKitPlugin.cpp
160     UIProcess/API/gtk/WebKitPlugin.h
161     UIProcess/API/gtk/WebKitPluginPrivate.h
162     UIProcess/API/gtk/WebKitPolicyClient.cpp
163     UIProcess/API/gtk/WebKitPolicyClient.h
164     UIProcess/API/gtk/WebKitPolicyDecision.cpp
165     UIProcess/API/gtk/WebKitPolicyDecision.h
166     UIProcess/API/gtk/WebKitPolicyDecisionPrivate.h
167     UIProcess/API/gtk/WebKitPrintOperation.cpp
168     UIProcess/API/gtk/WebKitPrintOperation.h
169     UIProcess/API/gtk/WebKitPrintOperationPrivate.h
170     UIProcess/API/gtk/WebKitPrivate.cpp
171     UIProcess/API/gtk/WebKitPrivate.h
172     UIProcess/API/gtk/WebKitRequestManagerClient.cpp
173     UIProcess/API/gtk/WebKitRequestManagerClient.h
174     UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp
175     UIProcess/API/gtk/WebKitResponsePolicyDecision.h
176     UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h
177     UIProcess/API/gtk/WebKitScriptDialog.cpp
178     UIProcess/API/gtk/WebKitScriptDialog.h
179     UIProcess/API/gtk/WebKitScriptDialogPrivate.h
180     UIProcess/API/gtk/WebKitSecurityManager.cpp
181     UIProcess/API/gtk/WebKitSecurityManager.h
182     UIProcess/API/gtk/WebKitSecurityManagerPrivate.h
183     UIProcess/API/gtk/WebKitSettings.cpp
184     UIProcess/API/gtk/WebKitSettings.h
185     UIProcess/API/gtk/WebKitSettingsPrivate.h
186     UIProcess/API/gtk/WebKitTextChecker.cpp
187     UIProcess/API/gtk/WebKitTextChecker.h
188     UIProcess/API/gtk/WebKitUIClient.cpp
189     UIProcess/API/gtk/WebKitUIClient.h
190     UIProcess/API/gtk/WebKitURIRequest.cpp
191     UIProcess/API/gtk/WebKitURIRequest.h
192     UIProcess/API/gtk/WebKitURIRequestPrivate.h
193     UIProcess/API/gtk/WebKitURIResponse.cpp
194     UIProcess/API/gtk/WebKitURIResponse.h
195     UIProcess/API/gtk/WebKitURIResponsePrivate.h
196     UIProcess/API/gtk/WebKitURISchemeRequest.cpp
197     UIProcess/API/gtk/WebKitURISchemeRequest.h
198     UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h
199     UIProcess/API/gtk/WebKitVersion.cpp
200     UIProcess/API/gtk/WebKitVersion.h.in
201     UIProcess/API/gtk/WebKitWebContext.cpp
202     UIProcess/API/gtk/WebKitWebContext.h
203     UIProcess/API/gtk/WebKitWebContextPrivate.h
204     UIProcess/API/gtk/WebKitWebInspector.cpp
205     UIProcess/API/gtk/WebKitWebInspector.h
206     UIProcess/API/gtk/WebKitWebInspectorPrivate.h
207     UIProcess/API/gtk/WebKitWebResource.cpp
208     UIProcess/API/gtk/WebKitWebResource.h
209     UIProcess/API/gtk/WebKitWebResourcePrivate.h
210     UIProcess/API/gtk/WebKitWebView.cpp
211     UIProcess/API/gtk/WebKitWebView.h
212     UIProcess/API/gtk/WebKitWebViewBase.cpp
213     UIProcess/API/gtk/WebKitWebViewBase.h
214     UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp
215     UIProcess/API/gtk/WebKitWebViewBaseAccessible.h
216     UIProcess/API/gtk/WebKitWebViewBasePrivate.h
217     UIProcess/API/gtk/WebKitWebViewGroup.cpp
218     UIProcess/API/gtk/WebKitWebViewGroup.h
219     UIProcess/API/gtk/WebKitWebViewGroupPrivate.h
220     UIProcess/API/gtk/WebKitWebViewPrivate.h
221     UIProcess/API/gtk/WebKitWindowProperties.cpp
222     UIProcess/API/gtk/WebKitWindowProperties.h
223     UIProcess/API/gtk/WebKitWindowPropertiesPrivate.h
224     UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp
225     UIProcess/API/gtk/WebViewBaseInputMethodFilter.h
226     UIProcess/API/gtk/webkit2.h
227
228     UIProcess/CoordinatedGraphics/WebView.cpp
229     UIProcess/CoordinatedGraphics/WebViewClient.cpp
230
231     UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp
232
233     UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
234
235     UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
236
237     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
238     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
239
240     UIProcess/Storage/StorageManager.cpp
241
242     UIProcess/cairo/BackingStoreCairo.cpp
243
244     UIProcess/gtk/ExperimentalFeatures.cpp
245     UIProcess/gtk/TextCheckerGtk.cpp
246     UIProcess/gtk/WebContextGtk.cpp
247     UIProcess/gtk/WebContextMenuProxyGtk.cpp
248     UIProcess/gtk/WebFullScreenClientGtk.cpp
249     UIProcess/gtk/WebInspectorClientGtk.cpp
250     UIProcess/gtk/WebInspectorProxyGtk.cpp
251     UIProcess/gtk/WebPageProxyGtk.cpp
252     UIProcess/gtk/WebPopupMenuProxyGtk.cpp
253     UIProcess/gtk/WebPreferencesGtk.cpp
254     UIProcess/gtk/WebProcessProxyGtk.cpp
255
256     UIProcess/soup/WebCookieManagerProxySoup.cpp
257     UIProcess/soup/WebSoupRequestManagerClient.cpp
258     UIProcess/soup/WebSoupRequestManagerProxy.cpp
259
260     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
261     WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
262
263     WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp
264     WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp
265     WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp
266     WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp
267
268     WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp
269
270     WebProcess/Plugins/Netscape/unix/PluginProxyUnix.cpp
271
272     WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
273
274     WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp
275     WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp
276     WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp
277     WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp
278     WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp
279
280     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
281
282     WebProcess/WebPage/DrawingAreaImpl.cpp
283
284     WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
285
286     WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
287     WebProcess/WebPage/gtk/WebInspectorGtk.cpp
288     WebProcess/WebPage/gtk/WebPageGtk.cpp
289     WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp
290
291     WebProcess/gtk/WebGtkExtensionManager.cpp
292     WebProcess/gtk/WebGtkInjectedBundleMain.cpp
293     WebProcess/gtk/WebProcessMainGtk.cpp
294
295     WebProcess/soup/WebKitSoupRequestGeneric.cpp
296     WebProcess/soup/WebKitSoupRequestInputStream.cpp
297     WebProcess/soup/WebProcessSoup.cpp
298     WebProcess/soup/WebSoupRequestManager.cpp
299 )
300
301 set(WebKit2_INSTALLED_HEADERS
302     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitBackForwardList.h
303     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitBackForwardListItem.h
304     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitCertificateInfo.h
305     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
306     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
307     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
308     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitCookieManager.h
309     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitDefines.h
310     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitDownload.h
311     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEditingCommands.h
312     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitError.h
313     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFaviconDatabase.h
314     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFileChooserRequest.h
315     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFindController.h
316     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFormSubmissionRequest.h
317     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitForwardDeclarations.h
318     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
319     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
320     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitJavascriptResult.h
321     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitMimeInfo.h
322     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
323     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPermissionRequest.h
324     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPlugin.h
325     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPolicyDecision.h
326     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPrintOperation.h
327     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitResponsePolicyDecision.h
328     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitScriptDialog.h
329     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitSecurityManager.h
330     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitSettings.h
331     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
332     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
333     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURISchemeRequest.h
334     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebContext.h
335     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebInspector.h
336     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebResource.h
337     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebView.h
338     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebViewBase.h
339     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebViewGroup.h
340     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWindowProperties.h
341     ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2.h
342
343     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp
344     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitFrame.h
345     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitFramePrivate.h
346     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp
347     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h
348     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h
349     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp
350     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h
351     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtensionPrivate.h
352     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp
353     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h
354     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPagePrivate.h
355     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h
356
357 )
358
359 list(APPEND WebKit2_MESSAGES_IN_FILES
360     UIProcess/soup/WebSoupRequestManagerProxy.messages.in
361
362     WebProcess/soup/WebSoupRequestManager.messages.in
363 )
364
365 # This is necessary because of a conflict between the GTK+ API WebKitVersion.h and one generated by WebCore.
366 list(INSERT WebKit2_INCLUDE_DIRECTORIES 0
367     "${WEBKIT2_FORWARDING_HEADERS_DIR}"
368     "${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2extension"
369     "${WEBKIT2_BUILT_API_DIR}"
370     "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
371 )
372
373 list(APPEND WebKit2_INCLUDE_DIRECTORIES
374     "${WEBCORE_DIR}/platform/cairo"
375     "${WEBCORE_DIR}/platform/gtk"
376     "${WEBCORE_DIR}/platform/graphics/cairo"
377     "${WEBCORE_DIR}/platform/graphics/opentype"
378     "${WEBCORE_DIR}/platform/network/soup"
379     "${WEBCORE_DIR}/platform/text/enchant"
380     "${WEBKIT2_DIR}/Shared/API/c/gtk"
381     "${WEBKIT2_DIR}/Shared/Downloads/soup"
382     "${WEBKIT2_DIR}/Shared/gtk"
383     "${WEBKIT2_DIR}/Shared/soup"
384     "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
385     "${WEBKIT2_DIR}/UIProcess/API/C/gtk"
386     "${WEBKIT2_DIR}/UIProcess/API/C/soup"
387     "${WEBKIT2_DIR}/UIProcess/API/cpp/gtk"
388     "${WEBKIT2_DIR}/UIProcess/API/gtk"
389     "${WEBKIT2_DIR}/UIProcess/gtk"
390     "${WEBKIT2_DIR}/UIProcess/soup"
391     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk"
392     "${WEBKIT2_DIR}/WebProcess/gtk"
393     "${WEBKIT2_DIR}/WebProcess/soup"
394     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/gtk"
395     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
396     "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
397     "${WEBKIT2_DIR}/WebProcess/WebPage/gtk"
398     "${WTF_DIR}/wtf/gtk/"
399     "${WTF_DIR}/wtf/gobject"
400     ${WTF_DIR}
401     ${CAIRO_INCLUDE_DIRS}
402     ${ENCHANT_INCLUDE_DIRS}
403     ${GLIB_INCLUDE_DIRS}
404     ${GTK3_INCLUDE_DIRS}
405     ${LIBSOUP_INCLUDE_DIRS}
406 )
407
408 list(APPEND WebProcess_SOURCES
409     gtk/MainGtk.cpp
410 )
411
412 set(WebKit2_MARSHAL_LIST ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2marshal.list)
413 add_custom_command(
414     OUTPUT ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
415            ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.h
416     MAIN_DEPENDENCY ${WebKit2_MARSHAL_LIST}
417
418     COMMAND echo extern \"C\" { > ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
419     COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --body >> ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
420     COMMAND echo } >> ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
421
422     COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --header > ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.h
423     VERBATIM)
424
425 add_custom_command(
426     OUTPUT ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.h
427            ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
428     DEPENDS ${WebKit2_INSTALLED_HEADERS}
429
430     COMMAND glib-mkenums --template ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEnumTypes.h.template ${WebKit2_INSTALLED_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.h
431
432     COMMAND glib-mkenums --template ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEnumTypes.cpp.template ${WebKit2_INSTALLED_HEADERS} | sed s/web_kit/webkit/ > ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
433     VERBATIM)
434
435 # This symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
436 add_custom_target(fake-installed-headers
437     mkdir -p ${DERIVED_SOURCES_WEBKIT2_DIR}/webkit2gtk/include
438     COMMAND ln -n -s -f ${WEBKIT2_DIR}/UIProcess/API/gtk ${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2
439 )
440
441 add_custom_target(fake-installed-webextension-headers
442     mkdir -p ${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2extension
443     COMMAND ln -n -s -f ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk ${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2extension/webkit2
444 )
445
446 add_custom_target(gtk-forwarding-headers
447     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include gtk
448 )
449
450 add_custom_target(soup-forwarding-headers
451     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
452 )
453
454 set(WEBKIT2_EXTRA_DEPENDENCIES
455      fake-installed-headers
456      gtk-forwarding-headers
457      soup-forwarding-headers
458      fake-installed-webextension-headers
459 )
460
461 if (ENABLE_PLUGIN_PROCESS)
462     add_definitions(-DENABLE_PLUGIN_PROCESS=1)
463
464     set(PluginProcess_EXECUTABLE_NAME WebKitPluginProcess)
465     list(APPEND PluginProcess_INCLUDE_DIRECTORIES
466         "${WEBKIT2_DIR}/PluginProcess/unix"
467     )
468
469     include_directories(${PluginProcess_INCLUDE_DIRECTORIES})
470
471     list(APPEND PluginProcess_SOURCES
472         ${WEBKIT2_DIR}/unix/PluginMainUnix.cpp
473     )
474
475     set(PluginProcess_LIBRARIES
476         WebKit2
477     )
478
479     add_executable(${PluginProcess_EXECUTABLE_NAME} ${PluginProcess_SOURCES})
480     target_link_libraries(${PluginProcess_EXECUTABLE_NAME} ${PluginProcess_LIBRARIES})
481     install(TARGETS ${PluginProcess_EXECUTABLE_NAME} DESTINATION "${EXEC_INSTALL_DIR}")
482 endif () # ENABLE_PLUGIN_PROCESS
483
484 # Commands for building the built-in injected bundle.
485 include_directories(
486     "${WEBKIT2_DIR}/Platform"
487     "${WEBKIT2_DIR}/Shared"
488     "${WEBKIT2_DIR}/Shared/API/c"
489     "${WEBKIT2_DIR}/UIProcess/API/C"
490     "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
491     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
492     "${DERIVED_SOURCES_DIR}"
493     "${DERIVED_SOURCES_DIR}/InjectedBundle"
494     "${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}"
495     "${DERIVED_SOURCES_WEBKIT2_DIR}/include"
496 )
497
498 add_library(webkit2gtkinjectedbundle MODULE
499     "${WEBKIT2_DIR}/WebProcess/gtk/WebGtkInjectedBundleMain.cpp"
500 )
501 add_dependencies(webkit2gtkinjectedbundle GObjectDOMBindings)
502 list(APPEND WebKit2_LIBRARIES GObjectDOMBindings)