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