Make LegacyCustomProtocolManager optional for network process
[WebKit-https.git] / Source / WebKit / PlatformWPE.cmake
1 include(InspectorGResources.cmake)
2
3 set(WebKit_OUTPUT_NAME WPEWebKit)
4 set(WebKit_WebProcess_OUTPUT_NAME WPEWebProcess)
5 set(WebKit_NetworkProcess_OUTPUT_NAME WPENetworkProcess)
6 set(WebKit_StorageProcess_OUTPUT_NAME WPEStorageProcess)
7
8 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WPE_API_DIR})
9 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_DIR})
10 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_EXTENSION_DIR})
11
12 configure_file(wpe/wpe-webkit.pc.in ${CMAKE_BINARY_DIR}/wpe-webkit.pc @ONLY)
13
14 add_definitions(-DWEBKIT2_COMPILATION)
15
16 add_definitions(-DLIBEXECDIR="${LIBEXEC_INSTALL_DIR}")
17 add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
18
19 # Temporary workaround to allow the build to succeed.
20 file(REMOVE "${FORWARDING_HEADERS_DIR}/WebCore/Settings.h")
21
22 set(WebKit_USE_PREFIX_HEADER ON)
23
24 add_custom_target(webkitwpe-forwarding-headers
25     COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_DIR} --output ${FORWARDING_HEADERS_DIR} --platform wpe --platform soup
26 )
27
28  # These symbolic link allows includes like #include <wpe/WebkitWebView.h> which simulates installed headers.
29 add_custom_command(
30     OUTPUT ${FORWARDING_HEADERS_WPE_DIR}/wpe
31     DEPENDS ${WEBKIT_DIR}/UIProcess/API/wpe
32     COMMAND ln -n -s -f ${WEBKIT_DIR}/UIProcess/API/wpe ${FORWARDING_HEADERS_WPE_DIR}/wpe
33 )
34
35 add_custom_command(
36     OUTPUT ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
37     DEPENDS ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe
38     COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
39 )
40
41 add_custom_target(webkitwpe-fake-api-headers
42     DEPENDS ${FORWARDING_HEADERS_WPE_DIR}/wpe
43             ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
44 )
45
46 set(WEBKIT_EXTRA_DEPENDENCIES
47     webkitwpe-fake-api-headers
48     webkitwpe-forwarding-headers
49 )
50
51 list(APPEND WebProcess_SOURCES
52     WebProcess/EntryPoint/unix/WebProcessMain.cpp
53 )
54
55 list(APPEND NetworkProcess_SOURCES
56     NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
57 )
58
59 list(APPEND StorageProcess_SOURCES
60     StorageProcess/EntryPoint/unix/StorageProcessMain.cpp
61 )
62
63 list(APPEND WebKit_SOURCES
64     NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.cpp
65
66     NetworkProcess/CustomProtocols/soup/LegacyCustomProtocolManagerSoup.cpp
67
68     NetworkProcess/cache/NetworkCacheCodersSoup.cpp
69     NetworkProcess/cache/NetworkCacheDataSoup.cpp
70     NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp
71
72     NetworkProcess/soup/NetworkDataTaskSoup.cpp
73     NetworkProcess/soup/NetworkProcessMainSoup.cpp
74     NetworkProcess/soup/NetworkProcessSoup.cpp
75     NetworkProcess/soup/NetworkSessionSoup.cpp
76     NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
77
78     Platform/IPC/glib/GSocketMonitor.cpp
79
80     Platform/IPC/unix/AttachmentUnix.cpp
81     Platform/IPC/unix/ConnectionUnix.cpp
82
83     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
84
85     Platform/glib/ModuleGlib.cpp
86
87     Platform/unix/LoggingUnix.cpp
88     Platform/unix/SharedMemoryUnix.cpp
89
90     PluginProcess/unix/PluginControllerProxyUnix.cpp
91     PluginProcess/unix/PluginProcessMainUnix.cpp
92     PluginProcess/unix/PluginProcessUnix.cpp
93
94     Shared/API/c/cairo/WKImageCairo.cpp
95
96     Shared/API/glib/WebKitContextMenu.cpp
97     Shared/API/glib/WebKitContextMenuActions.cpp
98     Shared/API/glib/WebKitContextMenuItem.cpp
99     Shared/API/glib/WebKitHitTestResult.cpp
100     Shared/API/glib/WebKitURIRequest.cpp
101     Shared/API/glib/WebKitURIResponse.cpp
102
103     Shared/Authentication/soup/AuthenticationManagerSoup.cpp
104
105     Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp
106     Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp
107     Shared/CoordinatedGraphics/SimpleViewportController.cpp
108
109     Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp
110     Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp
111     Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.cpp
112
113     Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp
114
115     Shared/cairo/ShareableBitmapCairo.cpp
116
117     Shared/glib/WebContextMenuItemGlib.cpp
118     Shared/glib/WebErrorsGlib.cpp
119
120     Shared/linux/WebMemorySamplerLinux.cpp
121
122     Shared/soup/WebCoreArgumentCodersSoup.cpp
123     Shared/soup/WebErrorsSoup.cpp
124
125     Shared/unix/ChildProcessMain.cpp
126
127     Shared/wpe/NativeWebKeyboardEventWPE.cpp
128     Shared/wpe/NativeWebMouseEventWPE.cpp
129     Shared/wpe/NativeWebTouchEventWPE.cpp
130     Shared/wpe/NativeWebWheelEventWPE.cpp
131     Shared/wpe/ProcessExecutablePathWPE.cpp
132     Shared/wpe/WebEventFactory.cpp
133
134     StorageProcess/glib/StorageProcessMainGLib.cpp
135
136     UIProcess/AcceleratedDrawingAreaProxy.cpp
137     UIProcess/BackingStore.cpp
138     UIProcess/DefaultUndoController.cpp
139     UIProcess/LegacySessionStateCodingNone.cpp
140     UIProcess/WebResourceLoadStatisticsStore.cpp
141     UIProcess/WebResourceLoadStatisticsTelemetry.cpp
142
143     UIProcess/API/C/WKGrammarDetail.cpp
144
145     UIProcess/API/C/wpe/WKView.cpp
146
147     UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp
148     UIProcess/API/glib/IconDatabase.cpp
149     UIProcess/API/glib/WebKitApplicationInfo.cpp
150     UIProcess/API/glib/WebKitAuthenticationRequest.cpp
151     UIProcess/API/glib/WebKitAutomationSession.cpp
152     UIProcess/API/glib/WebKitBackForwardList.cpp
153     UIProcess/API/glib/WebKitBackForwardListItem.cpp
154     UIProcess/API/glib/WebKitContextMenuClient.cpp
155     UIProcess/API/glib/WebKitCookieManager.cpp
156     UIProcess/API/glib/WebKitCredential.cpp
157     UIProcess/API/glib/WebKitCustomProtocolManagerClient.cpp
158     UIProcess/API/glib/WebKitDownload.cpp
159     UIProcess/API/glib/WebKitDownloadClient.cpp
160     UIProcess/API/glib/WebKitEditorState.cpp
161     UIProcess/API/glib/WebKitError.cpp
162     UIProcess/API/glib/WebKitFaviconDatabase.cpp
163     UIProcess/API/glib/WebKitFileChooserRequest.cpp
164     UIProcess/API/glib/WebKitFindController.cpp
165     UIProcess/API/glib/WebKitFormClient.cpp
166     UIProcess/API/glib/WebKitFormSubmissionRequest.cpp
167     UIProcess/API/glib/WebKitGeolocationPermissionRequest.cpp
168     UIProcess/API/glib/WebKitGeolocationProvider.cpp
169     UIProcess/API/glib/WebKitInjectedBundleClient.cpp
170     UIProcess/API/glib/WebKitInstallMissingMediaPluginsPermissionRequest.cpp
171     UIProcess/API/glib/WebKitJavascriptResult.cpp
172     UIProcess/API/glib/WebKitMimeInfo.cpp
173     UIProcess/API/glib/WebKitNavigationAction.cpp
174     UIProcess/API/glib/WebKitNavigationClient.cpp
175     UIProcess/API/glib/WebKitNavigationPolicyDecision.cpp
176     UIProcess/API/glib/WebKitNetworkProxySettings.cpp
177     UIProcess/API/glib/WebKitNotification.cpp
178     UIProcess/API/glib/WebKitNotificationPermissionRequest.cpp
179     UIProcess/API/glib/WebKitNotificationProvider.cpp
180     UIProcess/API/glib/WebKitPermissionRequest.cpp
181     UIProcess/API/glib/WebKitPlugin.cpp
182     UIProcess/API/glib/WebKitPolicyDecision.cpp
183     UIProcess/API/glib/WebKitPrivate.cpp
184     UIProcess/API/glib/WebKitResponsePolicyDecision.cpp
185     UIProcess/API/glib/WebKitScriptDialog.cpp
186     UIProcess/API/glib/WebKitSecurityManager.cpp
187     UIProcess/API/glib/WebKitSecurityOrigin.cpp
188     UIProcess/API/glib/WebKitSettings.cpp
189     UIProcess/API/glib/WebKitUIClient.cpp
190     UIProcess/API/glib/WebKitURISchemeRequest.cpp
191     UIProcess/API/glib/WebKitUserContent.cpp
192     UIProcess/API/glib/WebKitUserContentManager.cpp
193     UIProcess/API/glib/WebKitUserMediaPermissionRequest.cpp
194     UIProcess/API/glib/WebKitWebContext.cpp
195     UIProcess/API/glib/WebKitWebResource.cpp
196     UIProcess/API/glib/WebKitWebView.cpp
197     UIProcess/API/glib/WebKitWebViewSessionState.cpp
198     UIProcess/API/glib/WebKitWebsiteData.cpp
199     UIProcess/API/glib/WebKitWebsiteDataManager.cpp
200     UIProcess/API/glib/WebKitWindowProperties.cpp
201
202     UIProcess/API/wpe/CompositingManagerProxy.cpp
203     UIProcess/API/wpe/PageClientImpl.cpp
204     UIProcess/API/wpe/ScrollGestureController.cpp
205     UIProcess/API/wpe/WebKitScriptDialogWPE.cpp
206     UIProcess/API/wpe/WebKitWebViewBackend.cpp
207     UIProcess/API/wpe/WebKitWebViewWPE.cpp
208     UIProcess/API/wpe/WPEView.cpp
209
210     UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
211
212     UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
213
214     UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.cpp
215
216     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
217     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
218
219     UIProcess/WebStorage/StorageManager.cpp
220
221     UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
222
223     UIProcess/cairo/BackingStoreCairo.cpp
224
225     UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp
226     UIProcess/gstreamer/WebPageProxyGStreamer.cpp
227
228     UIProcess/linux/MemoryPressureMonitor.cpp
229
230     UIProcess/soup/WebCookieManagerProxySoup.cpp
231     UIProcess/soup/WebProcessPoolSoup.cpp
232
233     UIProcess/wpe/TextCheckerWPE.cpp
234     UIProcess/wpe/WebInspectorProxyWPE.cpp
235     UIProcess/wpe/WebPageProxyWPE.cpp
236     UIProcess/wpe/WebPasteboardProxyWPE.cpp
237     UIProcess/wpe/WebPreferencesWPE.cpp
238     UIProcess/wpe/WebProcessPoolWPE.cpp
239
240     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
241
242     WebProcess/InjectedBundle/API/glib/WebKitConsoleMessage.cpp
243     WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp
244     WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp
245     WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp
246     WebProcess/InjectedBundle/API/glib/WebKitWebEditor.cpp
247     WebProcess/InjectedBundle/API/glib/WebKitWebExtension.cpp
248     WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp
249
250     WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp
251
252     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
253
254     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
255
256     WebProcess/WebCoreSupport/wpe/WebContextMenuClientWPE.cpp
257     WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp
258     WebProcess/WebCoreSupport/wpe/WebPopupMenuWPE.cpp
259
260     WebProcess/WebPage/AcceleratedDrawingArea.cpp
261     WebProcess/WebPage/AcceleratedSurface.cpp
262
263     WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
264     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
265     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
266     WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
267     WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp
268
269     WebProcess/WebPage/gstreamer/WebPageGStreamer.cpp
270
271     WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp
272     WebProcess/WebPage/wpe/CompositingManager.cpp
273     WebProcess/WebPage/wpe/WebInspectorUIWPE.cpp
274     WebProcess/WebPage/wpe/WebPageWPE.cpp
275
276     WebProcess/soup/WebKitSoupRequestInputStream.cpp
277     WebProcess/soup/WebProcessSoup.cpp
278
279     WebProcess/wpe/WebProcessMainWPE.cpp
280 )
281
282 list(APPEND WebKit_MESSAGES_IN_FILES
283     NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.messages.in
284
285     UIProcess/API/wpe/CompositingManagerProxy.messages.in
286
287     UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.messages.in
288 )
289
290 list(APPEND WebKit_DERIVED_SOURCES
291     ${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.c
292
293     ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
294 )
295
296 set(WPE_API_INSTALLED_HEADERS
297     ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h
298     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitApplicationInfo.h
299     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitAuthenticationRequest.h
300     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitAutomationSession.h
301     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitBackForwardList.h
302     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitBackForwardListItem.h
303     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitCredential.h
304     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitContextMenu.h
305     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitContextMenuActions.h
306     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitContextMenuItem.h
307     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitCookieManager.h
308     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitDefines.h
309     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitDownload.h
310     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitEditingCommands.h
311     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitEditorState.h
312     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitError.h
313     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitFaviconDatabase.h
314     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitFileChooserRequest.h
315     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitFindController.h
316     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitFormSubmissionRequest.h
317     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitGeolocationPermissionRequest.h
318     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitHitTestResult.h
319     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitInstallMissingMediaPluginsPermissionRequest.h
320     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitJavascriptResult.h
321     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitMimeInfo.h
322     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitNavigationAction.h
323     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitNavigationPolicyDecision.h
324     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitNetworkProxySettings.h
325     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitNotificationPermissionRequest.h
326     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitNotification.h
327     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitPermissionRequest.h
328     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitPlugin.h
329     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitPolicyDecision.h
330     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitResponsePolicyDecision.h
331     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitScriptDialog.h
332     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitSecurityManager.h
333     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitSecurityOrigin.h
334     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitSettings.h
335     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitURIRequest.h
336     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitURIResponse.h
337     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitURISchemeRequest.h
338     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitUserContent.h
339     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitUserContentManager.h
340     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitUserMediaPermissionRequest.h
341     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebContext.h
342     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebResource.h
343     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebView.h
344     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebViewBackend.h
345     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebViewSessionState.h
346     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebsiteData.h
347     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWebsiteDataManager.h
348     ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitWindowProperties.h
349     ${WEBKIT_DIR}/UIProcess/API/wpe/webkit.h
350 )
351
352 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
353 set(WPE_ENUM_GENERATION_HEADERS ${WPE_API_INSTALLED_HEADERS})
354 list(REMOVE_ITEM WPE_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h)
355 add_custom_command(
356     OUTPUT ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h
357            ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
358     DEPENDS ${WPE_ENUM_GENERATION_HEADERS}
359
360     COMMAND glib-mkenums --template ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitEnumTypes.h.template ${WPE_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h
361
362     COMMAND glib-mkenums --template ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitEnumTypes.cpp.template ${WPE_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ > ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
363     VERBATIM
364 )
365
366 set(WebKitResources
367 )
368
369 if (ENABLE_WEB_AUDIO)
370     list(APPEND WebKitResources
371         "        <file alias=\"audio/Composite\">Composite.wav</file>\n"
372     )
373 endif ()
374
375 file(WRITE ${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.xml
376     "<?xml version=1.0 encoding=UTF-8?>\n"
377     "<gresources>\n"
378     "    <gresource prefix=\"/org/webkitwpe/resources\">\n"
379     ${WebKitResources}
380     "    </gresource>\n"
381     "</gresources>\n"
382 )
383
384 add_custom_command(
385     OUTPUT ${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.c
386     DEPENDS ${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.xml
387     COMMAND glib-compile-resources --generate --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/Resources --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/platform/audio/resources --target=${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.c ${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.xml
388     VERBATIM
389 )
390
391 list(APPEND WebKit_INCLUDE_DIRECTORIES
392     "${FORWARDING_HEADERS_DIR}"
393     "${FORWARDING_HEADERS_WPE_DIR}"
394     "${FORWARDING_HEADERS_WPE_EXTENSION_DIR}"
395     "${DERIVED_SOURCES_DIR}"
396     "${DERIVED_SOURCES_WPE_API_DIR}"
397     "${WEBCORE_DIR}/platform/graphics/cairo"
398     "${WEBCORE_DIR}/platform/graphics/freetype"
399     "${WEBCORE_DIR}/platform/graphics/opentype"
400     "${WEBCORE_DIR}/platform/graphics/texmap/coordinated"
401     "${WEBCORE_DIR}/platform/network/soup"
402     "${WEBKIT_DIR}/NetworkProcess/CustomProtocols/soup"
403     "${WEBKIT_DIR}/NetworkProcess/Downloads/soup"
404     "${WEBKIT_DIR}/NetworkProcess/soup"
405     "${WEBKIT_DIR}/NetworkProcess/unix"
406     "${WEBKIT_DIR}/Platform/IPC/glib"
407     "${WEBKIT_DIR}/Platform/IPC/unix"
408     "${WEBKIT_DIR}/Platform/classifier"
409     "${WEBKIT_DIR}/Shared/API/c/wpe"
410     "${WEBKIT_DIR}/Shared/API/glib"
411     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
412     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
413     "${WEBKIT_DIR}/Shared/glib"
414     "${WEBKIT_DIR}/Shared/soup"
415     "${WEBKIT_DIR}/Shared/unix"
416     "${WEBKIT_DIR}/Shared/wpe"
417     "${WEBKIT_DIR}/StorageProcess/unix"
418     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
419     "${WEBKIT_DIR}/UIProcess/API/C/wpe"
420     "${WEBKIT_DIR}/UIProcess/API/glib"
421     "${WEBKIT_DIR}/UIProcess/API/wpe"
422     "${WEBKIT_DIR}/UIProcess/Network/CustomProtocols/soup"
423     "${WEBKIT_DIR}/UIProcess/gstreamer"
424     "${WEBKIT_DIR}/UIProcess/linux"
425     "${WEBKIT_DIR}/UIProcess/soup"
426     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib"
427     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe"
428     "${WEBKIT_DIR}/WebProcess/soup"
429     "${WEBKIT_DIR}/WebProcess/unix"
430     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/soup"
431     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
432     "${WEBKIT_DIR}/WebProcess/WebPage/wpe"
433     "${WTF_DIR}/wtf/gtk/"
434     "${WTF_DIR}/wtf/gobject"
435     "${WTF_DIR}"
436 )
437
438 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
439     ${CAIRO_INCLUDE_DIRS}
440     ${FREETYPE2_INCLUDE_DIRS}
441     ${GLIB_INCLUDE_DIRS}
442     ${GSTREAMER_INCLUDE_DIRS}
443     ${HARFBUZZ_INCLUDE_DIRS}
444     ${LIBSOUP_INCLUDE_DIRS}
445     ${WPE_INCLUDE_DIRS}
446 )
447
448 list(APPEND WebKit_LIBRARIES
449     WebCore
450     ${CAIRO_LIBRARIES}
451     ${FREETYPE2_LIBRARIES}
452     ${GLIB_LIBRARIES}
453     ${GSTREAMER_LIBRARIES}
454     ${HARFBUZZ_LIBRARIES}
455     ${LIBSOUP_LIBRARIES}
456     ${WPE_LIBRARIES}
457 )
458
459 WEBKIT_BUILD_INSPECTOR_GRESOURCES(${DERIVED_SOURCES_WEBINSPECTORUI_DIR})
460 list(APPEND WPEWebInspectorResources_DERIVED_SOURCES
461     ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.c
462 )
463
464 list(APPEND WPEWebInspectorResources_LIBRARIES
465     ${GLIB_GIO_LIBRARIES}
466 )
467
468 list(APPEND WPEWebInspectorResources_SYSTEM_INCLUDE_DIRECTORIES
469     ${GLIB_INCLUDE_DIRS}
470 )
471
472 add_library(WPEWebInspectorResources SHARED ${WPEWebInspectorResources_DERIVED_SOURCES})
473 add_dependencies(WPEWebInspectorResources WebKit)
474 target_link_libraries(WPEWebInspectorResources ${WPEWebInspectorResources_LIBRARIES})
475 target_include_directories(WPEWebInspectorResources SYSTEM PUBLIC ${WPEWebInspectorResources_SYSTEM_INCLUDE_DIRECTORIES})
476 install(TARGETS WPEWebInspectorResources DESTINATION "${LIB_INSTALL_DIR}")
477
478 add_library(WPEInjectedBundle MODULE "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/WebKitInjectedBundleMain.cpp")
479 ADD_WEBKIT_PREFIX_HEADER(WPEInjectedBundle)
480 target_link_libraries(WPEInjectedBundle WebKit)
481
482 install(FILES "${CMAKE_BINARY_DIR}/wpe-webkit.pc"
483     DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
484     COMPONENT "Development"
485 )
486
487 install(FILES ${WPE_API_INSTALLED_HEADERS}
488     DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wpe-${WPE_API_VERSION}/WPE/wpe"
489     COMPONENT "Development"
490 )