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