[GTK] GObject introspection links to installed libs when using jhbuild
[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/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/cairo/WKIconDatabaseCairo.cpp
81
82     UIProcess/API/C/gtk/WKFullScreenClientGtk.cpp
83     UIProcess/API/C/gtk/WKInspectorClientGtk.cpp
84     UIProcess/API/C/gtk/WKView.cpp
85
86     UIProcess/API/C/soup/WKCookieManagerSoup.cpp
87     UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp
88
89     UIProcess/API/gtk/PageClientImpl.cpp
90     UIProcess/API/gtk/PageClientImpl.h
91     UIProcess/API/gtk/WebKitAuthenticationDialog.cpp
92     UIProcess/API/gtk/WebKitAuthenticationDialog.h
93     UIProcess/API/gtk/WebKitAuthenticationRequest.cpp
94     UIProcess/API/gtk/WebKitAuthenticationRequest.h
95     UIProcess/API/gtk/WebKitBackForwardList.cpp
96     UIProcess/API/gtk/WebKitBackForwardList.h
97     UIProcess/API/gtk/WebKitBackForwardListItem.cpp
98     UIProcess/API/gtk/WebKitBackForwardListItem.h
99     UIProcess/API/gtk/WebKitBackForwardListPrivate.h
100     UIProcess/API/gtk/WebKitCertificateInfo.cpp
101     UIProcess/API/gtk/WebKitCertificateInfo.h
102     UIProcess/API/gtk/WebKitCertificateInfoPrivate.h
103     UIProcess/API/gtk/WebKitContextMenu.cpp
104     UIProcess/API/gtk/WebKitContextMenu.h
105     UIProcess/API/gtk/WebKitContextMenuActions.cpp
106     UIProcess/API/gtk/WebKitContextMenuActions.h
107     UIProcess/API/gtk/WebKitContextMenuActionsPrivate.h
108     UIProcess/API/gtk/WebKitContextMenuClient.cpp
109     UIProcess/API/gtk/WebKitContextMenuClient.h
110     UIProcess/API/gtk/WebKitContextMenuItem.cpp
111     UIProcess/API/gtk/WebKitContextMenuItem.h
112     UIProcess/API/gtk/WebKitContextMenuItemPrivate.h
113     UIProcess/API/gtk/WebKitContextMenuPrivate.h
114     UIProcess/API/gtk/WebKitCookieManager.cpp
115     UIProcess/API/gtk/WebKitCookieManager.h
116     UIProcess/API/gtk/WebKitCookieManagerPrivate.h
117     UIProcess/API/gtk/WebKitCredential.cpp
118     UIProcess/API/gtk/WebKitCredential.h
119     UIProcess/API/gtk/WebKitDefines.h
120     UIProcess/API/gtk/WebKitDownload.cpp
121     UIProcess/API/gtk/WebKitDownload.h
122     UIProcess/API/gtk/WebKitDownloadClient.cpp
123     UIProcess/API/gtk/WebKitDownloadClient.h
124     UIProcess/API/gtk/WebKitDownloadPrivate.h
125     UIProcess/API/gtk/WebKitEditingCommands.h
126     UIProcess/API/gtk/WebKitError.cpp
127     UIProcess/API/gtk/WebKitError.h
128     UIProcess/API/gtk/WebKitFaviconDatabase.cpp
129     UIProcess/API/gtk/WebKitFaviconDatabase.h
130     UIProcess/API/gtk/WebKitFaviconDatabasePrivate.h
131     UIProcess/API/gtk/WebKitFileChooserRequest.cpp
132     UIProcess/API/gtk/WebKitFileChooserRequest.h
133     UIProcess/API/gtk/WebKitFileChooserRequestPrivate.h
134     UIProcess/API/gtk/WebKitFindController.cpp
135     UIProcess/API/gtk/WebKitFindController.h
136     UIProcess/API/gtk/WebKitFormClient.cpp
137     UIProcess/API/gtk/WebKitFormClient.h
138     UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp
139     UIProcess/API/gtk/WebKitFormSubmissionRequest.h
140     UIProcess/API/gtk/WebKitFormSubmissionRequestPrivate.h
141     UIProcess/API/gtk/WebKitForwardDeclarations.h
142     UIProcess/API/gtk/WebKitFullscreenClient.cpp
143     UIProcess/API/gtk/WebKitFullscreenClient.h
144     UIProcess/API/gtk/WebKitGeolocationPermissionRequest.cpp
145     UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
146     UIProcess/API/gtk/WebKitGeolocationPermissionRequestPrivate.h
147     UIProcess/API/gtk/WebKitGeolocationProvider.cpp
148     UIProcess/API/gtk/WebKitGeolocationProvider.h
149     UIProcess/API/gtk/WebKitHitTestResult.cpp
150     UIProcess/API/gtk/WebKitHitTestResult.h
151     UIProcess/API/gtk/WebKitHitTestResultPrivate.h
152     UIProcess/API/gtk/WebKitInjectedBundleClient.cpp
153     UIProcess/API/gtk/WebKitInjectedBundleClient.h
154     UIProcess/API/gtk/WebKitJavascriptResult.cpp
155     UIProcess/API/gtk/WebKitJavascriptResult.h
156     UIProcess/API/gtk/WebKitJavascriptResultPrivate.h
157     UIProcess/API/gtk/WebKitLoaderClient.cpp
158     UIProcess/API/gtk/WebKitLoaderClient.h
159     UIProcess/API/gtk/WebKitMimeInfo.cpp
160     UIProcess/API/gtk/WebKitMimeInfo.h
161     UIProcess/API/gtk/WebKitMimeInfoPrivate.h
162     UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp
163     UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
164     UIProcess/API/gtk/WebKitNavigationPolicyDecisionPrivate.h
165     UIProcess/API/gtk/WebKitPermissionRequest.cpp
166     UIProcess/API/gtk/WebKitPermissionRequest.h
167     UIProcess/API/gtk/WebKitPlugin.cpp
168     UIProcess/API/gtk/WebKitPlugin.h
169     UIProcess/API/gtk/WebKitPluginPrivate.h
170     UIProcess/API/gtk/WebKitPolicyClient.cpp
171     UIProcess/API/gtk/WebKitPolicyClient.h
172     UIProcess/API/gtk/WebKitPolicyDecision.cpp
173     UIProcess/API/gtk/WebKitPolicyDecision.h
174     UIProcess/API/gtk/WebKitPolicyDecisionPrivate.h
175     UIProcess/API/gtk/WebKitPrintOperation.cpp
176     UIProcess/API/gtk/WebKitPrintOperation.h
177     UIProcess/API/gtk/WebKitPrintOperationPrivate.h
178     UIProcess/API/gtk/WebKitPrivate.cpp
179     UIProcess/API/gtk/WebKitPrivate.h
180     UIProcess/API/gtk/WebKitRequestManagerClient.cpp
181     UIProcess/API/gtk/WebKitRequestManagerClient.h
182     UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp
183     UIProcess/API/gtk/WebKitResponsePolicyDecision.h
184     UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h
185     UIProcess/API/gtk/WebKitScriptDialog.cpp
186     UIProcess/API/gtk/WebKitScriptDialog.h
187     UIProcess/API/gtk/WebKitScriptDialogPrivate.h
188     UIProcess/API/gtk/WebKitSecurityManager.cpp
189     UIProcess/API/gtk/WebKitSecurityManager.h
190     UIProcess/API/gtk/WebKitSecurityManagerPrivate.h
191     UIProcess/API/gtk/WebKitSettings.cpp
192     UIProcess/API/gtk/WebKitSettings.h
193     UIProcess/API/gtk/WebKitSettingsPrivate.h
194     UIProcess/API/gtk/WebKitTextChecker.cpp
195     UIProcess/API/gtk/WebKitTextChecker.h
196     UIProcess/API/gtk/WebKitUIClient.cpp
197     UIProcess/API/gtk/WebKitUIClient.h
198     UIProcess/API/gtk/WebKitURIRequest.cpp
199     UIProcess/API/gtk/WebKitURIRequest.h
200     UIProcess/API/gtk/WebKitURIRequestPrivate.h
201     UIProcess/API/gtk/WebKitURIResponse.cpp
202     UIProcess/API/gtk/WebKitURIResponse.h
203     UIProcess/API/gtk/WebKitURIResponsePrivate.h
204     UIProcess/API/gtk/WebKitURISchemeRequest.cpp
205     UIProcess/API/gtk/WebKitURISchemeRequest.h
206     UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h
207     UIProcess/API/gtk/WebKitVersion.cpp
208     UIProcess/API/gtk/WebKitVersion.h.in
209     UIProcess/API/gtk/WebKitWebContext.cpp
210     UIProcess/API/gtk/WebKitWebContext.h
211     UIProcess/API/gtk/WebKitWebContextPrivate.h
212     UIProcess/API/gtk/WebKitWebInspector.cpp
213     UIProcess/API/gtk/WebKitWebInspector.h
214     UIProcess/API/gtk/WebKitWebInspectorPrivate.h
215     UIProcess/API/gtk/WebKitWebResource.cpp
216     UIProcess/API/gtk/WebKitWebResource.h
217     UIProcess/API/gtk/WebKitWebResourcePrivate.h
218     UIProcess/API/gtk/WebKitWebView.cpp
219     UIProcess/API/gtk/WebKitWebView.h
220     UIProcess/API/gtk/WebKitWebViewBase.cpp
221     UIProcess/API/gtk/WebKitWebViewBase.h
222     UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp
223     UIProcess/API/gtk/WebKitWebViewBaseAccessible.h
224     UIProcess/API/gtk/WebKitWebViewBasePrivate.h
225     UIProcess/API/gtk/WebKitWebViewGroup.cpp
226     UIProcess/API/gtk/WebKitWebViewGroup.h
227     UIProcess/API/gtk/WebKitWebViewGroupPrivate.h
228     UIProcess/API/gtk/WebKitWebViewPrivate.h
229     UIProcess/API/gtk/WebKitWindowProperties.cpp
230     UIProcess/API/gtk/WebKitWindowProperties.h
231     UIProcess/API/gtk/WebKitWindowPropertiesPrivate.h
232     UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp
233     UIProcess/API/gtk/WebViewBaseInputMethodFilter.h
234     UIProcess/API/gtk/webkit2.h
235
236     UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp
237
238     UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
239
240     UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
241
242     UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp
243     UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.cpp
244     UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp
245
246     UIProcess/Plugins/gtk/PluginInfoCache.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/Localizations/en.lproj/localizedStrings.js
369     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.html
370     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Base/*.js
371     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Controllers/*.css
372     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Controllers/*.js
373     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/CodeMirror/*
374     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Models/*.js
375     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Protocol/*.js
376     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Views/*.css
377     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Views/*.js
378     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/*.png
379     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/*.svg
380     ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorJSBackendCommands.js
381     ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorWebBackendCommands.js
382 )
383
384 # This is necessary because of a conflict between the GTK+ API WebKitVersion.h and one generated by WebCore.
385 list(INSERT WebKit2_INCLUDE_DIRECTORIES 0
386     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
387     "${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}"
388     "${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}"
389     "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
390 )
391
392 list(APPEND WebKit2_INCLUDE_DIRECTORIES
393     "${WEBCORE_DIR}/platform/cairo"
394     "${WEBCORE_DIR}/platform/gtk"
395     "${WEBCORE_DIR}/platform/graphics/cairo"
396     "${WEBCORE_DIR}/platform/graphics/opentype"
397     "${WEBCORE_DIR}/platform/network/soup"
398     "${WEBCORE_DIR}/platform/text/enchant"
399     "${WEBKIT2_DIR}/Shared/API/c/gtk"
400     "${WEBKIT2_DIR}/Shared/Network/CustomProtocols/soup"
401     "${WEBKIT2_DIR}/Shared/Downloads/soup"
402     "${WEBKIT2_DIR}/Shared/gtk"
403     "${WEBKIT2_DIR}/Shared/soup"
404     "${WEBKIT2_DIR}/NetworkProcess/unix"
405     "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
406     "${WEBKIT2_DIR}/UIProcess/API/C/gtk"
407     "${WEBKIT2_DIR}/UIProcess/API/C/soup"
408     "${WEBKIT2_DIR}/UIProcess/API/cpp/gtk"
409     "${WEBKIT2_DIR}/UIProcess/API/gtk"
410     "${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols/soup"
411     "${WEBKIT2_DIR}/UIProcess/Plugins/gtk"
412     "${WEBKIT2_DIR}/UIProcess/gtk"
413     "${WEBKIT2_DIR}/UIProcess/soup"
414     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk"
415     "${WEBKIT2_DIR}/WebProcess/gtk"
416     "${WEBKIT2_DIR}/WebProcess/soup"
417     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/gtk"
418     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
419     "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
420     "${WEBKIT2_DIR}/WebProcess/WebPage/gtk"
421     "${WTF_DIR}/wtf/gtk/"
422     "${WTF_DIR}/wtf/gobject"
423     ${WTF_DIR}
424     ${CAIRO_INCLUDE_DIRS}
425     ${ENCHANT_INCLUDE_DIRS}
426     ${GEOCLUE_INCLUDE_DIRS}
427     ${HARFBUZZ_INCLUDE_DIRS}
428     ${LIBSOUP_INCLUDE_DIRS}
429 )
430
431 set(WebKit2CommonIncludeDirectories ${WebKit2_INCLUDE_DIRECTORIES})
432
433 list(APPEND WebKit2_INCLUDE_DIRECTORIES
434     ${GLIB_INCLUDE_DIRS}
435     ${GTK_INCLUDE_DIRS}
436     ${GTK_UNIX_PRINT_INCLUDE_DIRS}
437 )
438
439 list(APPEND WebProcess_SOURCES
440     gtk/MainGtk.cpp
441 )
442
443 list(APPEND NetworkProcess_SOURCES
444     unix/NetworkMainUnix.cpp
445 )
446
447 set(SharedWebKit2Libraries
448     ${WebKit2_LIBRARIES}
449 )
450
451 list(APPEND WebKit2_LIBRARIES
452     GObjectDOMBindings
453     WebCorePlatformGTK
454     ${GTK_UNIX_PRINT_LIBRARIES}
455 )
456 ADD_WHOLE_ARCHIVE_TO_LIBRARIES(WebKit2_LIBRARIES)
457
458 set(WebKit2_MARSHAL_LIST ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2marshal.list)
459 add_custom_command(
460     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
461            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.h
462     MAIN_DEPENDENCY ${WebKit2_MARSHAL_LIST}
463
464     COMMAND echo extern \"C\" { > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
465     COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --body >> ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
466     COMMAND echo } >> ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.cpp
467
468     COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --header > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitMarshal.h
469     VERBATIM)
470
471 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
472 set(WebKit2GTK_ENUM_GENERATION_HEADERS ${WebKit2GTK_INSTALLED_HEADERS})
473 list(REMOVE_ITEM WebKit2GTK_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h)
474 add_custom_command(
475     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
476            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
477     DEPENDS ${WebKit2GTK_ENUM_GENERATION_HEADERS}
478
479     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
480
481     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
482     VERBATIM)
483
484 add_custom_command(
485     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
486     DEPENDS ${InspectorFiles}
487             ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py
488     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}
489     VERBATIM
490 )
491
492 add_custom_command(
493     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
494     DEPENDS ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml
495     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
496     VERBATIM
497 )
498
499 add_custom_command(
500     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKit2InspectorGResourceBundle.c
501     DEPENDS ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKit2InspectorGResourceBundle.xml
502             ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html
503     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
504     VERBATIM
505 )
506
507 add_custom_target(webkit2gtk-forwarding-headers
508     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${FORWARDING_HEADERS_DIR} gtk
509     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${FORWARDING_HEADERS_DIR} soup
510
511     # These symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
512     COMMAND ln -n -s -f ${WEBKIT2_DIR}/UIProcess/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
513     COMMAND ln -n -s -f ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
514 )
515
516 set(WEBKIT2_EXTRA_DEPENDENCIES
517      webkit2gtk-forwarding-headers
518 )
519
520 if (ENABLE_PLUGIN_PROCESS)
521     set(PluginProcessGTK2_EXECUTABLE_NAME WebKitPluginProcess2)
522     list(APPEND PluginProcessGTK2_INCLUDE_DIRECTORIES
523         "${WEBKIT2_DIR}/PluginProcess/unix"
524     )
525
526     include_directories(${PluginProcessGTK2_INCLUDE_DIRECTORIES})
527
528     # FIXME: We should figure out a way to avoid compiling files that are common between the plugin
529     # process and WebKit2 only once instead of recompiling them for the plugin process.
530     list(APPEND PluginProcessGTK2_SOURCES
531         Platform/Logging.cpp
532         Platform/Module.cpp
533         Platform/WorkQueue.cpp
534
535         Platform/IPC/ArgumentCoders.cpp
536         Platform/IPC/ArgumentDecoder.cpp
537         Platform/IPC/ArgumentEncoder.cpp
538         Platform/IPC/Attachment.cpp
539         Platform/IPC/Connection.cpp
540         Platform/IPC/DataReference.cpp
541         Platform/IPC/MessageDecoder.cpp
542         Platform/IPC/MessageEncoder.cpp
543         Platform/IPC/MessageReceiverMap.cpp
544         Platform/IPC/MessageSender.cpp
545         Platform/IPC/StringReference.cpp
546
547         Platform/IPC/unix/AttachmentUnix.cpp
548         Platform/IPC/unix/ConnectionUnix.cpp
549
550         Platform/gtk/LoggingGtk.cpp
551         Platform/gtk/ModuleGtk.cpp
552         Platform/gtk/WorkQueueGtk.cpp
553
554         Platform/unix/SharedMemoryUnix.cpp
555
556         PluginProcess/PluginControllerProxy.cpp
557         PluginProcess/PluginCreationParameters.cpp
558         PluginProcess/PluginProcess.cpp
559         PluginProcess/WebProcessConnection.cpp
560
561         PluginProcess/unix/PluginControllerProxyUnix.cpp
562         PluginProcess/unix/PluginProcessMainUnix.cpp
563         PluginProcess/unix/PluginProcessUnix.cpp
564
565         Shared/ActivityAssertion.cpp
566         Shared/ChildProcess.cpp
567         Shared/ChildProcessProxy.cpp
568         Shared/ConnectionStack.cpp
569         Shared/ShareableBitmap.cpp
570         Shared/WebCoreArgumentCoders.cpp
571         Shared/WebEvent.cpp
572         Shared/WebKeyboardEvent.cpp
573         Shared/WebKit2Initialize.cpp
574         Shared/WebMouseEvent.cpp
575         Shared/WebPlatformTouchPoint.cpp
576         Shared/WebTouchEvent.cpp
577         Shared/WebWheelEvent.cpp
578
579         Shared/Plugins/NPIdentifierData.cpp
580         Shared/Plugins/NPObjectMessageReceiver.cpp
581         Shared/Plugins/NPObjectProxy.cpp
582         Shared/Plugins/NPRemoteObjectMap.cpp
583         Shared/Plugins/NPVariantData.cpp
584         Shared/Plugins/PluginProcessCreationParameters.cpp
585
586         Shared/Plugins/Netscape/NetscapePluginModule.cpp
587         Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
588
589         Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
590
591         Shared/cairo/ShareableBitmapCairo.cpp
592
593         Shared/gtk/NativeWebKeyboardEventGtk.cpp
594         Shared/gtk/NativeWebMouseEventGtk.cpp
595         Shared/gtk/NativeWebTouchEventGtk.cpp
596         Shared/gtk/NativeWebWheelEventGtk.cpp
597         Shared/gtk/ProcessExecutablePathGtk.cpp
598         Shared/gtk/WebEventFactory.cpp
599
600         Shared/soup/WebCoreArgumentCodersSoup.cpp
601
602         UIProcess/Launcher/ProcessLauncher.cpp
603
604         UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
605
606         UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
607
608         WebProcess/Plugins/Plugin.cpp
609
610         WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
611         WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
612         WebProcess/Plugins/Netscape/NetscapePlugin.cpp
613         WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
614         WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
615
616         WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
617
618         unix/PluginMainUnix.cpp
619
620         ${DERIVED_SOURCES_WEBKIT2_DIR}/PluginControllerProxyMessageReceiver.cpp
621         ${DERIVED_SOURCES_WEBKIT2_DIR}/PluginProcessMessageReceiver.cpp
622         ${DERIVED_SOURCES_WEBKIT2_DIR}/WebProcessConnectionMessageReceiver.cpp
623
624         ${DERIVED_SOURCES_WEBKIT2_DIR}/NPObjectMessageReceiverMessageReceiver.cpp
625     )
626
627     add_executable(WebKitPluginProcess2 ${PluginProcessGTK2_SOURCES})
628     add_webkit2_prefix_header(WebKitPluginProcess2)
629
630     # We need ENABLE_PLUGIN_PROCESS for all targets in this directory, but
631     # we only want GTK_API_VERSION_2 for the plugin process target.
632     set_property(
633         TARGET WebKitPluginProcess2
634         APPEND
635         PROPERTY COMPILE_DEFINITIONS GTK_API_VERSION_2=1
636     )
637     set_property(
638         TARGET WebKitPluginProcess2
639         APPEND
640         PROPERTY INCLUDE_DIRECTORIES
641             ${WebKit2CommonIncludeDirectories}
642             ${GTK2_INCLUDE_DIRS}
643             ${GDK2_INCLUDE_DIRS}
644     )
645
646     set(WebKitPluginProcess2_LIBRARIES
647         ${SharedWebKit2Libraries}
648         WebCorePlatformGTK2
649     )
650     ADD_WHOLE_ARCHIVE_TO_LIBRARIES(WebKitPluginProcess2_LIBRARIES)
651     target_link_libraries(WebKitPluginProcess2 ${WebKitPluginProcess2_LIBRARIES})
652
653     add_dependencies(WebKitPluginProcess2 WebKit2)
654
655     install(TARGETS WebKitPluginProcess2 DESTINATION "${LIBEXEC_INSTALL_DIR}")
656
657     # GTK3 PluginProcess
658     list(APPEND PluginProcess_SOURCES
659         unix/PluginMainUnix.cpp
660     )
661
662 endif () # ENABLE_PLUGIN_PROCESS
663
664 # Commands for building the built-in injected bundle.
665 include_directories(
666     "${WEBKIT2_DIR}/Platform"
667     "${WEBKIT2_DIR}/Shared"
668     "${WEBKIT2_DIR}/Shared/API/c"
669     "${WEBKIT2_DIR}/UIProcess/API/C"
670     "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
671     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
672     "${DERIVED_SOURCES_DIR}"
673     "${DERIVED_SOURCES_DIR}/InjectedBundle"
674     "${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}"
675     "${FORWARDING_HEADERS_DIR}"
676     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
677 )
678
679 add_library(webkit2gtkinjectedbundle MODULE "${WEBKIT2_DIR}/WebProcess/gtk/WebGtkInjectedBundleMain.cpp")
680 add_dependencies(webkit2gtkinjectedbundle GObjectDOMBindings)
681 add_webkit2_prefix_header(webkit2gtkinjectedbundle)
682
683 add_custom_command(
684     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
685     DEPENDS WebKit2
686     DEPENDS JavaScriptCore-3-gir
687     COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations LDFLAGS=
688         ${INTROSPECTION_SCANNER}
689         --quiet
690         --warn-all
691         --symbol-prefix=webkit
692         --identifier-prefix=WebKit
693         --namespace=WebKit2
694         --nsversion=${WEBKITGTK_API_VERSION}
695         --include=GObject-2.0
696         --include=Gtk-${WEBKITGTK_API_VERSION}
697         --include=Soup-2.4
698         --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
699         --library=webkit2gtk-${WEBKITGTK_API_VERSION}
700         --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
701         -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
702         --no-libtool
703         --pkg=gobject-2.0
704         --pkg=gtk+-${WEBKITGTK_API_VERSION}
705         --pkg=libsoup-2.4
706         --pkg-export=webkit2gtk-${WEBKITGTK_API_VERSION}
707         --output=${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
708         --c-include="webkit2/webkit2.h"
709         -DBUILDING_WEBKIT
710         -DWEBKIT2_COMPILATION
711         -I${CMAKE_SOURCE_DIR}/Source
712         -I${WEBKIT2_DIR}
713         -I${JAVASCRIPTCORE_DIR}/ForwardingHeaders
714         -I${DERIVED_SOURCES_DIR}
715         -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
716         -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
717         ${WebKit2GTK_INSTALLED_HEADERS}
718         ${WEBKIT2_DIR}/UIProcess/API/gtk/*.cpp
719 )
720
721 add_custom_command(
722     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
723     DEPENDS JavaScriptCore-3-gir
724     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
725     COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations LDFLAGS=
726         ${INTROSPECTION_SCANNER}
727         --quiet
728         --warn-all
729         --symbol-prefix=webkit
730         --identifier-prefix=WebKit
731         --namespace=WebKit2WebExtension
732         --nsversion=${WEBKITGTK_API_VERSION}
733         --include=GObject-2.0
734         --include=Gtk-${WEBKITGTK_API_VERSION}
735         --include=Soup-2.4
736         --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
737         --library=webkit2gtk-${WEBKITGTK_API_VERSION}
738         --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
739         -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
740         --no-libtool
741         --pkg=gobject-2.0
742         --pkg=gtk+-${WEBKITGTK_API_VERSION}
743         --pkg=libsoup-2.4
744         --pkg-export=webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}
745         --output=${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
746         --c-include="webkit2/webkit-web-extension.h"
747         -DBUILDING_WEBKIT
748         -DWEBKIT2_COMPILATION
749         -I${CMAKE_SOURCE_DIR}/Source
750         -I${WEBKIT2_DIR}
751         -I${JAVASCRIPTCORE_DIR}/ForwardingHeaders
752         -I${DERIVED_SOURCES_DIR}
753         -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
754         -I${FORWARDING_HEADERS_DIR}
755         -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
756         -I${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}
757         -I${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk
758         ${GObjectDOMBindings_GIR_HEADERS}
759         ${WebKit2WebExtension_INSTALLED_HEADERS}
760         ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
761         ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
762         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/*.cpp
763 )
764
765 add_custom_command(
766     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
767     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
768     COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
769 )
770
771 add_custom_command(
772     OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
773     DEPENDS ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
774     COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
775 )
776
777 ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib)
778 ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib)
779
780 install(TARGETS webkit2gtkinjectedbundle
781         DESTINATION "${LIB_INSTALL_DIR}/webkit2gtk-${WEBKITGTK_API_VERSION}/injected-bundle"
782 )
783 install(FILES "${CMAKE_BINARY_DIR}/Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc"
784               "${CMAKE_BINARY_DIR}/Source/WebKit2/webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}.pc"
785         DESTINATION "${LIB_INSTALL_DIR}/pkgconfig"
786 )
787 install(FILES ${WebKit2GTK_INSTALLED_HEADERS}
788               ${WebKit2WebExtension_INSTALLED_HEADERS}
789         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkit2"
790 )
791 install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
792               ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
793         DESTINATION ${INTROSPECTION_INSTALL_GIRDIR}
794 )
795 install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
796               ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
797         DESTINATION ${INTROSPECTION_INSTALL_TYPELIBDIR}
798 )
799
800 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkit2gtk.cfg
801     "[webkit2gtk]\n"
802     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
803     "namespace=webkit\n"
804     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
805     "       -I${WEBKIT2_DIR}/UIProcess/API/gtk\n"
806     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
807     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
808     "doc_dir=${WEBKIT2_DIR}/UIProcess/API/gtk/docs\n"
809     "source_dirs=${WEBKIT2_DIR}/UIProcess/API/gtk\n"
810     "            ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk\n"
811     "            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}\n"
812     "headers=${WebKit2GTK_ENUM_GENERATION_HEADERS} ${WebKit2WebExtension_INSTALLED_HEADERS}\n"
813 )