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