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