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