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