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