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