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