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