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