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