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