REGRESSION(r165704): [GTK] Inspector resources not correctly generated
[WebKit-https.git] / Source / WebKit2 / PlatformGTK.cmake
1 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
2 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR})
3 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WEBKIT2GTK_DIR})
4 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR})
5
6 configure_file(UIProcess/API/gtk/WebKitVersion.h.in ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitVersion.h)
7 configure_file(webkit2gtk.pc.in ${WebKit2_PKGCONFIG_FILE} @ONLY)
8 configure_file(webkit2gtk-web-extension.pc.in ${WebKit2WebExtension_PKGCONFIG_FILE} @ONLY)
9
10 add_definitions(-DWEBKIT2_COMPILATION)
11 add_definitions(-DLIBEXECDIR="${CMAKE_INSTALL_FULL_LIBEXECDIR}")
12 add_definitions(-DPACKAGE_LOCALE_DIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
13 add_definitions(-DLIBDIR="${CMAKE_INSTALL_FULL_LIBDIR}")
14
15 set(WebKit2_USE_PREFIX_HEADER ON)
16
17 list(APPEND WebKit2_SOURCES
18     ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
19     ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2InspectorGResourceBundle.c
20
21     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
22     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
23
24     NetworkProcess/soup/NetworkProcessSoup.cpp
25     NetworkProcess/soup/NetworkResourceLoadSchedulerSoup.cpp
26     NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
27
28     NetworkProcess/unix/NetworkProcessMainUnix.cpp
29
30     Platform/IPC/unix/AttachmentUnix.cpp
31     Platform/IPC/unix/ConnectionUnix.cpp
32
33     Platform/gtk/LoggingGtk.cpp
34     Platform/gtk/ModuleGtk.cpp
35     Platform/gtk/WorkQueueGtk.cpp
36
37     Platform/unix/SharedMemoryUnix.cpp
38
39     PluginProcess/unix/PluginControllerProxyUnix.cpp
40     PluginProcess/unix/PluginProcessMainUnix.cpp
41     PluginProcess/unix/PluginProcessUnix.cpp
42
43     Shared/API/c/cairo/WKImageCairo.cpp
44
45     Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp
46
47     Shared/Downloads/soup/DownloadSoup.cpp
48
49     Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp
50     Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp
51
52     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
53
54     Shared/cairo/ShareableBitmapCairo.cpp
55
56     Shared/gtk/ArgumentCodersGtk.cpp
57     Shared/gtk/LayerTreeContextGtk.cpp
58     Shared/gtk/NativeWebKeyboardEventGtk.cpp
59     Shared/gtk/NativeWebMouseEventGtk.cpp
60     Shared/gtk/NativeWebTouchEventGtk.cpp
61     Shared/gtk/NativeWebWheelEventGtk.cpp
62     Shared/gtk/PrintInfoGtk.cpp
63     Shared/gtk/ProcessExecutablePathGtk.cpp
64     Shared/gtk/WebEventFactory.cpp
65
66     Shared/linux/WebMemorySamplerLinux.cpp
67
68     Shared/linux/SeccompFilters/OpenSyscall.cpp
69     Shared/linux/SeccompFilters/SeccompBroker.cpp
70     Shared/linux/SeccompFilters/SeccompFilters.cpp
71     Shared/linux/SeccompFilters/SigactionSyscall.cpp
72     Shared/linux/SeccompFilters/SigprocmaskSyscall.cpp
73     Shared/linux/SeccompFilters/Syscall.cpp
74     Shared/linux/SeccompFilters/SyscallPolicy.cpp
75
76     Shared/soup/WebCoreArgumentCodersSoup.cpp
77
78     UIProcess/DefaultUndoController.cpp
79     UIProcess/DrawingAreaProxyImpl.cpp
80
81     UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp
82
83     UIProcess/API/C/gtk/WKFullScreenClientGtk.cpp
84     UIProcess/API/C/gtk/WKInspectorClientGtk.cpp
85     UIProcess/API/C/gtk/WKView.cpp
86
87     UIProcess/API/C/soup/WKCookieManagerSoup.cpp
88     UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp
89
90     UIProcess/API/gtk/PageClientImpl.cpp
91     UIProcess/API/gtk/PageClientImpl.h
92     UIProcess/API/gtk/WebKitAuthenticationDialog.cpp
93     UIProcess/API/gtk/WebKitAuthenticationDialog.h
94     UIProcess/API/gtk/WebKitAuthenticationRequest.cpp
95     UIProcess/API/gtk/WebKitAuthenticationRequest.h
96     UIProcess/API/gtk/WebKitBackForwardList.cpp
97     UIProcess/API/gtk/WebKitBackForwardList.h
98     UIProcess/API/gtk/WebKitBackForwardListItem.cpp
99     UIProcess/API/gtk/WebKitBackForwardListItem.h
100     UIProcess/API/gtk/WebKitBackForwardListPrivate.h
101     UIProcess/API/gtk/WebKitCertificateInfo.cpp
102     UIProcess/API/gtk/WebKitCertificateInfo.h
103     UIProcess/API/gtk/WebKitCertificateInfoPrivate.h
104     UIProcess/API/gtk/WebKitContextMenu.cpp
105     UIProcess/API/gtk/WebKitContextMenu.h
106     UIProcess/API/gtk/WebKitContextMenuActions.cpp
107     UIProcess/API/gtk/WebKitContextMenuActions.h
108     UIProcess/API/gtk/WebKitContextMenuActionsPrivate.h
109     UIProcess/API/gtk/WebKitContextMenuClient.cpp
110     UIProcess/API/gtk/WebKitContextMenuClient.h
111     UIProcess/API/gtk/WebKitContextMenuItem.cpp
112     UIProcess/API/gtk/WebKitContextMenuItem.h
113     UIProcess/API/gtk/WebKitContextMenuItemPrivate.h
114     UIProcess/API/gtk/WebKitContextMenuPrivate.h
115     UIProcess/API/gtk/WebKitCookieManager.cpp
116     UIProcess/API/gtk/WebKitCookieManager.h
117     UIProcess/API/gtk/WebKitCookieManagerPrivate.h
118     UIProcess/API/gtk/WebKitCredential.cpp
119     UIProcess/API/gtk/WebKitCredential.h
120     UIProcess/API/gtk/WebKitDefines.h
121     UIProcess/API/gtk/WebKitDownload.cpp
122     UIProcess/API/gtk/WebKitDownload.h
123     UIProcess/API/gtk/WebKitDownloadClient.cpp
124     UIProcess/API/gtk/WebKitDownloadClient.h
125     UIProcess/API/gtk/WebKitDownloadPrivate.h
126     UIProcess/API/gtk/WebKitEditingCommands.h
127     UIProcess/API/gtk/WebKitError.cpp
128     UIProcess/API/gtk/WebKitError.h
129     UIProcess/API/gtk/WebKitFaviconDatabase.cpp
130     UIProcess/API/gtk/WebKitFaviconDatabase.h
131     UIProcess/API/gtk/WebKitFaviconDatabasePrivate.h
132     UIProcess/API/gtk/WebKitFileChooserRequest.cpp
133     UIProcess/API/gtk/WebKitFileChooserRequest.h
134     UIProcess/API/gtk/WebKitFileChooserRequestPrivate.h
135     UIProcess/API/gtk/WebKitFindController.cpp
136     UIProcess/API/gtk/WebKitFindController.h
137     UIProcess/API/gtk/WebKitFormClient.cpp
138     UIProcess/API/gtk/WebKitFormClient.h
139     UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp
140     UIProcess/API/gtk/WebKitFormSubmissionRequest.h
141     UIProcess/API/gtk/WebKitFormSubmissionRequestPrivate.h
142     UIProcess/API/gtk/WebKitForwardDeclarations.h
143     UIProcess/API/gtk/WebKitFullscreenClient.cpp
144     UIProcess/API/gtk/WebKitFullscreenClient.h
145     UIProcess/API/gtk/WebKitGeolocationPermissionRequest.cpp
146     UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
147     UIProcess/API/gtk/WebKitGeolocationPermissionRequestPrivate.h
148     UIProcess/API/gtk/WebKitGeolocationProvider.cpp
149     UIProcess/API/gtk/WebKitGeolocationProvider.h
150     UIProcess/API/gtk/WebKitHitTestResult.cpp
151     UIProcess/API/gtk/WebKitHitTestResult.h
152     UIProcess/API/gtk/WebKitHitTestResultPrivate.h
153     UIProcess/API/gtk/WebKitInjectedBundleClient.cpp
154     UIProcess/API/gtk/WebKitInjectedBundleClient.h
155     UIProcess/API/gtk/WebKitJavascriptResult.cpp
156     UIProcess/API/gtk/WebKitJavascriptResult.h
157     UIProcess/API/gtk/WebKitJavascriptResultPrivate.h
158     UIProcess/API/gtk/WebKitLoaderClient.cpp
159     UIProcess/API/gtk/WebKitLoaderClient.h
160     UIProcess/API/gtk/WebKitMimeInfo.cpp
161     UIProcess/API/gtk/WebKitMimeInfo.h
162     UIProcess/API/gtk/WebKitMimeInfoPrivate.h
163     UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp
164     UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
165     UIProcess/API/gtk/WebKitNavigationPolicyDecisionPrivate.h
166     UIProcess/API/gtk/WebKitPermissionRequest.cpp
167     UIProcess/API/gtk/WebKitPermissionRequest.h
168     UIProcess/API/gtk/WebKitPlugin.cpp
169     UIProcess/API/gtk/WebKitPlugin.h
170     UIProcess/API/gtk/WebKitPluginPrivate.h
171     UIProcess/API/gtk/WebKitPolicyClient.cpp
172     UIProcess/API/gtk/WebKitPolicyClient.h
173     UIProcess/API/gtk/WebKitPolicyDecision.cpp
174     UIProcess/API/gtk/WebKitPolicyDecision.h
175     UIProcess/API/gtk/WebKitPolicyDecisionPrivate.h
176     UIProcess/API/gtk/WebKitPrintOperation.cpp
177     UIProcess/API/gtk/WebKitPrintOperation.h
178     UIProcess/API/gtk/WebKitPrintOperationPrivate.h
179     UIProcess/API/gtk/WebKitPrivate.cpp
180     UIProcess/API/gtk/WebKitPrivate.h
181     UIProcess/API/gtk/WebKitRequestManagerClient.cpp
182     UIProcess/API/gtk/WebKitRequestManagerClient.h
183     UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp
184     UIProcess/API/gtk/WebKitResponsePolicyDecision.h
185     UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h
186     UIProcess/API/gtk/WebKitScriptDialog.cpp
187     UIProcess/API/gtk/WebKitScriptDialog.h
188     UIProcess/API/gtk/WebKitScriptDialogPrivate.h
189     UIProcess/API/gtk/WebKitSecurityManager.cpp
190     UIProcess/API/gtk/WebKitSecurityManager.h
191     UIProcess/API/gtk/WebKitSecurityManagerPrivate.h
192     UIProcess/API/gtk/WebKitSettings.cpp
193     UIProcess/API/gtk/WebKitSettings.h
194     UIProcess/API/gtk/WebKitSettingsPrivate.h
195     UIProcess/API/gtk/WebKitTextChecker.cpp
196     UIProcess/API/gtk/WebKitTextChecker.h
197     UIProcess/API/gtk/WebKitUIClient.cpp
198     UIProcess/API/gtk/WebKitUIClient.h
199     UIProcess/API/gtk/WebKitURIRequest.cpp
200     UIProcess/API/gtk/WebKitURIRequest.h
201     UIProcess/API/gtk/WebKitURIRequestPrivate.h
202     UIProcess/API/gtk/WebKitURIResponse.cpp
203     UIProcess/API/gtk/WebKitURIResponse.h
204     UIProcess/API/gtk/WebKitURIResponsePrivate.h
205     UIProcess/API/gtk/WebKitURISchemeRequest.cpp
206     UIProcess/API/gtk/WebKitURISchemeRequest.h
207     UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h
208     UIProcess/API/gtk/WebKitVersion.cpp
209     UIProcess/API/gtk/WebKitVersion.h.in
210     UIProcess/API/gtk/WebKitWebContext.cpp
211     UIProcess/API/gtk/WebKitWebContext.h
212     UIProcess/API/gtk/WebKitWebContextPrivate.h
213     UIProcess/API/gtk/WebKitWebInspector.cpp
214     UIProcess/API/gtk/WebKitWebInspector.h
215     UIProcess/API/gtk/WebKitWebInspectorPrivate.h
216     UIProcess/API/gtk/WebKitWebResource.cpp
217     UIProcess/API/gtk/WebKitWebResource.h
218     UIProcess/API/gtk/WebKitWebResourcePrivate.h
219     UIProcess/API/gtk/WebKitWebView.cpp
220     UIProcess/API/gtk/WebKitWebView.h
221     UIProcess/API/gtk/WebKitWebViewBase.cpp
222     UIProcess/API/gtk/WebKitWebViewBase.h
223     UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp
224     UIProcess/API/gtk/WebKitWebViewBaseAccessible.h
225     UIProcess/API/gtk/WebKitWebViewBasePrivate.h
226     UIProcess/API/gtk/WebKitWebViewGroup.cpp
227     UIProcess/API/gtk/WebKitWebViewGroup.h
228     UIProcess/API/gtk/WebKitWebViewGroupPrivate.h
229     UIProcess/API/gtk/WebKitWebViewPrivate.h
230     UIProcess/API/gtk/WebKitWindowProperties.cpp
231     UIProcess/API/gtk/WebKitWindowProperties.h
232     UIProcess/API/gtk/WebKitWindowPropertiesPrivate.h
233     UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp
234     UIProcess/API/gtk/WebViewBaseInputMethodFilter.h
235     UIProcess/API/gtk/webkit2.h
236
237     UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp
238
239     UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
240
241     UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
242
243     UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp
244     UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.cpp
245     UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp
246
247     UIProcess/Plugins/gtk/PluginInfoCache.cpp
248
249     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
250     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
251
252     UIProcess/Storage/StorageManager.cpp
253
254     UIProcess/cairo/BackingStoreCairo.cpp
255
256     UIProcess/gtk/ExperimentalFeatures.cpp
257     UIProcess/gtk/TextCheckerGtk.cpp
258     UIProcess/gtk/WebContextGtk.cpp
259     UIProcess/gtk/WebContextMenuProxyGtk.cpp
260     UIProcess/gtk/WebFullScreenClientGtk.cpp
261     UIProcess/gtk/WebInspectorClientGtk.cpp
262     UIProcess/gtk/WebInspectorProxyGtk.cpp
263     UIProcess/gtk/WebPageProxyGtk.cpp
264     UIProcess/gtk/WebPopupMenuProxyGtk.cpp
265     UIProcess/gtk/WebPreferencesGtk.cpp
266     UIProcess/gtk/WebProcessProxyGtk.cpp
267
268     UIProcess/Network/soup/NetworkProcessProxySoup.cpp
269     UIProcess/soup/WebContextSoup.cpp
270     UIProcess/soup/WebCookieManagerProxySoup.cpp
271
272     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
273     WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
274
275     WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp
276     WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp
277     WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp
278     WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp
279
280     WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp
281
282     WebProcess/Plugins/Netscape/unix/PluginProxyUnix.cpp
283
284     WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
285
286     WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp
287     WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp
288     WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp
289     WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp
290     WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp
291
292     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
293
294     WebProcess/WebPage/DrawingAreaImpl.cpp
295
296     WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
297
298     WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
299     WebProcess/WebPage/gtk/PrinterListGtk.cpp
300     WebProcess/WebPage/gtk/WebInspectorGtk.cpp
301     WebProcess/WebPage/gtk/WebPageGtk.cpp
302     WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp
303
304     WebProcess/gtk/WebGtkExtensionManager.cpp
305     WebProcess/gtk/WebGtkInjectedBundleMain.cpp
306     WebProcess/gtk/WebProcessMainGtk.cpp
307
308     WebProcess/soup/WebKitSoupRequestGeneric.cpp
309     WebProcess/soup/WebKitSoupRequestInputStream.cpp
310     WebProcess/soup/WebProcessSoup.cpp
311 )
312
313 set(WebKit2GTK_INSTALLED_HEADERS
314     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
315     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitVersion.h
316     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitAuthenticationRequest.h
317     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitBackForwardList.h
318     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitBackForwardListItem.h
319     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitCertificateInfo.h
320     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitCredential.h
321     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
322     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
323     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
324     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitCookieManager.h
325     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitDefines.h
326     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitDownload.h
327     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEditingCommands.h
328     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitError.h
329     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFaviconDatabase.h
330     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFileChooserRequest.h
331     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFindController.h
332     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFormSubmissionRequest.h
333     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitForwardDeclarations.h
334     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
335     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
336     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitJavascriptResult.h
337     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitMimeInfo.h
338     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
339     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPermissionRequest.h
340     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPlugin.h
341     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPolicyDecision.h
342     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPrintOperation.h
343     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitResponsePolicyDecision.h
344     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitScriptDialog.h
345     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitSecurityManager.h
346     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitSettings.h
347     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
348     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
349     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURISchemeRequest.h
350     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebContext.h
351     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebInspector.h
352     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebResource.h
353     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebView.h
354     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebViewBase.h
355     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebViewGroup.h
356     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWindowProperties.h
357     ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2.h
358 )
359
360 set(WebKit2WebExtension_INSTALLED_HEADERS
361     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitFrame.h
362     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h
363     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h
364     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h
365     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h
366 )
367
368 file(GLOB InspectorFiles
369     ${CMAKE_SOURCE_DIR}/Source/Localizations/en.lproj/localizedStrings.js
370     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.html
371     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Base/*.js
372     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Controllers/*.css
373     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Controllers/*.js
374     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/CodeMirror/*
375     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Models/*.js
376     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Protocol/*.js
377     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Views/*.css
378     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Views/*.js
379     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/*.png
380     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/*.svg
381     ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorJSBackendCommands.js
382     ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorWebBackendCommands.js
383 )
384
385 # This is necessary because of a conflict between the GTK+ API WebKitVersion.h and one generated by WebCore.
386 list(INSERT WebKit2_INCLUDE_DIRECTORIES 0
387     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
388     "${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}"
389     "${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}"
390     "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
391 )
392
393 list(APPEND WebKit2_INCLUDE_DIRECTORIES
394     "${WEBCORE_DIR}/platform/cairo"
395     "${WEBCORE_DIR}/platform/gtk"
396     "${WEBCORE_DIR}/platform/graphics/cairo"
397     "${WEBCORE_DIR}/platform/graphics/opentype"
398     "${WEBCORE_DIR}/platform/network/soup"
399     "${WEBCORE_DIR}/platform/text/enchant"
400     "${WEBKIT2_DIR}/Shared/API/c/gtk"
401     "${WEBKIT2_DIR}/Shared/Network/CustomProtocols/soup"
402     "${WEBKIT2_DIR}/Shared/Downloads/soup"
403     "${WEBKIT2_DIR}/Shared/gtk"
404     "${WEBKIT2_DIR}/Shared/soup"
405     "${WEBKIT2_DIR}/NetworkProcess/unix"
406     "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
407     "${WEBKIT2_DIR}/UIProcess/API/C/gtk"
408     "${WEBKIT2_DIR}/UIProcess/API/C/soup"
409     "${WEBKIT2_DIR}/UIProcess/API/cpp/gtk"
410     "${WEBKIT2_DIR}/UIProcess/API/gtk"
411     "${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols/soup"
412     "${WEBKIT2_DIR}/UIProcess/Plugins/gtk"
413     "${WEBKIT2_DIR}/UIProcess/gtk"
414     "${WEBKIT2_DIR}/UIProcess/soup"
415     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk"
416     "${WEBKIT2_DIR}/WebProcess/gtk"
417     "${WEBKIT2_DIR}/WebProcess/soup"
418     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/gtk"
419     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
420     "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
421     "${WEBKIT2_DIR}/WebProcess/WebPage/gtk"
422     "${WTF_DIR}/wtf/gtk/"
423     "${WTF_DIR}/wtf/gobject"
424     ${WTF_DIR}
425     ${CAIRO_INCLUDE_DIRS}
426     ${ENCHANT_INCLUDE_DIRS}
427     ${GEOCLUE_INCLUDE_DIRS}
428     ${HARFBUZZ_INCLUDE_DIRS}
429     ${LIBSOUP_INCLUDE_DIRS}
430 )
431
432 set(WebKit2CommonIncludeDirectories ${WebKit2_INCLUDE_DIRECTORIES})
433
434 list(APPEND WebKit2_INCLUDE_DIRECTORIES
435     ${GLIB_INCLUDE_DIRS}
436     ${GTK_INCLUDE_DIRS}
437     ${GTK_UNIX_PRINT_INCLUDE_DIRS}
438 )
439
440 list(APPEND WebProcess_SOURCES
441     gtk/MainGtk.cpp
442 )
443
444 list(APPEND NetworkProcess_SOURCES
445     unix/NetworkMainUnix.cpp
446 )
447
448 set(SharedWebKit2Libraries
449     ${WebKit2_LIBRARIES}
450 )
451
452 list(APPEND WebKit2_LIBRARIES
453     GObjectDOMBindings
454     WebCorePlatformGTK
455     ${GTK_UNIX_PRINT_LIBRARIES}
456 )
457 ADD_WHOLE_ARCHIVE_TO_LIBRARIES(WebKit2_LIBRARIES)
458
459 set(WebKit2_MARSHAL_LIST ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2marshal.list)
460 add_custom_command(
461     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
462            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.h
463     MAIN_DEPENDENCY ${WebKit2_MARSHAL_LIST}
464
465     COMMAND echo extern \"C\" { > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
466     COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --body >> ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
467     COMMAND echo } >> ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
468
469     COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --header > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.h
470     VERBATIM)
471
472 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
473 set(WebKit2GTK_ENUM_GENERATION_HEADERS ${WebKit2GTK_INSTALLED_HEADERS})
474 list(REMOVE_ITEM WebKit2GTK_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h)
475 add_custom_command(
476     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
477            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
478     DEPENDS ${WebKit2GTK_ENUM_GENERATION_HEADERS}
479
480     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
481
482     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
483     VERBATIM)
484
485 add_custom_command(
486     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
487     DEPENDS ${InspectorFiles}
488             ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py
489     COMMAND ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py --output=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}
490     VERBATIM
491 )
492
493 add_custom_command(
494     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
495     DEPENDS ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
496     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
497     VERBATIM
498 )
499
500 add_custom_command(
501     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2InspectorGResourceBundle.c
502     DEPENDS ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
503             ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html
504     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
505     VERBATIM
506 )
507
508 add_custom_target(webkit2gtk-forwarding-headers
509     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${FORWARDING_HEADERS_DIR} gtk
510     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${FORWARDING_HEADERS_DIR} soup
511
512     # These symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
513     COMMAND ln -n -s -f ${WEBKIT2_DIR}/UIProcess/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
514     COMMAND ln -n -s -f ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
515 )
516
517 set(WEBKIT2_EXTRA_DEPENDENCIES
518      webkit2gtk-forwarding-headers
519 )
520
521 if (ENABLE_PLUGIN_PROCESS)
522     set(PluginProcessGTK2_EXECUTABLE_NAME WebKitPluginProcess2)
523     list(APPEND PluginProcessGTK2_INCLUDE_DIRECTORIES
524         "${WEBKIT2_DIR}/PluginProcess/unix"
525     )
526
527     include_directories(${PluginProcessGTK2_INCLUDE_DIRECTORIES})
528
529     # FIXME: We should figure out a way to avoid compiling files that are common between the plugin
530     # process and WebKit2 only once instead of recompiling them for the plugin process.
531     list(APPEND PluginProcessGTK2_SOURCES
532         Platform/Logging.cpp
533         Platform/Module.cpp
534         Platform/WorkQueue.cpp
535
536         Platform/IPC/ArgumentCoders.cpp
537         Platform/IPC/ArgumentDecoder.cpp
538         Platform/IPC/ArgumentEncoder.cpp
539         Platform/IPC/Attachment.cpp
540         Platform/IPC/Connection.cpp
541         Platform/IPC/DataReference.cpp
542         Platform/IPC/MessageDecoder.cpp
543         Platform/IPC/MessageEncoder.cpp
544         Platform/IPC/MessageReceiverMap.cpp
545         Platform/IPC/MessageSender.cpp
546         Platform/IPC/StringReference.cpp
547
548         Platform/IPC/unix/AttachmentUnix.cpp
549         Platform/IPC/unix/ConnectionUnix.cpp
550
551         Platform/gtk/LoggingGtk.cpp
552         Platform/gtk/ModuleGtk.cpp
553         Platform/gtk/WorkQueueGtk.cpp
554
555         Platform/unix/SharedMemoryUnix.cpp
556
557         PluginProcess/PluginControllerProxy.cpp
558         PluginProcess/PluginCreationParameters.cpp
559         PluginProcess/PluginProcess.cpp
560         PluginProcess/WebProcessConnection.cpp
561
562         PluginProcess/unix/PluginControllerProxyUnix.cpp
563         PluginProcess/unix/PluginProcessMainUnix.cpp
564         PluginProcess/unix/PluginProcessUnix.cpp
565
566         Shared/ActivityAssertion.cpp
567         Shared/ChildProcess.cpp
568         Shared/ChildProcessProxy.cpp
569         Shared/ConnectionStack.cpp
570         Shared/ShareableBitmap.cpp
571         Shared/WebCoreArgumentCoders.cpp
572         Shared/WebEvent.cpp
573         Shared/WebKeyboardEvent.cpp
574         Shared/WebKit2Initialize.cpp
575         Shared/WebMouseEvent.cpp
576         Shared/WebPlatformTouchPoint.cpp
577         Shared/WebTouchEvent.cpp
578         Shared/WebWheelEvent.cpp
579
580         Shared/Plugins/NPIdentifierData.cpp
581         Shared/Plugins/NPObjectMessageReceiver.cpp
582         Shared/Plugins/NPObjectProxy.cpp
583         Shared/Plugins/NPRemoteObjectMap.cpp
584         Shared/Plugins/NPVariantData.cpp
585         Shared/Plugins/PluginProcessCreationParameters.cpp
586
587         Shared/Plugins/Netscape/NetscapePluginModule.cpp
588         Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
589
590         Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
591
592         Shared/cairo/ShareableBitmapCairo.cpp
593
594         Shared/gtk/NativeWebKeyboardEventGtk.cpp
595         Shared/gtk/NativeWebMouseEventGtk.cpp
596         Shared/gtk/NativeWebTouchEventGtk.cpp
597         Shared/gtk/NativeWebWheelEventGtk.cpp
598         Shared/gtk/ProcessExecutablePathGtk.cpp
599         Shared/gtk/WebEventFactory.cpp
600
601         Shared/soup/WebCoreArgumentCodersSoup.cpp
602
603         UIProcess/Launcher/ProcessLauncher.cpp
604
605         UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
606
607         UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
608
609         WebProcess/Plugins/Plugin.cpp
610
611         WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
612         WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
613         WebProcess/Plugins/Netscape/NetscapePlugin.cpp
614         WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
615         WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
616
617         WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
618
619         unix/PluginMainUnix.cpp
620
621         ${DERIVED_SOURCES_WEBKIT2_DIR}/PluginControllerProxyMessageReceiver.cpp
622         ${DERIVED_SOURCES_WEBKIT2_DIR}/PluginProcessMessageReceiver.cpp
623         ${DERIVED_SOURCES_WEBKIT2_DIR}/WebProcessConnectionMessageReceiver.cpp
624
625         ${DERIVED_SOURCES_WEBKIT2_DIR}/NPObjectMessageReceiverMessageReceiver.cpp
626     )
627
628     add_executable(WebKitPluginProcess2 ${PluginProcessGTK2_SOURCES})
629     add_webkit2_prefix_header(WebKitPluginProcess2)
630
631     # We need ENABLE_PLUGIN_PROCESS for all targets in this directory, but
632     # we only want GTK_API_VERSION_2 for the plugin process target.
633     set_property(
634         TARGET WebKitPluginProcess2
635         APPEND
636         PROPERTY COMPILE_DEFINITIONS GTK_API_VERSION_2=1
637     )
638     set_property(
639         TARGET WebKitPluginProcess2
640         APPEND
641         PROPERTY INCLUDE_DIRECTORIES
642             ${WebKit2CommonIncludeDirectories}
643             ${GTK2_INCLUDE_DIRS}
644             ${GDK2_INCLUDE_DIRS}
645     )
646
647     set(WebKitPluginProcess2_LIBRARIES
648         ${SharedWebKit2Libraries}
649         WebCorePlatformGTK2
650     )
651     ADD_WHOLE_ARCHIVE_TO_LIBRARIES(WebKitPluginProcess2_LIBRARIES)
652     target_link_libraries(WebKitPluginProcess2 ${WebKitPluginProcess2_LIBRARIES})
653
654     add_dependencies(WebKitPluginProcess2 WebKit2)
655
656     install(TARGETS WebKitPluginProcess2 DESTINATION "${LIBEXEC_INSTALL_DIR}")
657
658     # GTK3 PluginProcess
659     list(APPEND PluginProcess_SOURCES
660         unix/PluginMainUnix.cpp
661     )
662
663 endif () # ENABLE_PLUGIN_PROCESS
664
665 # Commands for building the built-in injected bundle.
666 include_directories(
667     "${WEBKIT2_DIR}/Platform"
668     "${WEBKIT2_DIR}/Shared"
669     "${WEBKIT2_DIR}/Shared/API/c"
670     "${WEBKIT2_DIR}/UIProcess/API/C"
671     "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
672     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
673     "${DERIVED_SOURCES_DIR}"
674     "${DERIVED_SOURCES_DIR}/InjectedBundle"
675     "${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}"
676     "${FORWARDING_HEADERS_DIR}"
677     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
678 )
679
680 add_library(webkit2gtkinjectedbundle MODULE "${WEBKIT2_DIR}/WebProcess/gtk/WebGtkInjectedBundleMain.cpp")
681 add_dependencies(webkit2gtkinjectedbundle GObjectDOMBindings)
682 add_webkit2_prefix_header(webkit2gtkinjectedbundle)
683
684 add_custom_command(
685     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
686     DEPENDS WebKit2
687     DEPENDS JavaScriptCore-3-gir
688     COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations
689         ${INTROSPECTION_SCANNER}
690         --quiet
691         --warn-all
692         --symbol-prefix=webkit
693         --identifier-prefix=WebKit
694         --namespace=WebKit2
695         --nsversion=${WEBKITGTK_API_VERSION}
696         --include=GObject-2.0
697         --include=Gtk-${WEBKITGTK_API_VERSION}
698         --include=Soup-2.4
699         --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
700         --library=webkit2gtk-${WEBKITGTK_API_VERSION}
701         --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
702         -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
703         --no-libtool
704         --pkg=gobject-2.0
705         --pkg=gtk+-${WEBKITGTK_API_VERSION}
706         --pkg=libsoup-2.4
707         --pkg-export=webkit2gtk-${WEBKITGTK_API_VERSION}
708         --output=${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
709         --c-include="webkit2/webkit2.h"
710         -DBUILDING_WEBKIT
711         -DWEBKIT2_COMPILATION
712         -I${CMAKE_SOURCE_DIR}/Source
713         -I${WEBKIT2_DIR}
714         -I${JAVASCRIPTCORE_DIR}/ForwardingHeaders
715         -I${DERIVED_SOURCES_DIR}
716         -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
717         -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
718         ${WebKit2GTK_INSTALLED_HEADERS}
719         ${WEBKIT2_DIR}/UIProcess/API/gtk/*.cpp
720 )
721
722 add_custom_command(
723     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
724     DEPENDS JavaScriptCore-3-gir
725     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
726     COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations
727         ${INTROSPECTION_SCANNER}
728         --quiet
729         --warn-all
730         --symbol-prefix=webkit
731         --identifier-prefix=WebKit
732         --namespace=WebKit2WebExtension
733         --nsversion=${WEBKITGTK_API_VERSION}
734         --include=GObject-2.0
735         --include=Gtk-${WEBKITGTK_API_VERSION}
736         --include=Soup-2.4
737         --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
738         --library=webkit2gtk-${WEBKITGTK_API_VERSION}
739         --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
740         -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
741         --no-libtool
742         --pkg=gobject-2.0
743         --pkg=gtk+-${WEBKITGTK_API_VERSION}
744         --pkg=libsoup-2.4
745         --pkg-export=webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}
746         --output=${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
747         --c-include="webkit2/webkit-web-extension.h"
748         -DBUILDING_WEBKIT
749         -DWEBKIT2_COMPILATION
750         -I${CMAKE_SOURCE_DIR}/Source
751         -I${WEBKIT2_DIR}
752         -I${JAVASCRIPTCORE_DIR}/ForwardingHeaders
753         -I${DERIVED_SOURCES_DIR}
754         -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
755         -I${FORWARDING_HEADERS_DIR}
756         -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
757         -I${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}
758         -I${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk
759         ${GObjectDOMBindings_GIR_HEADERS}
760         ${WebKit2WebExtension_INSTALLED_HEADERS}
761         ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
762         ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
763         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/*.cpp
764 )
765
766 add_custom_command(
767     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
768     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
769     COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
770 )
771
772 add_custom_command(
773     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
774     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
775     COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
776 )
777
778 ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib)
779 ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib)
780
781 install(TARGETS webkit2gtkinjectedbundle
782         DESTINATION "${LIB_INSTALL_DIR}/webkit2gtk-${WEBKITGTK_API_VERSION}/injected-bundle"
783 )
784 install(FILES "${CMAKE_BINARY_DIR}/Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc"
785               "${CMAKE_BINARY_DIR}/Source/WebKit2/webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}.pc"
786         DESTINATION "${LIB_INSTALL_DIR}/pkgconfig"
787 )
788 install(FILES ${WebKit2GTK_INSTALLED_HEADERS}
789               ${WebKit2WebExtension_INSTALLED_HEADERS}
790         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkit2"
791 )
792 install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
793               ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
794         DESTINATION ${INTROSPECTION_INSTALL_GIRDIR}
795 )
796 install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
797               ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
798         DESTINATION ${INTROSPECTION_INSTALL_TYPELIBDIR}
799 )
800
801 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkit2gtk.cfg
802     "[webkit2gtk]\n"
803     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
804     "namespace=webkit\n"
805     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
806     "       -I${WEBKIT2_DIR}/UIProcess/API/gtk\n"
807     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
808     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
809     "doc_dir=${WEBKIT2_DIR}/UIProcess/API/gtk/docs\n"
810     "source_dirs=${WEBKIT2_DIR}/UIProcess/API/gtk\n"
811     "            ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk\n"
812     "            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}\n"
813     "headers=${WebKit2GTK_ENUM_GENERATION_HEADERS} ${WebKit2WebExtension_INSTALLED_HEADERS}\n"
814 )