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