Make LegacyCustomProtocolManager optional for network process
[WebKit-https.git] / Source / WebKit / PlatformGTK.cmake
1 include(InspectorGResources.cmake)
2
3 set(WebKit_OUTPUT_NAME webkit2gtk-${WEBKITGTK_API_VERSION})
4 set(WebKit_WebProcess_OUTPUT_NAME WebKitWebProcess)
5 set(WebKit_NetworkProcess_OUTPUT_NAME WebKitNetworkProcess)
6 set(WebKit_PluginProcess_OUTPUT_NAME WebKitPluginProcess)
7 set(WebKit_StorageProcess_OUTPUT_NAME WebKitStorageProcess)
8
9 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR})
10 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WEBKIT2GTK_DIR})
11 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR})
12
13 configure_file(UIProcess/API/gtk/WebKitVersion.h.in ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitVersion.h)
14 configure_file(gtk/webkit2gtk.pc.in ${WebKit2_PKGCONFIG_FILE} @ONLY)
15 configure_file(gtk/webkit2gtk-web-extension.pc.in ${WebKit2WebExtension_PKGCONFIG_FILE} @ONLY)
16
17 add_definitions(-DBUILDING_WEBKIT)
18 add_definitions(-DWEBKIT2_COMPILATION)
19 add_definitions(-DWEBKIT_DOM_USE_UNSTABLE_API)
20
21 add_definitions(-DLIBEXECDIR="${CMAKE_INSTALL_FULL_LIBEXECDIR}")
22 add_definitions(-DPKGLIBEXECDIR="${LIBEXEC_INSTALL_DIR}")
23 add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
24 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
25 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
26
27 # Temporary workaround to allow the build to succeed.
28 file(REMOVE "${FORWARDING_HEADERS_DIR}/WebCore/Settings.h")
29
30 set(WebKit_USE_PREFIX_HEADER ON)
31
32 list(APPEND WebKit_SOURCES
33     NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.cpp
34
35     NetworkProcess/CustomProtocols/soup/LegacyCustomProtocolManagerSoup.cpp
36
37     NetworkProcess/cache/NetworkCacheCodersSoup.cpp
38     NetworkProcess/cache/NetworkCacheDataSoup.cpp
39     NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp
40
41     NetworkProcess/soup/NetworkDataTaskSoup.cpp
42     NetworkProcess/soup/NetworkProcessMainSoup.cpp
43     NetworkProcess/soup/NetworkProcessSoup.cpp
44     NetworkProcess/soup/NetworkSessionSoup.cpp
45     NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
46
47     Platform/IPC/glib/GSocketMonitor.cpp
48     Platform/IPC/unix/AttachmentUnix.cpp
49     Platform/IPC/unix/ConnectionUnix.cpp
50
51     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
52
53     Platform/glib/ModuleGlib.cpp
54
55     Platform/unix/LoggingUnix.cpp
56     Platform/unix/SharedMemoryUnix.cpp
57
58     PluginProcess/unix/PluginControllerProxyUnix.cpp
59     PluginProcess/unix/PluginProcessMainUnix.cpp
60     PluginProcess/unix/PluginProcessUnix.cpp
61
62     Shared/API/c/cairo/WKImageCairo.cpp
63
64     Shared/API/glib/WebKitContextMenu.cpp
65     Shared/API/glib/WebKitContextMenuActions.cpp
66     Shared/API/glib/WebKitContextMenuItem.cpp
67     Shared/API/glib/WebKitHitTestResult.cpp
68     Shared/API/glib/WebKitURIRequest.cpp
69     Shared/API/glib/WebKitURIResponse.cpp
70
71     Shared/Authentication/soup/AuthenticationManagerSoup.cpp
72
73     Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp
74     Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp
75     Shared/CoordinatedGraphics/SimpleViewportController.cpp
76
77     Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp
78     Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.cpp
79     Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp
80
81     Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp
82
83     Shared/Plugins/unix/PluginSearchPath.cpp
84
85     Shared/cairo/ShareableBitmapCairo.cpp
86
87     Shared/glib/WebContextMenuItemGlib.cpp
88     Shared/glib/WebErrorsGlib.cpp
89
90     Shared/gtk/ArgumentCodersGtk.cpp
91     Shared/gtk/NativeWebKeyboardEventGtk.cpp
92     Shared/gtk/NativeWebMouseEventGtk.cpp
93     Shared/gtk/NativeWebTouchEventGtk.cpp
94     Shared/gtk/NativeWebWheelEventGtk.cpp
95     Shared/gtk/PrintInfoGtk.cpp
96     Shared/gtk/ProcessExecutablePathGtk.cpp
97     Shared/gtk/WebErrorsGtk.cpp
98     Shared/gtk/WebEventFactory.cpp
99     Shared/gtk/WebSelectionData.cpp
100
101     Shared/linux/WebMemorySamplerLinux.cpp
102
103     Shared/soup/WebCoreArgumentCodersSoup.cpp
104     Shared/soup/WebErrorsSoup.cpp
105
106     Shared/unix/ChildProcessMain.cpp
107
108     StorageProcess/glib/StorageProcessMainGLib.cpp
109
110     UIProcess/AcceleratedDrawingAreaProxy.cpp
111     UIProcess/BackingStore.cpp
112     UIProcess/DefaultUndoController.cpp
113     UIProcess/DrawingAreaProxyImpl.cpp
114     UIProcess/LegacySessionStateCodingNone.cpp
115     UIProcess/WebResourceLoadStatisticsStore.cpp
116     UIProcess/WebResourceLoadStatisticsTelemetry.cpp
117     UIProcess/WebTextChecker.cpp
118     UIProcess/WebTextCheckerClient.cpp
119
120     UIProcess/API/C/WKGrammarDetail.cpp
121
122     UIProcess/API/C/gtk/WKTextCheckerGtk.cpp
123     UIProcess/API/C/gtk/WKView.cpp
124
125     UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp
126     UIProcess/API/glib/IconDatabase.cpp
127     UIProcess/API/glib/WebKitApplicationInfo.cpp
128     UIProcess/API/glib/WebKitAuthenticationRequest.cpp
129     UIProcess/API/glib/WebKitAutomationSession.cpp
130     UIProcess/API/glib/WebKitBackForwardList.cpp
131     UIProcess/API/glib/WebKitBackForwardListItem.cpp
132     UIProcess/API/glib/WebKitContextMenuClient.cpp
133     UIProcess/API/glib/WebKitCookieManager.cpp
134     UIProcess/API/glib/WebKitCredential.cpp
135     UIProcess/API/glib/WebKitCustomProtocolManagerClient.cpp
136     UIProcess/API/glib/WebKitDownload.cpp
137     UIProcess/API/glib/WebKitDownloadClient.cpp
138     UIProcess/API/glib/WebKitEditorState.cpp
139     UIProcess/API/glib/WebKitError.cpp
140     UIProcess/API/glib/WebKitFaviconDatabase.cpp
141     UIProcess/API/glib/WebKitFileChooserRequest.cpp
142     UIProcess/API/glib/WebKitFindController.cpp
143     UIProcess/API/glib/WebKitFormClient.cpp
144     UIProcess/API/glib/WebKitFormSubmissionRequest.cpp
145     UIProcess/API/glib/WebKitGeolocationPermissionRequest.cpp
146     UIProcess/API/glib/WebKitGeolocationProvider.cpp
147     UIProcess/API/glib/WebKitIconLoadingClient.cpp
148     UIProcess/API/glib/WebKitInjectedBundleClient.cpp
149     UIProcess/API/glib/WebKitInstallMissingMediaPluginsPermissionRequest.cpp
150     UIProcess/API/glib/WebKitJavascriptResult.cpp
151     UIProcess/API/glib/WebKitMimeInfo.cpp
152     UIProcess/API/glib/WebKitNavigationAction.cpp
153     UIProcess/API/glib/WebKitNavigationClient.cpp
154     UIProcess/API/glib/WebKitNavigationPolicyDecision.cpp
155     UIProcess/API/glib/WebKitNetworkProxySettings.cpp
156     UIProcess/API/glib/WebKitNotification.cpp
157     UIProcess/API/glib/WebKitNotificationPermissionRequest.cpp
158     UIProcess/API/glib/WebKitNotificationProvider.cpp
159     UIProcess/API/glib/WebKitPermissionRequest.cpp
160     UIProcess/API/glib/WebKitPlugin.cpp
161     UIProcess/API/glib/WebKitPolicyDecision.cpp
162     UIProcess/API/glib/WebKitPrivate.cpp
163     UIProcess/API/glib/WebKitResponsePolicyDecision.cpp
164     UIProcess/API/glib/WebKitScriptDialog.cpp
165     UIProcess/API/glib/WebKitSecurityManager.cpp
166     UIProcess/API/glib/WebKitSecurityOrigin.cpp
167     UIProcess/API/glib/WebKitSettings.cpp
168     UIProcess/API/glib/WebKitUIClient.cpp
169     UIProcess/API/glib/WebKitURISchemeRequest.cpp
170     UIProcess/API/glib/WebKitUserContent.cpp
171     UIProcess/API/glib/WebKitUserContentManager.cpp
172     UIProcess/API/glib/WebKitUserMediaPermissionRequest.cpp
173     UIProcess/API/glib/WebKitWebContext.cpp
174     UIProcess/API/glib/WebKitWebResource.cpp
175     UIProcess/API/glib/WebKitWebView.cpp
176     UIProcess/API/glib/WebKitWebViewSessionState.cpp
177     UIProcess/API/glib/WebKitWebsiteData.cpp
178     UIProcess/API/glib/WebKitWebsiteDataManager.cpp
179     UIProcess/API/glib/WebKitWindowProperties.cpp
180
181     UIProcess/API/gtk/PageClientImpl.cpp
182     UIProcess/API/gtk/WebKitAuthenticationDialog.cpp
183     UIProcess/API/gtk/WebKitColorChooser.cpp
184     UIProcess/API/gtk/WebKitColorChooserRequest.cpp
185     UIProcess/API/gtk/WebKitOptionMenu.cpp
186     UIProcess/API/gtk/WebKitOptionMenuItem.cpp
187     UIProcess/API/gtk/WebKitPopupMenu.cpp
188     UIProcess/API/gtk/WebKitPrintCustomWidget.cpp
189     UIProcess/API/gtk/WebKitPrintOperation.cpp
190     UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp
191     UIProcess/API/gtk/WebKitScriptDialogGtk.cpp
192     UIProcess/API/gtk/WebKitVersion.cpp
193     UIProcess/API/gtk/WebKitVersion.h.in
194     UIProcess/API/gtk/WebKitWebInspector.cpp
195     UIProcess/API/gtk/WebKitWebViewBase.cpp
196     UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp
197     UIProcess/API/gtk/WebKitWebViewGtk.cpp
198
199     UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
200
201     UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp
202
203     UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
204
205     UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.cpp
206
207     UIProcess/linux/MemoryPressureMonitor.cpp
208
209     UIProcess/Plugins/gtk/PluginInfoCache.cpp
210
211     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
212     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
213
214     UIProcess/WebStorage/StorageManager.cpp
215
216     UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
217
218     UIProcess/cairo/BackingStoreCairo.cpp
219
220     UIProcess/glib/RemoteInspectorClient.cpp
221
222     UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp
223     UIProcess/gstreamer/WebPageProxyGStreamer.cpp
224
225     UIProcess/gtk/AcceleratedBackingStore.cpp
226     UIProcess/gtk/AcceleratedBackingStoreWayland.cpp
227     UIProcess/gtk/AcceleratedBackingStoreX11.cpp
228     UIProcess/gtk/DragAndDropHandler.cpp
229     UIProcess/gtk/GestureController.cpp
230     UIProcess/gtk/HardwareAccelerationManager.cpp
231     UIProcess/gtk/InputMethodFilter.cpp
232     UIProcess/gtk/KeyBindingTranslator.cpp
233     UIProcess/gtk/RemoteWebInspectorProxyGtk.cpp
234     UIProcess/gtk/TextCheckerGtk.cpp
235     UIProcess/gtk/WaylandCompositor.cpp
236     UIProcess/gtk/WebColorPickerGtk.cpp
237     UIProcess/gtk/WebContextMenuProxyGtk.cpp
238     UIProcess/gtk/WebInspectorProxyGtk.cpp
239     UIProcess/gtk/WebKitInspectorWindow.cpp
240     UIProcess/gtk/WebPageProxyGtk.cpp
241     UIProcess/gtk/WebPasteboardProxyGtk.cpp
242     UIProcess/gtk/WebPopupMenuProxyGtk.cpp
243     UIProcess/gtk/WebPreferencesGtk.cpp
244     UIProcess/gtk/WebProcessPoolGtk.cpp
245
246     UIProcess/soup/WebCookieManagerProxySoup.cpp
247     UIProcess/soup/WebProcessPoolSoup.cpp
248
249     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
250
251     WebProcess/InjectedBundle/API/glib/WebKitConsoleMessage.cpp
252     WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp
253     WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp
254     WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp
255     WebProcess/InjectedBundle/API/glib/WebKitWebEditor.cpp
256     WebProcess/InjectedBundle/API/glib/WebKitWebExtension.cpp
257     WebProcess/InjectedBundle/API/glib/WebKitWebHitTestResult.cpp
258     WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp
259
260     WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp
261     WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.cpp
262     WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.cpp
263     WebProcess/InjectedBundle/API/gtk/DOM/GObjectNodeFilterCondition.cpp
264     WebProcess/InjectedBundle/API/gtk/DOM/GObjectXPathNSResolver.cpp
265     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp
266     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp
267     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp
268     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp
269     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp
270     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp
271     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp
272     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp
273     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp
274     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp
275     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp
276     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp
277     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp
278     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp
279     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp
280     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp
281     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp
282     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp
283     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp
284     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp
285     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp
286     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp
287     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.cpp
288     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp
289     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp
290     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp
291     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp
292     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp
293     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp
294     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp
295     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp
296     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp
297     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp
298     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp
299     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp
300     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp
301     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp
302     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp
303     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp
304     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp
305     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp
306     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp
307     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp
308     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp
309     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp
310     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp
311     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp
312     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp
313     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp
314     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp
315     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp
316     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp
317     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp
318     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp
319     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp
320     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp
321     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp
322     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp
323     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp
324     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp
325     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp
326     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp
327     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp
328     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp
329     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp
330     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp
331     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp
332     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp
333     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp
334     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp
335     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp
336     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp
337     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp
338     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp
339     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp
340     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp
341     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp
342     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp
343     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp
344     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp
345     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp
346     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp
347     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp
348     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp
349     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp
350     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp
351     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp
352     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp
353     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.cpp
354     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp
355     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp
356     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.cpp
357     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp
358     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp
359     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp
360     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp
361     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp
362     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp
363     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp
364     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp
365     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp
366     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp
367     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.cpp
368     WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp
369
370     WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp
371
372     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
373
374     WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
375     WebProcess/Plugins/Netscape/unix/PluginProxyUnix.cpp
376
377     WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
378
379     WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp
380     WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp
381     WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp
382     WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp
383
384     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
385
386     WebProcess/WebPage/AcceleratedDrawingArea.cpp
387     WebProcess/WebPage/AcceleratedSurface.cpp
388
389     WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
390     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
391     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
392     WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
393     WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp
394
395     WebProcess/WebPage/DrawingAreaImpl.cpp
396
397     WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
398
399     WebProcess/WebPage/gstreamer/WebPageGStreamer.cpp
400
401     WebProcess/WebPage/gtk/AcceleratedSurfaceWayland.cpp
402     WebProcess/WebPage/gtk/AcceleratedSurfaceX11.cpp
403     WebProcess/WebPage/gtk/PrinterListGtk.cpp
404     WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp
405     WebProcess/WebPage/gtk/WebPageGtk.cpp
406     WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp
407
408     WebProcess/gtk/WaylandCompositorDisplay.cpp
409     WebProcess/gtk/WebProcessMainGtk.cpp
410
411     WebProcess/soup/WebKitSoupRequestInputStream.cpp
412     WebProcess/soup/WebProcessSoup.cpp
413 )
414
415 list(APPEND WebKit_MESSAGES_IN_FILES
416     NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.messages.in
417
418     UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.messages.in
419 )
420
421 list(APPEND WebKit_DERIVED_SOURCES
422     ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
423     ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.c
424
425     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
426 )
427
428 if (ENABLE_WAYLAND_TARGET)
429     list(APPEND WebKit_DERIVED_SOURCES
430         ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.c
431     )
432 endif ()
433
434 set(WebKit2GTK_INSTALLED_HEADERS
435     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
436     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitVersion.h
437     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitApplicationInfo.h
438     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitAuthenticationRequest.h
439     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitAutocleanups.h
440     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitAutomationSession.h
441     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitBackForwardList.h
442     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitBackForwardListItem.h
443     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitColorChooserRequest.h
444     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitCredential.h
445     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
446     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
447     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
448     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitCookieManager.h
449     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitDefines.h
450     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitDownload.h
451     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEditingCommands.h
452     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEditorState.h
453     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitError.h
454     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFaviconDatabase.h
455     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFileChooserRequest.h
456     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFindController.h
457     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFormSubmissionRequest.h
458     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitForwardDeclarations.h
459     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
460     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
461     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitInstallMissingMediaPluginsPermissionRequest.h
462     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitJavascriptResult.h
463     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitMimeInfo.h
464     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNavigationAction.h
465     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
466     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNetworkProxySettings.h
467     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNotificationPermissionRequest.h
468     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNotification.h
469     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitOptionMenu.h
470     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitOptionMenuItem.h
471     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPermissionRequest.h
472     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPlugin.h
473     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPolicyDecision.h
474     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPrintCustomWidget.h
475     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPrintOperation.h
476     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitResponsePolicyDecision.h
477     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitScriptDialog.h
478     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitSecurityManager.h
479     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitSecurityOrigin.h
480     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitSettings.h
481     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
482     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
483     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURISchemeRequest.h
484     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserContent.h
485     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserContentManager.h
486     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserMediaPermissionRequest.h
487     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebContext.h
488     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebInspector.h
489     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebResource.h
490     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebView.h
491     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebViewBase.h
492     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebViewSessionState.h
493     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebsiteData.h
494     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebsiteDataManager.h
495     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWindowProperties.h
496     ${WEBKIT_DIR}/UIProcess/API/gtk/webkit2.h
497 )
498
499 set(WebKit2WebExtension_INSTALLED_HEADERS
500     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.h
501     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitFrame.h
502     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h
503     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebEditor.h
504     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h
505     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtensionAutocleanups.h
506     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebHitTestResult.h
507     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h
508     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h
509 )
510
511 set(WebKitDOM_INSTALLED_HEADERS
512     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/webkitdomautocleanups.h
513     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines.h
514     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/webkitdom.h
515     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h
516     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h
517     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h
518     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h
519     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h
520     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h
521     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h
522     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h
523     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h
524     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h
525     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h
526     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h
527     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.h
528     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustomUnstable.h
529     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.h
530     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h
531     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragmentUnstable.h
532     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h
533     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h
534     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentUnstable.h
535     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h
536     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h
537     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h
538     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h
539     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowUnstable.h
540     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h
541     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementUnstable.h
542     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h
543     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
544     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h
545     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h
546     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h
547     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h
548     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h
549     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h
550     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h
551     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h
552     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h
553     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h
554     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h
555     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h
556     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h
557     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h
558     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h
559     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h
560     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElementUnstable.h
561     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h
562     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h
563     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h
564     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h
565     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h
566     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h
567     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h
568     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h
569     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h
570     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h
571     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h
572     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h
573     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h
574     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h
575     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h
576     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h
577     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h
578     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h
579     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h
580     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h
581     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h
582     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h
583     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h
584     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h
585     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h
586     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h
587     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h
588     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h
589     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h
590     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h
591     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h
592     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h
593     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h
594     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h
595     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h
596     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h
597     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h
598     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h
599     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h
600     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h
601     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h
602     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h
603     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h
604     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h
605     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h
606     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h
607     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h
608     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h
609     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h
610     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h
611     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h
612     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h
613     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h
614     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h
615     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRangeUnstable.h
616     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h
617     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h
618     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h
619     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h
620     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h
621     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h
622     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h
623     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h
624     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h
625 )
626
627 set(WebKitDOM_GTKDOC_HEADERS
628     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h
629     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h
630     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h
631     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h
632     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h
633     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h
634     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h
635     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h
636     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h
637     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h
638     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h
639     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h
640     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.h
641     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.h
642     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h
643     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h
644     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h
645     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h
646     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h
647     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h
648     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h
649     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h
650     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h
651     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
652     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h
653     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h
654     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h
655     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h
656     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h
657     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h
658     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h
659     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h
660     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h
661     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h
662     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h
663     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h
664     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h
665     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h
666     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h
667     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h
668     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h
669     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h
670     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h
671     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h
672     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h
673     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h
674     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h
675     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h
676     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h
677     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h
678     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h
679     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h
680     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h
681     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h
682     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h
683     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h
684     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h
685     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h
686     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h
687     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h
688     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h
689     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h
690     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h
691     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h
692     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h
693     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h
694     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h
695     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h
696     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h
697     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h
698     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h
699     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h
700     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h
701     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h
702     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h
703     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h
704     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h
705     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h
706     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h
707     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h
708     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h
709     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h
710     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h
711     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h
712     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h
713     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h
714     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h
715     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h
716     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h
717     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h
718     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h
719     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h
720     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h
721     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h
722     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h
723     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h
724     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h
725     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h
726     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h
727     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h
728     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h
729     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h
730     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h
731 )
732
733 # This is necessary because of a conflict between the GTK+ API WebKitVersion.h and one generated by WebCore.
734 list(INSERT WebKit_INCLUDE_DIRECTORIES 0
735     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
736     "${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}"
737     "${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}"
738     "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
739 )
740
741 list(APPEND WebKit_INCLUDE_DIRECTORIES
742     "${WEBKIT_DIR}/PluginProcess/unix"
743     "${WEBKIT_DIR}/NetworkProcess/CustomProtocols/soup"
744     "${WEBKIT_DIR}/NetworkProcess/Downloads/soup"
745     "${WEBKIT_DIR}/NetworkProcess/gtk"
746     "${WEBKIT_DIR}/NetworkProcess/soup"
747     "${WEBKIT_DIR}/NetworkProcess/unix"
748     "${WEBKIT_DIR}/Platform/IPC/glib"
749     "${WEBKIT_DIR}/Platform/IPC/unix"
750     "${WEBKIT_DIR}/Platform/classifier"
751     "${WEBKIT_DIR}/Shared/API/c/gtk"
752     "${WEBKIT_DIR}/Shared/API/glib"
753     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
754     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
755     "${WEBKIT_DIR}/Shared/Plugins/unix"
756     "${WEBKIT_DIR}/Shared/glib"
757     "${WEBKIT_DIR}/Shared/gtk"
758     "${WEBKIT_DIR}/Shared/linux"
759     "${WEBKIT_DIR}/Shared/soup"
760     "${WEBKIT_DIR}/Shared/unix"
761     "${WEBKIT_DIR}/StorageProcess/unix"
762     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
763     "${WEBKIT_DIR}/UIProcess/API/C/gtk"
764     "${WEBKIT_DIR}/UIProcess/API/glib"
765     "${WEBKIT_DIR}/UIProcess/API/gtk"
766     "${WEBKIT_DIR}/UIProcess/Network/CustomProtocols/soup"
767     "${WEBKIT_DIR}/UIProcess/Plugins/gtk"
768     "${WEBKIT_DIR}/UIProcess/glib"
769     "${WEBKIT_DIR}/UIProcess/gstreamer"
770     "${WEBKIT_DIR}/UIProcess/gtk"
771     "${WEBKIT_DIR}/UIProcess/linux"
772     "${WEBKIT_DIR}/UIProcess/soup"
773     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib"
774     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk"
775     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM"
776     "${WEBKIT_DIR}/WebProcess/Plugins/Netscape/unix"
777     "${WEBKIT_DIR}/WebProcess/Plugins/Netscape/x11"
778     "${WEBKIT_DIR}/WebProcess/gtk"
779     "${WEBKIT_DIR}/WebProcess/soup"
780     "${WEBKIT_DIR}/WebProcess/unix"
781     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/gtk"
782     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/soup"
783     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
784     "${WEBKIT_DIR}/WebProcess/WebPage/atk"
785     "${WEBKIT_DIR}/WebProcess/WebPage/gtk"
786 )
787
788 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
789     ${CAIRO_INCLUDE_DIRS}
790     ${ENCHANT_INCLUDE_DIRS}
791     ${GSTREAMER_INCLUDE_DIRS}
792     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
793     ${HARFBUZZ_INCLUDE_DIRS}
794     ${LIBSOUP_INCLUDE_DIRS}
795 )
796
797 if (USE_LIBNOTIFY)
798 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
799     ${LIBNOTIFY_INCLUDE_DIRS}
800 )
801 endif ()
802
803 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
804 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
805
806 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
807     ${GLIB_INCLUDE_DIRS}
808     ${GTK_INCLUDE_DIRS}
809     ${GTK_UNIX_PRINT_INCLUDE_DIRS}
810 )
811
812 list(APPEND WebProcess_SOURCES
813     WebProcess/EntryPoint/unix/WebProcessMain.cpp
814 )
815
816 list(APPEND NetworkProcess_SOURCES
817     NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
818 )
819
820 list(APPEND StorageProcess_SOURCES
821     StorageProcess/EntryPoint/unix/StorageProcessMain.cpp
822 )
823
824 set(SharedWebKitLibraries
825     ${WebKit_LIBRARIES}
826 )
827
828 list(APPEND WebKit_LIBRARIES
829     WebCorePlatformGTK
830     ${GTK_UNIX_PRINT_LIBRARIES}
831 )
832
833 if (LIBNOTIFY_FOUND)
834 list(APPEND WebKit_LIBRARIES
835     ${LIBNOTIFY_LIBRARIES}
836 )
837 endif ()
838
839 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
840 set(WebKit2GTK_ENUM_GENERATION_HEADERS ${WebKit2GTK_INSTALLED_HEADERS})
841 list(REMOVE_ITEM WebKit2GTK_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h)
842 add_custom_command(
843     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
844            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
845     DEPENDS ${WebKit2GTK_ENUM_GENERATION_HEADERS}
846
847     COMMAND glib-mkenums --template ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEnumTypes.h.template ${WebKit2GTK_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
848
849     COMMAND glib-mkenums --template ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEnumTypes.cpp.template ${WebKit2GTK_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
850     VERBATIM)
851
852 WEBKIT_BUILD_INSPECTOR_GRESOURCES(${DERIVED_SOURCES_WEBKIT2GTK_DIR})
853
854 set(WebKitResources
855     "        <file alias=\"images/missingImage\">missingImage.png</file>\n"
856     "        <file alias=\"images/missingImage@2x\">missingImage@2x.png</file>\n"
857     "        <file alias=\"images/panIcon\">panIcon.png</file>\n"
858     "        <file alias=\"images/textAreaResizeCorner\">textAreaResizeCorner.png</file>\n"
859     "        <file alias=\"images/textAreaResizeCorner@2x\">textAreaResizeCorner@2x.png</file>\n"
860 )
861
862 if (ENABLE_ICONDATABASE)
863     list(APPEND WebKitResources
864         "        <file alias=\"images/urlIcon\">urlIcon.png</file>\n"
865     )
866 endif ()
867
868 if (ENABLE_WEB_AUDIO)
869     list(APPEND WebKitResources
870         "        <file alias=\"audio/Composite\">Composite.wav</file>\n"
871     )
872 endif ()
873
874 file(WRITE ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.xml
875     "<?xml version=1.0 encoding=UTF-8?>\n"
876     "<gresources>\n"
877     "    <gresource prefix=\"/org/webkitgtk/resources\">\n"
878     ${WebKitResources}
879     "    </gresource>\n"
880     "</gresources>\n"
881 )
882
883 add_custom_command(
884     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.c
885     DEPENDS ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.xml
886     COMMAND glib-compile-resources --generate --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/Resources --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/platform/audio/resources --target=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.c ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.xml
887     VERBATIM
888 )
889
890 if (ENABLE_WAYLAND_TARGET)
891     # Wayland protocol extension.
892     add_custom_command(
893         OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.c
894         DEPENDS ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml
895         COMMAND wayland-scanner server-header < ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml > ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandServerProtocol.h
896         COMMAND wayland-scanner client-header < ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml > ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.h
897         COMMAND wayland-scanner code < ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml > ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.c
898     )
899 endif ()
900
901 if (ENABLE_PLUGIN_PROCESS_GTK2)
902     set(PluginProcessGTK2_EXECUTABLE_NAME WebKitPluginProcess2)
903
904     # FIXME: We should figure out a way to avoid compiling files that are common between the plugin
905     # process and WebKit only once instead of recompiling them for the plugin process.
906     list(APPEND PluginProcessGTK2_SOURCES
907         Platform/Logging.cpp
908         Platform/Module.cpp
909
910         Platform/IPC/ArgumentCoders.cpp
911         Platform/IPC/Attachment.cpp
912         Platform/IPC/Connection.cpp
913         Platform/IPC/DataReference.cpp
914         Platform/IPC/Decoder.cpp
915         Platform/IPC/Encoder.cpp
916         Platform/IPC/MessageReceiverMap.cpp
917         Platform/IPC/MessageSender.cpp
918         Platform/IPC/StringReference.cpp
919
920         Platform/IPC/glib/GSocketMonitor.cpp
921         Platform/IPC/unix/AttachmentUnix.cpp
922         Platform/IPC/unix/ConnectionUnix.cpp
923
924         Platform/glib/ModuleGlib.cpp
925
926         Platform/unix/LoggingUnix.cpp
927         Platform/unix/SharedMemoryUnix.cpp
928
929         PluginProcess/PluginControllerProxy.cpp
930         PluginProcess/PluginCreationParameters.cpp
931         PluginProcess/PluginProcess.cpp
932         PluginProcess/WebProcessConnection.cpp
933
934         PluginProcess/EntryPoint/unix/PluginProcessMain.cpp
935
936         PluginProcess/unix/PluginControllerProxyUnix.cpp
937         PluginProcess/unix/PluginProcessMainUnix.cpp
938         PluginProcess/unix/PluginProcessUnix.cpp
939
940         Shared/ActivityAssertion.cpp
941         Shared/BlobDataFileReferenceWithSandboxExtension.cpp
942         Shared/ChildProcess.cpp
943         Shared/ShareableBitmap.cpp
944         Shared/WebCoreArgumentCoders.cpp
945         Shared/WebEvent.cpp
946         Shared/WebKeyboardEvent.cpp
947         Shared/WebKit2Initialize.cpp
948         Shared/WebMouseEvent.cpp
949         Shared/WebPlatformTouchPoint.cpp
950         Shared/WebTouchEvent.cpp
951         Shared/WebWheelEvent.cpp
952
953         Shared/Plugins/NPIdentifierData.cpp
954         Shared/Plugins/NPObjectMessageReceiver.cpp
955         Shared/Plugins/NPObjectProxy.cpp
956         Shared/Plugins/NPRemoteObjectMap.cpp
957         Shared/Plugins/NPVariantData.cpp
958         Shared/Plugins/PluginProcessCreationParameters.cpp
959
960         Shared/Plugins/Netscape/NetscapePluginModule.cpp
961         Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
962
963         Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp
964
965         Shared/cairo/ShareableBitmapCairo.cpp
966
967         Shared/gtk/NativeWebKeyboardEventGtk.cpp
968         Shared/gtk/NativeWebMouseEventGtk.cpp
969         Shared/gtk/NativeWebTouchEventGtk.cpp
970         Shared/gtk/NativeWebWheelEventGtk.cpp
971         Shared/gtk/ProcessExecutablePathGtk.cpp
972         Shared/gtk/WebEventFactory.cpp
973
974         Shared/soup/WebCoreArgumentCodersSoup.cpp
975
976         Shared/unix/ChildProcessMain.cpp
977
978         UIProcess/Launcher/ProcessLauncher.cpp
979
980         UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
981
982         UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
983
984         WebProcess/Plugins/Plugin.cpp
985
986         WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
987         WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
988         WebProcess/Plugins/Netscape/NetscapePlugin.cpp
989         WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
990         WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
991
992         WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
993         WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
994
995         ${DERIVED_SOURCES_WEBKIT_DIR}/PluginControllerProxyMessageReceiver.cpp
996         ${DERIVED_SOURCES_WEBKIT_DIR}/PluginProcessMessageReceiver.cpp
997         ${DERIVED_SOURCES_WEBKIT_DIR}/WebProcessConnectionMessageReceiver.cpp
998         ${DERIVED_SOURCES_WEBKIT_DIR}/NPObjectMessageReceiverMessageReceiver.cpp
999         ${DERIVED_SOURCES_WEBKIT_DIR}/ChildProcessMessageReceiver.cpp
1000     )
1001
1002     add_executable(WebKitPluginProcess2 ${PluginProcessGTK2_SOURCES})
1003     ADD_WEBKIT_PREFIX_HEADER(WebKitPluginProcess2)
1004
1005     # We need ENABLE_PLUGIN_PROCESS for all targets in this directory, but
1006     # we only want GTK_API_VERSION_2 for the plugin process target.
1007     set_property(
1008         TARGET WebKitPluginProcess2
1009         APPEND
1010         PROPERTY COMPILE_DEFINITIONS GTK_API_VERSION_2=1
1011     )
1012     target_include_directories(WebKitPluginProcess2 PRIVATE
1013         ${WebKitCommonIncludeDirectories}
1014     )
1015     target_include_directories(WebKitPluginProcess2 SYSTEM PRIVATE
1016          ${WebKitCommonSystemIncludeDirectories}
1017          ${GTK2_INCLUDE_DIRS}
1018          ${GDK2_INCLUDE_DIRS}
1019     )
1020
1021     set(WebKitPluginProcess2_LIBRARIES
1022         ${SharedWebKitLibraries}
1023         WebCorePlatformGTK2
1024     )
1025     ADD_WHOLE_ARCHIVE_TO_LIBRARIES(WebKitPluginProcess2_LIBRARIES)
1026     target_link_libraries(WebKitPluginProcess2 ${WebKitPluginProcess2_LIBRARIES})
1027
1028     add_dependencies(WebKitPluginProcess2 WebKit)
1029
1030     install(TARGETS WebKitPluginProcess2 DESTINATION "${LIBEXEC_INSTALL_DIR}")
1031
1032     if (COMPILER_IS_GCC_OR_CLANG)
1033         WEBKIT_ADD_TARGET_CXX_FLAGS(WebKitPluginProcess2 -Wno-unused-parameter)
1034     endif ()
1035 endif () # ENABLE_PLUGIN_PROCESS_GTK2
1036
1037 # GTK3 PluginProcess
1038 list(APPEND PluginProcess_SOURCES
1039     PluginProcess/EntryPoint/unix/PluginProcessMain.cpp
1040 )
1041
1042 # Commands for building the built-in injected bundle.
1043 include_directories(
1044     "${WEBKIT_DIR}/Platform"
1045     "${WEBKIT_DIR}/Shared"
1046     "${WEBKIT_DIR}/Shared/API/c"
1047     "${WEBKIT_DIR}/UIProcess/API/C"
1048     "${WEBKIT_DIR}/WebProcess/InjectedBundle"
1049     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/c"
1050     "${DERIVED_SOURCES_DIR}/InjectedBundle"
1051     "${FORWARDING_HEADERS_DIR}"
1052     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
1053 )
1054
1055 add_library(webkit2gtkinjectedbundle MODULE "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/WebKitInjectedBundleMain.cpp")
1056 ADD_WEBKIT_PREFIX_HEADER(webkit2gtkinjectedbundle)
1057 target_link_libraries(webkit2gtkinjectedbundle WebKit)
1058
1059 if (COMPILER_IS_GCC_OR_CLANG)
1060     WEBKIT_ADD_TARGET_CXX_FLAGS(webkit2gtkinjectedbundle -Wno-unused-parameter)
1061 endif ()
1062
1063 # Add ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} to LD_LIBRARY_PATH or DYLD_LIBRARY_PATH
1064 if (APPLE)
1065     set(LOADER_LIBRARY_PATH_VAR "DYLD_LIBRARY_PATH")
1066     set(PREV_LOADER_LIBRARY_PATH "$ENV{DYLD_LIBRARY_PATH}")
1067 else ()
1068     set(LOADER_LIBRARY_PATH_VAR "LD_LIBRARY_PATH")
1069     set(PREV_LOADER_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}")
1070 endif ()
1071
1072 string(COMPARE EQUAL "${PREV_LOADER_LIBRARY_PATH}" "" ld_library_path_does_not_exist)
1073 if (ld_library_path_does_not_exist)
1074     set(INTROSPECTION_ADDITIONAL_LIBRARY_PATH
1075         "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
1076     )
1077 else ()
1078     set(INTROSPECTION_ADDITIONAL_LIBRARY_PATH
1079         "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}:${PREV_LOADER_LIBRARY_PATH}"
1080     )
1081 endif ()
1082
1083 # Add required -L flags from ${CMAKE_SHARED_LINKER_FLAGS} for g-ir-scanner
1084 string(REGEX MATCHALL "-L[^ ]*"
1085     INTROSPECTION_ADDITIONAL_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
1086
1087 add_custom_command(
1088     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
1089     DEPENDS WebKit
1090     DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
1091     COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations LDFLAGS=
1092         ${LOADER_LIBRARY_PATH_VAR}="${INTROSPECTION_ADDITIONAL_LIBRARY_PATH}"
1093         ${INTROSPECTION_SCANNER}
1094         --quiet
1095         --warn-all
1096         --symbol-prefix=webkit
1097         --identifier-prefix=WebKit
1098         --namespace=WebKit2
1099         --nsversion=${WEBKITGTK_API_VERSION}
1100         --include=GObject-2.0
1101         --include=Gtk-3.0
1102         --include=Soup-2.4
1103         --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
1104         --library=webkit2gtk-${WEBKITGTK_API_VERSION}
1105         --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
1106         -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
1107         ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}
1108         --no-libtool
1109         --pkg=gobject-2.0
1110         --pkg=gtk+-3.0
1111         --pkg=libsoup-2.4
1112         --pkg-export=webkit2gtk-${WEBKITGTK_API_VERSION}
1113         --output=${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
1114         --c-include="webkit2/webkit2.h"
1115         -DBUILDING_WEBKIT
1116         -DWEBKIT2_COMPILATION
1117         -I${CMAKE_SOURCE_DIR}/Source
1118         -I${WEBKIT_DIR}
1119         -I${JAVASCRIPTCORE_DIR}
1120         -I${JAVASCRIPTCORE_DIR}/ForwardingHeaders
1121         -I${DERIVED_SOURCES_DIR}
1122         -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
1123         -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
1124         ${WebKit2GTK_INSTALLED_HEADERS}
1125         ${WEBKIT_DIR}/Shared/API/glib/*.cpp
1126         ${WEBKIT_DIR}/UIProcess/API/glib/*.cpp
1127         ${WEBKIT_DIR}/UIProcess/API/gtk/*.cpp
1128 )
1129
1130 add_custom_command(
1131     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
1132     DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
1133     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
1134     COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations
1135         LDFLAGS="${INTROSPECTION_ADDITIONAL_LDFLAGS}"
1136         ${LOADER_LIBRARY_PATH_VAR}="${INTROSPECTION_ADDITIONAL_LIBRARY_PATH}"
1137         ${INTROSPECTION_SCANNER}
1138         --quiet
1139         --warn-all
1140         --symbol-prefix=webkit
1141         --identifier-prefix=WebKit
1142         --namespace=WebKit2WebExtension
1143         --nsversion=${WEBKITGTK_API_VERSION}
1144         --include=GObject-2.0
1145         --include=Gtk-3.0
1146         --include=Soup-2.4
1147         --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
1148         --library=webkit2gtk-${WEBKITGTK_API_VERSION}
1149         --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
1150         ${INTROSPECTION_ADDITIONAL_LIBRARIES}
1151         -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
1152         ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}
1153         --no-libtool
1154         --pkg=gobject-2.0
1155         --pkg=gtk+-3.0
1156         --pkg=libsoup-2.4
1157         --pkg-export=webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}
1158         --output=${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
1159         --c-include="webkit2/webkit-web-extension.h"
1160         -DBUILDING_WEBKIT
1161         -DWEBKIT2_COMPILATION
1162         -I${CMAKE_SOURCE_DIR}/Source
1163         -I${WEBKIT_DIR}
1164         -I${JAVASCRIPTCORE_DIR}
1165         -I${JAVASCRIPTCORE_DIR}/ForwardingHeaders
1166         -I${DERIVED_SOURCES_DIR}
1167         -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
1168         -I${FORWARDING_HEADERS_DIR}
1169         -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
1170         -I${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}
1171         -I${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk
1172         ${WebKitDOM_INSTALLED_HEADERS}
1173         ${WebKit2WebExtension_INSTALLED_HEADERS}
1174         ${WEBKIT_DIR}/Shared/API/glib/WebKitContextMenu.cpp
1175         ${WEBKIT_DIR}/Shared/API/glib/WebKitContextMenuItem.cpp
1176         ${WEBKIT_DIR}/Shared/API/glib/WebKitHitTestResult.cpp
1177         ${WEBKIT_DIR}/Shared/API/glib/WebKitURIRequest.cpp
1178         ${WEBKIT_DIR}/Shared/API/glib/WebKitURIResponse.cpp
1179         ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
1180         ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
1181         ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
1182         ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
1183         ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
1184         ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
1185         ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/*.cpp
1186 )
1187
1188 add_custom_command(
1189     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
1190     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
1191     COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
1192 )
1193
1194 add_custom_command(
1195     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
1196     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
1197     COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
1198 )
1199
1200 ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib)
1201 ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib)
1202
1203 install(TARGETS webkit2gtkinjectedbundle
1204         DESTINATION "${LIB_INSTALL_DIR}/webkit2gtk-${WEBKITGTK_API_VERSION}/injected-bundle"
1205 )
1206 install(FILES "${CMAKE_BINARY_DIR}/Source/WebKit/webkit2gtk-${WEBKITGTK_API_VERSION}.pc"
1207               "${CMAKE_BINARY_DIR}/Source/WebKit/webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}.pc"
1208         DESTINATION "${LIB_INSTALL_DIR}/pkgconfig"
1209 )
1210 install(FILES ${WebKit2GTK_INSTALLED_HEADERS}
1211               ${WebKit2WebExtension_INSTALLED_HEADERS}
1212         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkit2"
1213 )
1214 install(FILES ${WebKitDOM_INSTALLED_HEADERS}
1215         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkitdom"
1216 )
1217
1218 if (ENABLE_INTROSPECTION)
1219     install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
1220                   ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
1221             DESTINATION ${INTROSPECTION_INSTALL_GIRDIR}
1222     )
1223     install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
1224                   ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
1225             DESTINATION ${INTROSPECTION_INSTALL_TYPELIBDIR}
1226     )
1227 endif ()
1228
1229 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkit2gtk.cfg
1230     "[webkit2gtk-${WEBKITGTK_API_VERSION}]\n"
1231     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
1232     "namespace=webkit\n"
1233     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
1234     "       -I${WEBKIT_DIR}/Shared/API/glib\n"
1235     "       -I${WEBKIT_DIR}/UIProcess/API/glib\n"
1236     "       -I${WEBKIT_DIR}/UIProcess/API/gtk\n"
1237     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
1238     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
1239     "doc_dir=${WEBKIT_DIR}/UIProcess/API/gtk/docs\n"
1240     "source_dirs=${WEBKIT_DIR}/Shared/API/glib"
1241     "            ${WEBKIT_DIR}/UIProcess/API/glib\n"
1242     "            ${WEBKIT_DIR}/UIProcess/API/gtk\n"
1243     "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib\n"
1244     "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk\n"
1245     "            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}\n"
1246     "headers=${WebKit2GTK_ENUM_GENERATION_HEADERS} ${WebKit2WebExtension_INSTALLED_HEADERS}\n"
1247     "main_sgml_file=webkit2gtk-docs.sgml\n"
1248 )
1249
1250 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkitdom.cfg
1251     "[webkitdomgtk-${WEBKITGTK_API_VERSION}]\n"
1252     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
1253     "namespace=webkit_dom\n"
1254     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
1255     "       -I${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM\n"
1256     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
1257     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
1258     "doc_dir=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/docs\n"
1259     "source_dirs=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM\n"
1260     "headers=${WebKitDOM_GTKDOC_HEADERS}\n"
1261     "main_sgml_file=webkitdomgtk-docs.sgml\n"
1262 )
1263
1264 add_custom_target(WebKit-forwarding-headers
1265     COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_DIR} --output ${FORWARDING_HEADERS_DIR} --platform gtk --platform soup
1266 )
1267
1268 # These symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
1269 add_custom_command(
1270     OUTPUT ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
1271     DEPENDS ${WEBKIT_DIR}/UIProcess/API/gtk
1272     COMMAND ln -n -s -f ${WEBKIT_DIR}/UIProcess/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
1273 )
1274 add_custom_command(
1275     OUTPUT ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
1276     DEPENDS ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk
1277     COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
1278 )
1279 add_custom_command(
1280     OUTPUT ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkitdom
1281     DEPENDS ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM
1282     COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkitdom
1283 )
1284 add_custom_target(WebKit-fake-api-headers
1285     DEPENDS ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
1286             ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
1287             ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkitdom
1288 )
1289
1290 set(WEBKIT_EXTRA_DEPENDENCIES
1291      WebKit-fake-api-headers
1292      WebKit-forwarding-headers
1293 )