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