[WPE] Implement WebsiteDataStore::defaultApplicationCacheDirectory() and friends
[WebKit-https.git] / Source / WebKit / PlatformWPE.cmake
1 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WPE_API_DIR})
2 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_DIR})
3 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_EXTENSION_DIR})
4
5 configure_file(wpe/wpe-webkit.pc.in ${CMAKE_BINARY_DIR}/wpe-webkit.pc @ONLY)
6
7 add_definitions(-DWEBKIT2_COMPILATION)
8
9 add_definitions(-DLIBEXECDIR="${LIBEXEC_INSTALL_DIR}")
10 add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
11
12 set(WebKit2_USE_PREFIX_HEADER ON)
13
14 add_custom_target(webkit2wpe-forwarding-headers
15     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT2_DIR} --output ${FORWARDING_HEADERS_DIR} --platform wpe --platform soup
16 )
17
18  # These symbolic link allows includes like #include <wpe/WebkitWebView.h> which simulates installed headers.
19 add_custom_command(
20     OUTPUT ${FORWARDING_HEADERS_WPE_DIR}/wpe
21     DEPENDS ${WEBKIT2_DIR}/UIProcess/API/wpe
22     COMMAND ln -n -s -f ${WEBKIT2_DIR}/UIProcess/API/wpe ${FORWARDING_HEADERS_WPE_DIR}/wpe
23 )
24
25 add_custom_command(
26     OUTPUT ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
27     DEPENDS ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/wpe
28     COMMAND ln -n -s -f ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/wpe ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
29 )
30
31 add_custom_target(webkit2wpe-fake-api-headers
32     DEPENDS ${FORWARDING_HEADERS_WPE_DIR}/wpe
33             ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
34 )
35
36 set(WEBKIT2_EXTRA_DEPENDENCIES
37     webkit2wpe-fake-api-headers
38     webkit2wpe-forwarding-headers
39 )
40
41 list(APPEND WebProcess_SOURCES
42     WebProcess/EntryPoint/unix/WebProcessMain.cpp
43 )
44
45 list(APPEND NetworkProcess_SOURCES
46     NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
47 )
48
49 list(APPEND StorageProcess_SOURCES
50     StorageProcess/EntryPoint/unix/StorageProcessMain.cpp
51 )
52
53 list(APPEND WebKit2_SOURCES
54     NetworkProcess/CustomProtocols/soup/LegacyCustomProtocolManagerSoup.cpp
55
56     NetworkProcess/cache/NetworkCacheCodersSoup.cpp
57     NetworkProcess/cache/NetworkCacheDataSoup.cpp
58     NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp
59
60     NetworkProcess/soup/NetworkDataTaskSoup.cpp
61     NetworkProcess/soup/NetworkProcessMainSoup.cpp
62     NetworkProcess/soup/NetworkProcessSoup.cpp
63     NetworkProcess/soup/NetworkSessionSoup.cpp
64     NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
65
66     Platform/IPC/glib/GSocketMonitor.cpp
67
68     Platform/IPC/unix/AttachmentUnix.cpp
69     Platform/IPC/unix/ConnectionUnix.cpp
70
71     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
72
73     Platform/glib/ModuleGlib.cpp
74
75     Platform/unix/LoggingUnix.cpp
76     Platform/unix/SharedMemoryUnix.cpp
77
78     PluginProcess/unix/PluginControllerProxyUnix.cpp
79     PluginProcess/unix/PluginProcessMainUnix.cpp
80     PluginProcess/unix/PluginProcessUnix.cpp
81
82     Shared/API/c/cairo/WKImageCairo.cpp
83
84     Shared/API/glib/WebKitContextMenu.cpp
85     Shared/API/glib/WebKitContextMenuActions.cpp
86     Shared/API/glib/WebKitContextMenuItem.cpp
87     Shared/API/glib/WebKitHitTestResult.cpp
88     Shared/API/glib/WebKitURIRequest.cpp
89     Shared/API/glib/WebKitURIResponse.cpp
90
91     Shared/Authentication/soup/AuthenticationManagerSoup.cpp
92
93     Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp
94     Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp
95     Shared/CoordinatedGraphics/SimpleViewportController.cpp
96
97     Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp
98     Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp
99     Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp
100     Shared/CoordinatedGraphics/threadedcompositor/ThreadedDisplayRefreshMonitor.cpp
101
102     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
103
104     Shared/cairo/ShareableBitmapCairo.cpp
105
106     Shared/glib/WebContextMenuItemGlib.cpp
107     Shared/glib/WebErrorsGlib.cpp
108
109     Shared/linux/WebMemorySamplerLinux.cpp
110
111     Shared/soup/WebCoreArgumentCodersSoup.cpp
112     Shared/soup/WebErrorsSoup.cpp
113
114     Shared/unix/ChildProcessMain.cpp
115
116     Shared/wpe/NativeWebKeyboardEventWPE.cpp
117     Shared/wpe/NativeWebMouseEventWPE.cpp
118     Shared/wpe/NativeWebTouchEventWPE.cpp
119     Shared/wpe/NativeWebWheelEventWPE.cpp
120     Shared/wpe/ProcessExecutablePathWPE.cpp
121     Shared/wpe/WebEventFactory.cpp
122
123     UIProcess/AcceleratedDrawingAreaProxy.cpp
124     UIProcess/BackingStore.cpp
125     UIProcess/DefaultUndoController.cpp
126     UIProcess/LegacySessionStateCodingNone.cpp
127     UIProcess/WebResourceLoadStatisticsStore.cpp
128     UIProcess/WebResourceLoadStatisticsTelemetry.cpp
129
130     UIProcess/API/C/WKGrammarDetail.cpp
131
132     UIProcess/API/C/wpe/WKView.cpp
133
134     UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp
135     UIProcess/API/glib/IconDatabase.cpp
136     UIProcess/API/glib/WebKitApplicationInfo.cpp
137     UIProcess/API/glib/WebKitAuthenticationRequest.cpp
138     UIProcess/API/glib/WebKitAutomationSession.cpp
139     UIProcess/API/glib/WebKitBackForwardList.cpp
140     UIProcess/API/glib/WebKitBackForwardListItem.cpp
141     UIProcess/API/glib/WebKitContextMenuClient.cpp
142     UIProcess/API/glib/WebKitCookieManager.cpp
143     UIProcess/API/glib/WebKitCredential.cpp
144     UIProcess/API/glib/WebKitCustomProtocolManagerClient.cpp
145     UIProcess/API/glib/WebKitDownload.cpp
146     UIProcess/API/glib/WebKitDownloadClient.cpp
147     UIProcess/API/glib/WebKitEditorState.cpp
148     UIProcess/API/glib/WebKitError.cpp
149     UIProcess/API/glib/WebKitFaviconDatabase.cpp
150     UIProcess/API/glib/WebKitFileChooserRequest.cpp
151     UIProcess/API/glib/WebKitFindController.cpp
152     UIProcess/API/glib/WebKitFormClient.cpp
153     UIProcess/API/glib/WebKitFormSubmissionRequest.cpp
154     UIProcess/API/glib/WebKitGeolocationPermissionRequest.cpp
155     UIProcess/API/glib/WebKitGeolocationProvider.cpp
156     UIProcess/API/glib/WebKitIconLoadingClient.cpp
157     UIProcess/API/glib/WebKitInjectedBundleClient.cpp
158     UIProcess/API/glib/WebKitInstallMissingMediaPluginsPermissionRequest.cpp
159     UIProcess/API/glib/WebKitJavascriptResult.cpp
160     UIProcess/API/glib/WebKitLoaderClient.cpp
161     UIProcess/API/glib/WebKitMimeInfo.cpp
162     UIProcess/API/glib/WebKitNavigationAction.cpp
163     UIProcess/API/glib/WebKitNavigationPolicyDecision.cpp
164     UIProcess/API/glib/WebKitNetworkProxySettings.cpp
165     UIProcess/API/glib/WebKitNotification.cpp
166     UIProcess/API/glib/WebKitNotificationPermissionRequest.cpp
167     UIProcess/API/glib/WebKitNotificationProvider.cpp
168     UIProcess/API/glib/WebKitPermissionRequest.cpp
169     UIProcess/API/glib/WebKitPlugin.cpp
170     UIProcess/API/glib/WebKitPolicyClient.cpp
171     UIProcess/API/glib/WebKitPolicyDecision.cpp
172     UIProcess/API/glib/WebKitPrivate.cpp
173     UIProcess/API/glib/WebKitResponsePolicyDecision.cpp
174     UIProcess/API/glib/WebKitScriptDialog.cpp
175     UIProcess/API/glib/WebKitSecurityManager.cpp
176     UIProcess/API/glib/WebKitSecurityOrigin.cpp
177     UIProcess/API/glib/WebKitSettings.cpp
178     UIProcess/API/glib/WebKitUIClient.cpp
179     UIProcess/API/glib/WebKitURISchemeRequest.cpp
180     UIProcess/API/glib/WebKitUserContent.cpp
181     UIProcess/API/glib/WebKitUserContentManager.cpp
182     UIProcess/API/glib/WebKitUserMediaPermissionRequest.cpp
183     UIProcess/API/glib/WebKitWebContext.cpp
184     UIProcess/API/glib/WebKitWebResource.cpp
185     UIProcess/API/glib/WebKitWebView.cpp
186     UIProcess/API/glib/WebKitWebViewSessionState.cpp
187     UIProcess/API/glib/WebKitWebsiteData.cpp
188     UIProcess/API/glib/WebKitWebsiteDataManager.cpp
189     UIProcess/API/glib/WebKitWindowProperties.cpp
190
191     UIProcess/API/wpe/CompositingManagerProxy.cpp
192     UIProcess/API/wpe/PageClientImpl.cpp
193     UIProcess/API/wpe/ScrollGestureController.cpp
194     UIProcess/API/wpe/WebKitScriptDialogWPE.cpp
195     UIProcess/API/wpe/WebKitWebViewWPE.cpp
196     UIProcess/API/wpe/WPEView.cpp
197
198     UIProcess/Launcher/wpe/ProcessLauncherWPE.cpp
199
200     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
201     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
202
203     UIProcess/WebStorage/StorageManager.cpp
204
205     UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
206
207     UIProcess/cairo/BackingStoreCairo.cpp
208
209     UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp
210     UIProcess/gstreamer/WebPageProxyGStreamer.cpp
211
212     UIProcess/linux/MemoryPressureMonitor.cpp
213
214     UIProcess/soup/WebCookieManagerProxySoup.cpp
215     UIProcess/soup/WebProcessPoolSoup.cpp
216
217     UIProcess/wpe/TextCheckerWPE.cpp
218     UIProcess/wpe/WebInspectorProxyWPE.cpp
219     UIProcess/wpe/WebPageProxyWPE.cpp
220     UIProcess/wpe/WebPasteboardProxyWPE.cpp
221     UIProcess/wpe/WebPreferencesWPE.cpp
222     UIProcess/wpe/WebProcessPoolWPE.cpp
223
224     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
225
226     WebProcess/InjectedBundle/API/glib/WebKitConsoleMessage.cpp
227     WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp
228     WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp
229     WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp
230     WebProcess/InjectedBundle/API/glib/WebKitWebEditor.cpp
231     WebProcess/InjectedBundle/API/glib/WebKitWebExtension.cpp
232     WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp
233
234     WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp
235
236     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
237
238     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
239
240     WebProcess/WebCoreSupport/wpe/WebContextMenuClientWPE.cpp
241     WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp
242     WebProcess/WebCoreSupport/wpe/WebPopupMenuWPE.cpp
243
244     WebProcess/WebPage/AcceleratedDrawingArea.cpp
245     WebProcess/WebPage/AcceleratedSurface.cpp
246
247     WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
248     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
249     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
250     WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
251     WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp
252
253     WebProcess/WebPage/gstreamer/WebPageGStreamer.cpp
254
255     WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp
256     WebProcess/WebPage/wpe/CompositingManager.cpp
257     WebProcess/WebPage/wpe/WebInspectorUIWPE.cpp
258     WebProcess/WebPage/wpe/WebPageWPE.cpp
259
260     WebProcess/soup/WebKitSoupRequestInputStream.cpp
261     WebProcess/soup/WebProcessSoup.cpp
262
263     WebProcess/wpe/WebProcessMainWPE.cpp
264
265     # FIXME-GWSHARE:
266     StorageProcess/gtk/StorageProcessMainGtk.cpp
267 )
268
269 list(APPEND WebKit2_MESSAGES_IN_FILES
270     UIProcess/API/wpe/CompositingManagerProxy.messages.in
271 )
272
273 list(APPEND WebKit2_DERIVED_SOURCES
274     ${DERIVED_SOURCES_WEBKIT2_DIR}/WebKit2ResourcesGResourceBundle.c
275
276     ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
277 )
278
279 set(WPE_API_INSTALLED_HEADERS
280     ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h
281     ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitApplicationInfo.h
282     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitAuthenticationRequest.h
283     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitAutomationSession.h
284     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitBackForwardList.h
285     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitBackForwardListItem.h
286     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitCredential.h
287     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitContextMenu.h
288     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitContextMenuActions.h
289     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitContextMenuItem.h
290     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitCookieManager.h
291     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitDefines.h
292     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitDownload.h
293     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitEditingCommands.h
294     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitEditorState.h
295     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitError.h
296     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitFaviconDatabase.h
297     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitFindController.h
298     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitFormSubmissionRequest.h
299     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitGeolocationPermissionRequest.h
300     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitHitTestResult.h
301     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitInstallMissingMediaPluginsPermissionRequest.h
302     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitJavascriptResult.h
303     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitMimeInfo.h
304     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitNavigationAction.h
305     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitNavigationPolicyDecision.h
306     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitNetworkProxySettings.h
307     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitNotificationPermissionRequest.h
308     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitNotification.h
309     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitPermissionRequest.h
310     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitPlugin.h
311     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitPolicyDecision.h
312     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitResponsePolicyDecision.h
313     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitSecurityManager.h
314     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitSecurityOrigin.h
315     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitSettings.h
316     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitURIRequest.h
317     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitURIResponse.h
318     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitURISchemeRequest.h
319     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitUserContent.h
320     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitUserContentManager.h
321     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitUserMediaPermissionRequest.h
322     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWebContext.h
323     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWebResource.h
324     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWebView.h
325     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWebViewSessionState.h
326     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWebsiteData.h
327     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWebsiteDataManager.h
328     ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitWindowProperties.h
329     ${WEBKIT2_DIR}/UIProcess/API/wpe/webkit.h
330 )
331
332 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
333 set(WPE_ENUM_GENERATION_HEADERS ${WPE_API_INSTALLED_HEADERS})
334 list(REMOVE_ITEM WPE_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h)
335 add_custom_command(
336     OUTPUT ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h
337            ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
338     DEPENDS ${WPE_ENUM_GENERATION_HEADERS}
339
340     COMMAND glib-mkenums --template ${WEBKIT2_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
341
342     COMMAND glib-mkenums --template ${WEBKIT2_DIR}/UIProcess/API/wpe/WebKitEnumTypes.cpp.template ${WPE_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ > ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
343     VERBATIM
344 )
345
346 set(WebKit2Resources
347 )
348
349 if (ENABLE_WEB_AUDIO)
350     list(APPEND WebKit2Resources
351         "        <file alias=\"audio/Composite\">Composite.wav</file>\n"
352     )
353 endif ()
354
355 file(WRITE ${DERIVED_SOURCES_WEBKIT2_DIR}/WebKit2ResourcesGResourceBundle.xml
356     "<?xml version=1.0 encoding=UTF-8?>\n"
357     "<gresources>\n"
358     "    <gresource prefix=\"/org/webkitwpe/resources\">\n"
359     ${WebKit2Resources}
360     "    </gresource>\n"
361     "</gresources>\n"
362 )
363
364 add_custom_command(
365     OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/WebKit2ResourcesGResourceBundle.c
366     DEPENDS ${DERIVED_SOURCES_WEBKIT2_DIR}/WebKit2ResourcesGResourceBundle.xml
367     COMMAND glib-compile-resources --generate --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/Resources --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/platform/audio/resources --target=${DERIVED_SOURCES_WEBKIT2_DIR}/WebKit2ResourcesGResourceBundle.c ${DERIVED_SOURCES_WEBKIT2_DIR}/WebKit2ResourcesGResourceBundle.xml
368     VERBATIM
369 )
370
371 list(APPEND WebKit2_INCLUDE_DIRECTORIES
372     "${FORWARDING_HEADERS_DIR}"
373     "${FORWARDING_HEADERS_WPE_DIR}"
374     "${FORWARDING_HEADERS_WPE_EXTENSION_DIR}"
375     "${DERIVED_SOURCES_DIR}"
376     "${DERIVED_SOURCES_WPE_API_DIR}"
377     "${WEBCORE_DIR}/platform/graphics/cairo"
378     "${WEBCORE_DIR}/platform/graphics/freetype"
379     "${WEBCORE_DIR}/platform/graphics/opentype"
380     "${WEBCORE_DIR}/platform/graphics/texmap/coordinated"
381     "${WEBCORE_DIR}/platform/network/soup"
382     "${WEBKIT2_DIR}/NetworkProcess/CustomProtocols/soup"
383     "${WEBKIT2_DIR}/NetworkProcess/Downloads/soup"
384     "${WEBKIT2_DIR}/NetworkProcess/soup"
385     "${WEBKIT2_DIR}/NetworkProcess/unix"
386     "${WEBKIT2_DIR}/Platform/IPC/glib"
387     "${WEBKIT2_DIR}/Platform/IPC/unix"
388     "${WEBKIT2_DIR}/Platform/classifier"
389     "${WEBKIT2_DIR}/Shared/API/c/wpe"
390     "${WEBKIT2_DIR}/Shared/API/glib"
391     "${WEBKIT2_DIR}/Shared/CoordinatedGraphics"
392     "${WEBKIT2_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
393     "${WEBKIT2_DIR}/Shared/glib"
394     "${WEBKIT2_DIR}/Shared/soup"
395     "${WEBKIT2_DIR}/Shared/unix"
396     "${WEBKIT2_DIR}/Shared/wpe"
397     "${WEBKIT2_DIR}/StorageProcess/unix"
398     "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
399     "${WEBKIT2_DIR}/UIProcess/API/C/wpe"
400     "${WEBKIT2_DIR}/UIProcess/API/glib"
401     "${WEBKIT2_DIR}/UIProcess/API/wpe"
402     "${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols/soup"
403     "${WEBKIT2_DIR}/UIProcess/gstreamer"
404     "${WEBKIT2_DIR}/UIProcess/linux"
405     "${WEBKIT2_DIR}/UIProcess/soup"
406     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/glib"
407     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/wpe"
408     "${WEBKIT2_DIR}/WebProcess/soup"
409     "${WEBKIT2_DIR}/WebProcess/unix"
410     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
411     "${WEBKIT2_DIR}/WebProcess/WebPage/CoordinatedGraphics"
412     "${WEBKIT2_DIR}/WebProcess/WebPage/wpe"
413     "${WTF_DIR}/wtf/gtk/"
414     "${WTF_DIR}/wtf/gobject"
415     "${WTF_DIR}"
416     ${CAIRO_INCLUDE_DIRS}
417     ${FREETYPE2_INCLUDE_DIRS}
418     ${GLIB_INCLUDE_DIRS}
419     ${GSTREAMER_INCLUDE_DIRS}
420     ${HARFBUZZ_INCLUDE_DIRS}
421     ${LIBSOUP_INCLUDE_DIRS}
422     ${WPE_INCLUDE_DIRS}
423 )
424
425 list(APPEND WebKit2_LIBRARIES
426     WebCorePlatformWPE
427     ${CAIRO_LIBRARIES}
428     ${FREETYPE2_LIBRARIES}
429     ${GLIB_LIBRARIES}
430     ${GSTREAMER_LIBRARIES}
431     ${HARFBUZZ_LIBRARIES}
432     ${LIBSOUP_LIBRARIES}
433     ${WPE_LIBRARIES}
434 )
435
436 set(InspectorFiles
437     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
438     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.html
439     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Base/*.js
440     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Controllers/*.css
441     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Controllers/*.js
442     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Debug/*.css
443     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Debug/*.js
444     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/CodeMirror/*.css
445     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/CodeMirror/*.js
446     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/ESLint/*.js
447     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/External/Esprima/*.js
448     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/gtk/*.png
449     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/gtk/*.svg
450     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Models/*.js
451     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Protocol/*.js
452     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Proxies/*.js
453     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Test/*.js
454     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Views/*.css
455     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Views/*.js
456     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Workers/Formatter/*.js
457     ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Workers/HeapSnapshot/*.js
458 )
459
460 file(GLOB InspectorFilesDependencies
461     ${InspectorFiles}
462 )
463
464 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
465 # expected in DerivedSources/WebInspectorUI/UserInterface/Protocol/.
466 add_custom_command(
467     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
468     DEPENDS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js
469     COMMAND cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
470 )
471
472 add_custom_command(
473     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.xml
474     DEPENDS ${InspectorFilesDependencies}
475             ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
476             ${TOOLS_DIR}/wpe/generate-inspector-gresource-manifest.py
477     COMMAND ${TOOLS_DIR}/wpe/generate-inspector-gresource-manifest.py --output=${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.xml ${InspectorFiles} ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
478     VERBATIM
479 )
480
481 add_custom_command(
482     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.c
483     DEPENDS ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.xml
484     COMMAND glib-compile-resources --generate --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebInspectorUI --sourcedir=${DERIVED_SOURCES_WEBINSPECTORUI_DIR} --target=${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.c ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.xml
485     VERBATIM
486 )
487
488 list(APPEND WPEWebInspectorResources_DERIVED_SOURCES
489     ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/InspectorGResourceBundle.c
490 )
491
492 list(APPEND WPEWebInspectorResources_LIBRARIES
493     ${GLIB_GIO_LIBRARIES}
494 )
495
496 list(APPEND WPEWebInspectorResources_INCLUDE_DIRECTORIES
497     ${GLIB_INCLUDE_DIRS}
498 )
499
500 add_library(WPEWebInspectorResources SHARED ${WPEWebInspectorResources_DERIVED_SOURCES})
501 add_dependencies(WPEWebInspectorResources WebKit2)
502 target_link_libraries(WPEWebInspectorResources ${WPEWebInspectorResources_LIBRARIES})
503 target_include_directories(WPEWebInspectorResources PUBLIC ${WPEWebInspectorResources_INCLUDE_DIRECTORIES})
504 install(TARGETS WPEWebInspectorResources DESTINATION "${LIB_INSTALL_DIR}")
505
506 add_library(WPEInjectedBundle MODULE "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/glib/WebKitInjectedBundleMain.cpp")
507 add_webkit2_prefix_header(WPEInjectedBundle)
508 target_link_libraries(WPEInjectedBundle WebKit2)
509
510 if (EXPORT_DEPRECATED_WEBKIT2_C_API)
511     set(WPE_INSTALLED_WEBKIT_HEADERS
512         ${WEBKIT2_DIR}/Shared/API/c/WKArray.h
513         ${WEBKIT2_DIR}/Shared/API/c/WKBase.h
514         ${WEBKIT2_DIR}/Shared/API/c/WKData.h
515         ${WEBKIT2_DIR}/Shared/API/c/WKDeclarationSpecifiers.h
516         ${WEBKIT2_DIR}/Shared/API/c/WKDiagnosticLoggingResultType.h
517         ${WEBKIT2_DIR}/Shared/API/c/WKDictionary.h
518         ${WEBKIT2_DIR}/Shared/API/c/WKErrorRef.h
519         ${WEBKIT2_DIR}/Shared/API/c/WKEvent.h
520         ${WEBKIT2_DIR}/Shared/API/c/WKFindOptions.h
521         ${WEBKIT2_DIR}/Shared/API/c/WKGeometry.h
522         ${WEBKIT2_DIR}/Shared/API/c/WKImage.h
523         ${WEBKIT2_DIR}/Shared/API/c/WKMutableArray.h
524         ${WEBKIT2_DIR}/Shared/API/c/WKMutableDictionary.h
525         ${WEBKIT2_DIR}/Shared/API/c/WKNumber.h
526         ${WEBKIT2_DIR}/Shared/API/c/WKPageLoadTypes.h
527         ${WEBKIT2_DIR}/Shared/API/c/WKPageVisibilityTypes.h
528         ${WEBKIT2_DIR}/Shared/API/c/WKSecurityOriginRef.h
529         ${WEBKIT2_DIR}/Shared/API/c/WKSerializedScriptValue.h
530         ${WEBKIT2_DIR}/Shared/API/c/WKString.h
531         ${WEBKIT2_DIR}/Shared/API/c/WKType.h
532         ${WEBKIT2_DIR}/Shared/API/c/WKURL.h
533         ${WEBKIT2_DIR}/Shared/API/c/WKURLRequest.h
534         ${WEBKIT2_DIR}/Shared/API/c/WKURLResponse.h
535         ${WEBKIT2_DIR}/Shared/API/c/WKUserContentInjectedFrames.h
536         ${WEBKIT2_DIR}/Shared/API/c/WKUserContentURLPattern.h
537         ${WEBKIT2_DIR}/Shared/API/c/WKUserScriptInjectionTime.h
538
539         ${WEBKIT2_DIR}/Shared/API/c/wpe/WKBaseWPE.h
540
541         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundle.h
542         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.h
543         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.h
544         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.h
545         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleFileHandleRef.h
546         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleFrame.h
547         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h
548         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleInitialize.h
549         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleInspector.h
550         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.h
551         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h
552         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePage.h
553         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageBanner.h
554         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h
555         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h
556         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h
557         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h
558         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageGroup.h
559         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h
560         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h
561         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h
562         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h
563         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h
564         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.h
565         ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h
566
567         ${WEBKIT2_DIR}/UIProcess/API/C/WKBackForwardListItemRef.h
568         ${WEBKIT2_DIR}/UIProcess/API/C/WKBackForwardListRef.h
569         ${WEBKIT2_DIR}/UIProcess/API/C/WKContextConfigurationRef.h
570         ${WEBKIT2_DIR}/UIProcess/API/C/WKContextConnectionClient.h
571         ${WEBKIT2_DIR}/UIProcess/API/C/WKContextDownloadClient.h
572         ${WEBKIT2_DIR}/UIProcess/API/C/WKContextHistoryClient.h
573         ${WEBKIT2_DIR}/UIProcess/API/C/WKContextInjectedBundleClient.h
574         ${WEBKIT2_DIR}/UIProcess/API/C/WKContext.h
575         ${WEBKIT2_DIR}/UIProcess/API/C/WKCookieManager.h
576         ${WEBKIT2_DIR}/UIProcess/API/C/WKCredential.h
577         ${WEBKIT2_DIR}/UIProcess/API/C/WKCredentialTypes.h
578         ${WEBKIT2_DIR}/UIProcess/API/C/WKFrame.h
579         ${WEBKIT2_DIR}/UIProcess/API/C/WKFrameInfoRef.h
580         ${WEBKIT2_DIR}/UIProcess/API/C/WKFramePolicyListener.h
581         ${WEBKIT2_DIR}/UIProcess/API/C/WKHitTestResult.h
582         ${WEBKIT2_DIR}/UIProcess/API/C/WKNativeEvent.h
583         ${WEBKIT2_DIR}/UIProcess/API/C/WKNavigationActionRef.h
584         ${WEBKIT2_DIR}/UIProcess/API/C/WKNavigationDataRef.h
585         ${WEBKIT2_DIR}/UIProcess/API/C/WKNavigationRef.h
586         ${WEBKIT2_DIR}/UIProcess/API/C/WKNavigationResponseRef.h
587         ${WEBKIT2_DIR}/UIProcess/API/C/WKPage.h
588         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageConfigurationRef.h
589         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageContextMenuClient.h
590         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageDiagnosticLoggingClient.h
591         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageFindClient.h
592         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageFindMatchesClient.h
593         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageFormClient.h
594         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageGroup.h
595         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageInjectedBundleClient.h
596         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageLoaderClient.h
597         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageNavigationClient.h
598         ${WEBKIT2_DIR}/UIProcess/API/C/WKPagePolicyClient.h
599         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageRenderingProgressEvents.h
600         ${WEBKIT2_DIR}/UIProcess/API/C/WKPageUIClient.h
601         ${WEBKIT2_DIR}/UIProcess/API/C/WKPluginLoadPolicy.h
602         ${WEBKIT2_DIR}/UIProcess/API/C/WKPreferencesRef.h
603         ${WEBKIT2_DIR}/UIProcess/API/C/WKSessionStateRef.h
604         ${WEBKIT2_DIR}/UIProcess/API/C/WKUserContentControllerRef.h
605         ${WEBKIT2_DIR}/UIProcess/API/C/WKUserScriptRef.h
606         ${WEBKIT2_DIR}/UIProcess/API/C/WKViewportAttributes.h
607         ${WEBKIT2_DIR}/UIProcess/API/C/WKWindowFeaturesRef.h
608
609         ${WEBKIT2_DIR}/UIProcess/API/C/wpe/WKView.h
610     )
611
612     install(FILES ${WPE_INSTALLED_WEBKIT_HEADERS}
613         DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wpe-${WPE_API_VERSION}/WPE/WebKit"
614         COMPONENT "Development"
615     )
616
617     set(WPE_INSTALLED_HEADERS
618         ${WEBKIT2_DIR}/Shared/API/c/wpe/WebKit.h
619     )
620
621     install(FILES ${WPE_INSTALLED_HEADERS}
622         DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wpe-${WPE_API_VERSION}/WPE"
623         COMPONENT "Development"
624     )
625
626     install(FILES ${CMAKE_BINARY_DIR}/wpe-webkit.pc
627         DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
628         COMPONENT "Development"
629     )
630 endif ()