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