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