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