Moved filesystem code out of WebResourceLoadStatisticsStore class
[WebKit.git] / Source / WebKit2 / CMakeLists.txt
1 include(CheckCXXSourceCompiles)
2 include(CheckFunctionExists)
3
4 set_property(DIRECTORY . PROPERTY FOLDER "WebKit2")
5
6 set(WebKit2_INCLUDE_DIRECTORIES
7     "${WEBKIT2_DIR}"
8     "${WEBKIT2_DIR}/DatabaseProcess"
9     "${WEBKIT2_DIR}/DatabaseProcess/IndexedDB"
10     "${WEBKIT2_DIR}/NetworkProcess"
11     "${WEBKIT2_DIR}/NetworkProcess/CustomProtocols"
12     "${WEBKIT2_DIR}/NetworkProcess/Downloads"
13     "${WEBKIT2_DIR}/NetworkProcess/FileAPI"
14     "${WEBKIT2_DIR}/NetworkProcess/cache"
15     "${WEBKIT2_DIR}/NetworkProcess/capture"
16     "${WEBKIT2_DIR}/NetworkProcess/webrtc"
17     "${WEBKIT2_DIR}/Platform"
18     "${WEBKIT2_DIR}/Platform/IPC"
19     "${WEBKIT2_DIR}/PluginProcess"
20     "${WEBKIT2_DIR}/Shared"
21     "${WEBKIT2_DIR}/Shared/API"
22     "${WEBKIT2_DIR}/Shared/API/c"
23     "${WEBKIT2_DIR}/Shared/Authentication"
24     "${WEBKIT2_DIR}/Shared/CoreIPCSupport"
25     "${WEBKIT2_DIR}/Shared/Databases"
26     "${WEBKIT2_DIR}/Shared/Databases/IndexedDB"
27     "${WEBKIT2_DIR}/Shared/FileAPI"
28     "${WEBKIT2_DIR}/Shared/Gamepad"
29     "${WEBKIT2_DIR}/Shared/Plugins"
30     "${WEBKIT2_DIR}/Shared/Plugins/Netscape"
31     "${WEBKIT2_DIR}/Shared/Plugins/Netscape/x11"
32     "${WEBKIT2_DIR}/Shared/WebsiteData"
33     "${WEBKIT2_DIR}/UIProcess"
34     "${WEBKIT2_DIR}/UIProcess/API"
35     "${WEBKIT2_DIR}/UIProcess/API/C"
36     "${WEBKIT2_DIR}/UIProcess/API/cpp"
37     "${WEBKIT2_DIR}/UIProcess/ApplePay"
38     "${WEBKIT2_DIR}/UIProcess/Authentication"
39     "${WEBKIT2_DIR}/UIProcess/Automation"
40     "${WEBKIT2_DIR}/UIProcess/Databases"
41     "${WEBKIT2_DIR}/UIProcess/Downloads"
42     "${WEBKIT2_DIR}/UIProcess/Gamepad"
43     "${WEBKIT2_DIR}/UIProcess/Launcher"
44     "${WEBKIT2_DIR}/UIProcess/Network"
45     "${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols"
46     "${WEBKIT2_DIR}/UIProcess/Notifications"
47     "${WEBKIT2_DIR}/UIProcess/Plugins"
48     "${WEBKIT2_DIR}/UIProcess/Storage"
49     "${WEBKIT2_DIR}/UIProcess/UserContent"
50     "${WEBKIT2_DIR}/UIProcess/WebsiteData"
51     "${WEBKIT2_DIR}/WebProcess"
52     "${WEBKIT2_DIR}/WebProcess/ApplePay"
53     "${WEBKIT2_DIR}/WebProcess/ApplicationCache"
54     "${WEBKIT2_DIR}/WebProcess/Automation"
55     "${WEBKIT2_DIR}/WebProcess/Cookies"
56     "${WEBKIT2_DIR}/WebProcess/Databases"
57     "${WEBKIT2_DIR}/WebProcess/Databases/IndexedDB"
58     "${WEBKIT2_DIR}/WebProcess/FileAPI"
59     "${WEBKIT2_DIR}/WebProcess/FullScreen"
60     "${WEBKIT2_DIR}/WebProcess/Gamepad"
61     "${WEBKIT2_DIR}/WebProcess/Geolocation"
62     "${WEBKIT2_DIR}/WebProcess/IconDatabase"
63     "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
64     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API"
65     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
66     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/DOM"
67     "${WEBKIT2_DIR}/WebProcess/Launching"
68     "${WEBKIT2_DIR}/WebProcess/MediaCache"
69     "${WEBKIT2_DIR}/WebProcess/MediaStream"
70     "${WEBKIT2_DIR}/WebProcess/Network"
71     "${WEBKIT2_DIR}/WebProcess/Network/webrtc"
72     "${WEBKIT2_DIR}/WebProcess/Notifications"
73     "${WEBKIT2_DIR}/WebProcess/OriginData"
74     "${WEBKIT2_DIR}/WebProcess/Plugins"
75     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape"
76     "${WEBKIT2_DIR}/WebProcess/ResourceCache"
77     "${WEBKIT2_DIR}/WebProcess/Storage"
78     "${WEBKIT2_DIR}/WebProcess/UserContent"
79     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport"
80     "${WEBKIT2_DIR}/WebProcess/WebPage"
81     "${DERIVED_SOURCES_WEBKIT2_DIR}"
82     "${DERIVED_SOURCES_WEBKIT2_DIR}/include"
83     "${CMAKE_SOURCE_DIR}/WebKitLibraries"
84 )
85
86 set(PROTOCOL_GENERATOR_SCRIPTS_DIR "${JAVASCRIPTCORE_DIR}/inspector/scripts")
87
88 set(WebKit2_SYSTEM_INCLUDE_DIRECTORIES
89     ${ICU_INCLUDE_DIRS}
90 )
91
92 if (ENABLE_GRAPHICS_CONTEXT_3D)
93     list(APPEND WebKit2_INCLUDE_DIRECTORIES
94         "${THIRDPARTY_DIR}/ANGLE"
95         "${THIRDPARTY_DIR}/ANGLE/include/KHR"
96     )
97 endif ()
98
99 set(WebKit2_SOURCES
100     DatabaseProcess/DatabaseProcess.cpp
101     DatabaseProcess/DatabaseToWebProcessConnection.cpp
102
103     DatabaseProcess/IndexedDB/WebIDBConnectionToClient.cpp
104
105     NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.cpp
106
107     NetworkProcess/Downloads/BlobDownloadClient.cpp
108     NetworkProcess/Downloads/Download.cpp
109     NetworkProcess/Downloads/DownloadManager.cpp
110     NetworkProcess/Downloads/PendingDownload.cpp
111
112     NetworkProcess/FileAPI/NetworkBlobRegistry.cpp
113
114     NetworkProcess/NetworkConnectionToWebProcess.cpp
115     NetworkProcess/NetworkDataTask.cpp
116     NetworkProcess/NetworkDataTaskBlob.cpp
117     NetworkProcess/NetworkLoad.cpp
118     NetworkProcess/NetworkProcess.cpp
119     NetworkProcess/NetworkProcessCreationParameters.cpp
120     NetworkProcess/NetworkProcessPlatformStrategies.cpp
121     NetworkProcess/NetworkResourceLoadParameters.cpp
122     NetworkProcess/NetworkResourceLoader.cpp
123     NetworkProcess/NetworkSession.cpp
124     NetworkProcess/NetworkSocketStream.cpp
125
126     NetworkProcess/cache/NetworkCache.cpp
127     NetworkProcess/cache/NetworkCacheBlobStorage.cpp
128     NetworkProcess/cache/NetworkCacheCoders.cpp
129     NetworkProcess/cache/NetworkCacheData.cpp
130     NetworkProcess/cache/NetworkCacheEntry.cpp
131     NetworkProcess/cache/NetworkCacheFileSystem.cpp
132     NetworkProcess/cache/NetworkCacheKey.cpp
133     NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp
134     NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp
135     NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp
136     NetworkProcess/cache/NetworkCacheStatistics.cpp
137     NetworkProcess/cache/NetworkCacheStorage.cpp
138
139     NetworkProcess/capture/NetworkCaptureEvent.cpp
140     NetworkProcess/capture/NetworkCaptureManager.cpp
141     NetworkProcess/capture/NetworkCaptureRecorder.cpp
142     NetworkProcess/capture/NetworkCaptureReplayer.cpp
143     NetworkProcess/capture/NetworkCaptureResource.cpp
144     NetworkProcess/capture/NetworkDataTaskReplay.cpp
145
146     Platform/Logging.cpp
147     Platform/Module.cpp
148
149     Platform/IPC/ArgumentCoders.cpp
150     Platform/IPC/Attachment.cpp
151     Platform/IPC/Connection.cpp
152     Platform/IPC/DataReference.cpp
153     Platform/IPC/Decoder.cpp
154     Platform/IPC/Encoder.cpp
155     Platform/IPC/MessageReceiverMap.cpp
156     Platform/IPC/MessageSender.cpp
157     Platform/IPC/StringReference.cpp
158
159     PluginProcess/PluginControllerProxy.cpp
160     PluginProcess/PluginCreationParameters.cpp
161     PluginProcess/PluginProcess.cpp
162     PluginProcess/WebProcessConnection.cpp
163
164     Shared/ActivityAssertion.cpp
165     Shared/AsyncRequest.cpp
166     Shared/BlobDataFileReferenceWithSandboxExtension.cpp
167     Shared/CacheModel.cpp
168     Shared/ChildProcess.cpp
169     Shared/ContextMenuContextData.cpp
170     Shared/EditorState.cpp
171     Shared/FontInfo.cpp
172     Shared/FrameInfoData.cpp
173     Shared/LayerTreeContext.cpp
174     Shared/LoadParameters.cpp
175     Shared/NavigationActionData.cpp
176     Shared/PlatformPopupMenuData.cpp
177     Shared/PrintInfo.cpp
178     Shared/SessionState.cpp
179     Shared/SessionTracker.cpp
180     Shared/ShareableBitmap.cpp
181     Shared/ShareableResource.cpp
182     Shared/StatisticsData.cpp
183     Shared/UpdateInfo.cpp
184     Shared/UserData.cpp
185     Shared/VisitedLinkTable.cpp
186     Shared/WebBackForwardListItem.cpp
187     Shared/WebCompiledContentRuleList.cpp
188     Shared/WebCompiledContentRuleListData.cpp
189     Shared/WebConnection.cpp
190     Shared/WebConnectionClient.cpp
191     Shared/WebContextMenuItem.cpp
192     Shared/WebContextMenuItemData.cpp
193     Shared/WebCoreArgumentCoders.cpp
194     Shared/WebErrors.cpp
195     Shared/WebEvent.cpp
196     Shared/WebEventConversion.cpp
197     Shared/WebGeolocationPosition.cpp
198     Shared/WebHitTestResultData.cpp
199     Shared/WebImage.cpp
200     Shared/WebKeyboardEvent.cpp
201     Shared/WebKit2Initialize.cpp
202     Shared/WebMediaSessionMetadata.cpp
203     Shared/WebMemorySampler.cpp
204     Shared/WebMouseEvent.cpp
205     Shared/WebPageCreationParameters.cpp
206     Shared/WebPageGroupData.cpp
207     Shared/WebPlatformTouchPoint.cpp
208     Shared/WebPopupItem.cpp
209     Shared/WebPreferencesKeys.cpp
210     Shared/WebPreferencesStore.cpp
211     Shared/WebProcessCreationParameters.cpp
212     Shared/WebRenderLayer.cpp
213     Shared/WebRenderObject.cpp
214     Shared/WebTouchEvent.cpp
215     Shared/WebUserContentControllerDataTypes.cpp
216     Shared/WebWheelEvent.cpp
217     Shared/WebsiteDataStoreParameters.cpp
218
219     Shared/API/APIArray.cpp
220     Shared/API/APIData.cpp
221     Shared/API/APIDictionary.cpp
222     Shared/API/APIError.cpp
223     Shared/API/APIFrameHandle.cpp
224     Shared/API/APIGeometry.cpp
225     Shared/API/APIObject.cpp
226     Shared/API/APIPageGroupHandle.cpp
227     Shared/API/APIPageHandle.cpp
228     Shared/API/APIURLRequest.cpp
229     Shared/API/APIURLResponse.cpp
230
231     Shared/API/c/WKArray.cpp
232     Shared/API/c/WKCertificateInfo.cpp
233     Shared/API/c/WKConnectionRef.cpp
234     Shared/API/c/WKContextMenuItem.cpp
235     Shared/API/c/WKData.cpp
236     Shared/API/c/WKDeprecatedFunctions.cpp
237     Shared/API/c/WKDictionary.cpp
238     Shared/API/c/WKErrorRef.cpp
239     Shared/API/c/WKGeometry.cpp
240     Shared/API/c/WKImage.cpp
241     Shared/API/c/WKMutableArray.cpp
242     Shared/API/c/WKMutableDictionary.cpp
243     Shared/API/c/WKNumber.cpp
244     Shared/API/c/WKPluginInformation.cpp
245     Shared/API/c/WKRenderLayer.cpp
246     Shared/API/c/WKRenderObject.cpp
247     Shared/API/c/WKSecurityOriginRef.cpp
248     Shared/API/c/WKSerializedScriptValue.cpp
249     Shared/API/c/WKString.cpp
250     Shared/API/c/WKType.cpp
251     Shared/API/c/WKURL.cpp
252     Shared/API/c/WKURLRequest.cpp
253     Shared/API/c/WKURLResponse.cpp
254     Shared/API/c/WKUserContentURLPattern.cpp
255
256     Shared/Authentication/AuthenticationManager.cpp
257
258     Shared/Databases/DatabaseProcessCreationParameters.cpp
259
260     Shared/Databases/IndexedDB/IDBUtilities.cpp
261     Shared/Databases/IndexedDB/WebIDBResult.cpp
262
263     Shared/Gamepad/GamepadData.cpp
264
265     Shared/Plugins/NPIdentifierData.cpp
266     Shared/Plugins/NPObjectMessageReceiver.cpp
267     Shared/Plugins/NPObjectProxy.cpp
268     Shared/Plugins/NPRemoteObjectMap.cpp
269     Shared/Plugins/NPVariantData.cpp
270     Shared/Plugins/PluginProcessCreationParameters.cpp
271
272     Shared/Plugins/Netscape/NetscapePluginModule.cpp
273     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
274     Shared/Plugins/Netscape/PluginInformation.cpp
275
276     Shared/WebsiteData/WebsiteData.cpp
277
278     UIProcess/BackgroundProcessResponsivenessTimer.cpp
279     UIProcess/ChildProcessProxy.cpp
280     UIProcess/DrawingAreaProxy.cpp
281     UIProcess/FrameLoadState.cpp
282     UIProcess/GeolocationPermissionRequestManagerProxy.cpp
283     UIProcess/GeolocationPermissionRequestProxy.cpp
284     UIProcess/PageLoadState.cpp
285     UIProcess/ProcessAssertion.cpp
286     UIProcess/ProcessThrottler.cpp
287     UIProcess/RemoteWebInspectorProxy.cpp
288     UIProcess/ResponsivenessTimer.cpp
289     UIProcess/StatisticsRequest.cpp
290     UIProcess/TextCheckerCompletion.cpp
291     UIProcess/UserMediaPermissionCheckProxy.cpp
292     UIProcess/UserMediaPermissionRequestManagerProxy.cpp
293     UIProcess/UserMediaPermissionRequestProxy.cpp
294     UIProcess/UserMediaProcessManager.cpp
295     UIProcess/VisitedLinkStore.cpp
296     UIProcess/WebBackForwardList.cpp
297     UIProcess/WebColorPicker.cpp
298     UIProcess/WebConnectionToWebProcess.cpp
299     UIProcess/WebContextClient.cpp
300     UIProcess/WebContextConnectionClient.cpp
301     UIProcess/WebContextInjectedBundleClient.cpp
302     UIProcess/WebContextMenuProxy.cpp
303     UIProcess/WebCookieManagerProxy.cpp
304     UIProcess/WebCookieManagerProxyClient.cpp
305     UIProcess/WebEditCommandProxy.cpp
306     UIProcess/WebFormClient.cpp
307     UIProcess/WebFormSubmissionListenerProxy.cpp
308     UIProcess/WebFrameListenerProxy.cpp
309     UIProcess/WebFramePolicyListenerProxy.cpp
310     UIProcess/WebFrameProxy.cpp
311     UIProcess/WebFullScreenManagerProxy.cpp
312     UIProcess/WebGeolocationManagerProxy.cpp
313     UIProcess/WebGeolocationProvider.cpp
314     UIProcess/WebGrammarDetail.cpp
315     UIProcess/WebIconDatabase.cpp
316     UIProcess/WebIconDatabaseClient.cpp
317     UIProcess/WebInspectorProxy.cpp
318     UIProcess/WebInspectorUtilities.cpp
319     UIProcess/WebNavigationState.cpp
320     UIProcess/WebOpenPanelResultListenerProxy.cpp
321     UIProcess/WebPageDiagnosticLoggingClient.cpp
322     UIProcess/WebPageGroup.cpp
323     UIProcess/WebPageInjectedBundleClient.cpp
324     UIProcess/WebPageProxy.cpp
325     UIProcess/WebPasteboardProxy.cpp
326     UIProcess/WebPreferences.cpp
327     UIProcess/WebProcessLifetimeObserver.cpp
328     UIProcess/WebProcessLifetimeTracker.cpp
329     UIProcess/WebProcessPool.cpp
330     UIProcess/WebProcessProxy.cpp
331     UIProcess/WebURLSchemeHandler.cpp
332     UIProcess/WebURLSchemeTask.cpp
333     UIProcess/WebViewportAttributes.cpp
334
335     UIProcess/API/APIContentRuleList.cpp
336     UIProcess/API/APIContentRuleListStore.cpp
337     UIProcess/API/APIExperimentalFeature.cpp
338     UIProcess/API/APIFrameInfo.cpp
339     UIProcess/API/APIHTTPCookieStore.cpp
340     UIProcess/API/APIHitTestResult.cpp
341     UIProcess/API/APINavigation.cpp
342     UIProcess/API/APINavigationData.cpp
343     UIProcess/API/APIPageConfiguration.cpp
344     UIProcess/API/APIProcessPoolConfiguration.cpp
345     UIProcess/API/APIOpenPanelParameters.cpp
346     UIProcess/API/APISessionState.cpp
347     UIProcess/API/APIURLSchemeTask.cpp
348     UIProcess/API/APIUserContentWorld.cpp
349     UIProcess/API/APIUserScript.cpp
350     UIProcess/API/APIUserStyleSheet.cpp
351     UIProcess/API/APIWebsiteDataStore.cpp
352     UIProcess/API/APIWebsitePolicies.cpp
353     UIProcess/API/APIWindowFeatures.cpp
354
355     UIProcess/API/C/WKApplicationCacheManager.cpp
356     UIProcess/API/C/WKAuthenticationChallenge.cpp
357     UIProcess/API/C/WKAuthenticationDecisionListener.cpp
358     UIProcess/API/C/WKBackForwardListItemRef.cpp
359     UIProcess/API/C/WKBackForwardListRef.cpp
360     UIProcess/API/C/WKContext.cpp
361     UIProcess/API/C/WKContextConfigurationRef.cpp
362     UIProcess/API/C/WKCookieManager.cpp
363     UIProcess/API/C/WKCredential.cpp
364     UIProcess/API/C/WKDownload.cpp
365     UIProcess/API/C/WKFormSubmissionListener.cpp
366     UIProcess/API/C/WKFrame.cpp
367     UIProcess/API/C/WKFrameHandleRef.cpp
368     UIProcess/API/C/WKFrameInfoRef.cpp
369     UIProcess/API/C/WKFramePolicyListener.cpp
370     UIProcess/API/C/WKGeolocationManager.cpp
371     UIProcess/API/C/WKGeolocationPermissionRequest.cpp
372     UIProcess/API/C/WKGeolocationPosition.cpp
373     UIProcess/API/C/WKHitTestResult.cpp
374     UIProcess/API/C/WKIconDatabase.cpp
375     UIProcess/API/C/WKInspector.cpp
376     UIProcess/API/C/WKKeyValueStorageManager.cpp
377     UIProcess/API/C/WKMediaSessionMetadata.cpp
378     UIProcess/API/C/WKNavigationActionRef.cpp
379     UIProcess/API/C/WKNavigationDataRef.cpp
380     UIProcess/API/C/WKNavigationRef.cpp
381     UIProcess/API/C/WKNavigationResponseRef.cpp
382     UIProcess/API/C/WKNotification.cpp
383     UIProcess/API/C/WKNotificationManager.cpp
384     UIProcess/API/C/WKNotificationPermissionRequest.cpp
385     UIProcess/API/C/WKOpenPanelParametersRef.cpp
386     UIProcess/API/C/WKOpenPanelResultListener.cpp
387     UIProcess/API/C/WKPage.cpp
388     UIProcess/API/C/WKPageConfigurationRef.cpp
389     UIProcess/API/C/WKPageGroup.cpp
390     UIProcess/API/C/WKPreferences.cpp
391     UIProcess/API/C/WKProtectionSpace.cpp
392     UIProcess/API/C/WKResourceCacheManager.cpp
393     UIProcess/API/C/WKSessionStateRef.cpp
394     UIProcess/API/C/WKTextChecker.cpp
395     UIProcess/API/C/WKUserContentControllerRef.cpp
396     UIProcess/API/C/WKUserMediaPermissionCheck.cpp
397     UIProcess/API/C/WKUserMediaPermissionRequest.cpp
398     UIProcess/API/C/WKViewportAttributes.cpp
399     UIProcess/API/C/WKWebsiteDataStoreRef.cpp
400     UIProcess/API/C/WKWebsitePolicies.cpp
401     UIProcess/API/C/WKWindowFeaturesRef.cpp
402
403     UIProcess/Authentication/AuthenticationChallengeProxy.cpp
404     UIProcess/Authentication/AuthenticationDecisionListener.cpp
405     UIProcess/Authentication/WebCredential.cpp
406     UIProcess/Authentication/WebProtectionSpace.cpp
407
408     UIProcess/Automation/WebAutomationSession.cpp
409
410     UIProcess/Databases/DatabaseProcessProxy.cpp
411
412     UIProcess/Downloads/DownloadProxy.cpp
413     UIProcess/Downloads/DownloadProxyMap.cpp
414
415     UIProcess/Gamepad/UIGamepad.cpp
416     UIProcess/Gamepad/UIGamepadProvider.cpp
417
418     UIProcess/Launcher/ProcessLauncher.cpp
419
420     UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.cpp
421
422     UIProcess/Network/NetworkProcessProxy.cpp
423
424     UIProcess/Notifications/NotificationPermissionRequest.cpp
425     UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp
426     UIProcess/Notifications/WebNotification.cpp
427     UIProcess/Notifications/WebNotificationManagerProxy.cpp
428     UIProcess/Notifications/WebNotificationProvider.cpp
429
430     UIProcess/Plugins/PlugInAutoStartProvider.cpp
431     UIProcess/Plugins/PluginInfoStore.cpp
432     UIProcess/Plugins/PluginProcessManager.cpp
433     UIProcess/Plugins/PluginProcessProxy.cpp
434
435     UIProcess/Storage/LocalStorageDatabase.cpp
436     UIProcess/Storage/LocalStorageDatabaseTracker.cpp
437     UIProcess/Storage/ResourceLoadStatisticsPersistentStorage.cpp
438
439     UIProcess/UserContent/WebScriptMessageHandler.cpp
440     UIProcess/UserContent/WebUserContentControllerProxy.cpp
441
442     UIProcess/WebsiteData/WebsiteDataRecord.cpp
443     UIProcess/WebsiteData/WebsiteDataStore.cpp
444
445     WebProcess/WebConnectionToUIProcess.cpp
446     WebProcess/WebProcess.cpp
447
448     WebProcess/Automation/WebAutomationSessionProxy.cpp
449
450     WebProcess/Cookies/WebCookieManager.cpp
451
452     WebProcess/Databases/WebDatabaseProvider.cpp
453     WebProcess/Databases/WebToDatabaseProcessConnection.cpp
454
455     WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.cpp
456
457     WebProcess/FileAPI/BlobRegistryProxy.cpp
458
459     WebProcess/FullScreen/WebFullScreenManager.cpp
460
461     WebProcess/Gamepad/WebGamepad.cpp
462     WebProcess/Gamepad/WebGamepadProvider.cpp
463
464     WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp
465     WebProcess/Geolocation/WebGeolocationManager.cpp
466
467     WebProcess/IconDatabase/WebIconDatabaseProxy.cpp
468
469     WebProcess/InjectedBundle/InjectedBundle.cpp
470     WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp
471     WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp
472     WebProcess/InjectedBundle/InjectedBundleClient.cpp
473     WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp
474     WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
475     WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp
476     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp
477     WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp
478     WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
479     WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp
480     WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
481     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
482     WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp
483     WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp
484     WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp
485
486     WebProcess/InjectedBundle/API/c/WKBundle.cpp
487     WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp
488     WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp
489     WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp
490     WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
491     WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp
492     WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp
493     WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp
494     WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
495     WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
496     WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp
497     WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
498     WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp
499     WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp
500
501     WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp
502     WebProcess/InjectedBundle/DOM/InjectedBundleFileHandle.cpp
503     WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
504     WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
505
506     WebProcess/MediaStream/MediaDeviceSandboxExtensions.cpp
507     WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp
508
509     WebProcess/Network/NetworkProcessConnection.cpp
510     WebProcess/Network/WebLoaderStrategy.cpp
511     WebProcess/Network/WebResourceLoader.cpp
512     WebProcess/Network/WebSocketProvider.cpp
513     WebProcess/Network/WebSocketStream.cpp
514
515     WebProcess/Notifications/NotificationPermissionRequestManager.cpp
516     WebProcess/Notifications/WebNotificationManager.cpp
517
518     WebProcess/Plugins/Plugin.cpp
519     WebProcess/Plugins/PluginProcessConnection.cpp
520     WebProcess/Plugins/PluginProcessConnectionManager.cpp
521     WebProcess/Plugins/PluginProxy.cpp
522     WebProcess/Plugins/PluginView.cpp
523     WebProcess/Plugins/WebPluginInfoProvider.cpp
524
525     WebProcess/Plugins/Netscape/JSNPMethod.cpp
526     WebProcess/Plugins/Netscape/JSNPObject.cpp
527     WebProcess/Plugins/Netscape/NPJSObject.cpp
528     WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp
529     WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
530     WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
531     WebProcess/Plugins/Netscape/NetscapePlugin.cpp
532     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
533     WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
534
535     WebProcess/Storage/StorageAreaImpl.cpp
536     WebProcess/Storage/StorageAreaMap.cpp
537     WebProcess/Storage/StorageNamespaceImpl.cpp
538     WebProcess/Storage/WebStorageNamespaceProvider.cpp
539
540     WebProcess/UserContent/WebUserContentController.cpp
541
542     WebProcess/WebCoreSupport/SessionStateConversion.cpp
543     WebProcess/WebCoreSupport/WebChromeClient.cpp
544     WebProcess/WebCoreSupport/WebColorChooser.cpp
545     WebProcess/WebCoreSupport/WebContextMenuClient.cpp
546     WebProcess/WebCoreSupport/WebDeviceProximityClient.cpp
547     WebProcess/WebCoreSupport/WebDiagnosticLoggingClient.cpp
548     WebProcess/WebCoreSupport/WebDragClient.cpp
549     WebProcess/WebCoreSupport/WebEditorClient.cpp
550     WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
551     WebProcess/WebCoreSupport/WebGeolocationClient.cpp
552     WebProcess/WebCoreSupport/WebInspectorClient.cpp
553     WebProcess/WebCoreSupport/WebNotificationClient.cpp
554     WebProcess/WebCoreSupport/WebPerformanceLoggingClient.cpp
555     WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
556     WebProcess/WebCoreSupport/WebPlugInClient.cpp
557     WebProcess/WebCoreSupport/WebPopupMenu.cpp
558     WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp
559     WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp
560     WebProcess/WebCoreSupport/WebUserMediaClient.cpp
561
562     WebProcess/WebPage/DrawingArea.cpp
563     WebProcess/WebPage/EventDispatcher.cpp
564     WebProcess/WebPage/FindController.cpp
565     WebProcess/WebPage/LayerTreeHost.cpp
566     WebProcess/WebPage/PageBanner.cpp
567     WebProcess/WebPage/RemoteWebInspectorUI.cpp
568     WebProcess/WebPage/VisitedLinkTableController.cpp
569     WebProcess/WebPage/WebBackForwardListProxy.cpp
570     WebProcess/WebPage/WebContextMenu.cpp
571     WebProcess/WebPage/WebDocumentLoader.cpp
572     WebProcess/WebPage/WebFrame.cpp
573     WebProcess/WebPage/WebInspector.cpp
574     WebProcess/WebPage/WebInspectorInterruptDispatcher.cpp
575     WebProcess/WebPage/WebInspectorFrontendAPIDispatcher.cpp
576     WebProcess/WebPage/WebInspectorUI.cpp
577     WebProcess/WebPage/WebOpenPanelResultListener.cpp
578     WebProcess/WebPage/WebPage.cpp
579     WebProcess/WebPage/WebPageGroupProxy.cpp
580     WebProcess/WebPage/WebPageOverlay.cpp
581     WebProcess/WebPage/WebURLSchemeHandlerProxy.cpp
582     WebProcess/WebPage/WebURLSchemeTaskProxy.cpp
583     WebProcess/WebPage/WebUndoStep.cpp
584 )
585
586 set(WebKit2_MESSAGES_IN_FILES
587     DatabaseProcess/DatabaseProcess.messages.in
588     DatabaseProcess/DatabaseToWebProcessConnection.messages.in
589
590     DatabaseProcess/IndexedDB/WebIDBConnectionToClient.messages.in
591
592     NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.messages.in
593
594     NetworkProcess/NetworkConnectionToWebProcess.messages.in
595     NetworkProcess/NetworkProcess.messages.in
596     NetworkProcess/NetworkResourceLoader.messages.in
597     NetworkProcess/NetworkSocketStream.messages.in
598
599     NetworkProcess/webrtc/NetworkRTCMonitor.messages.in
600     NetworkProcess/webrtc/NetworkRTCProvider.messages.in
601     NetworkProcess/webrtc/NetworkRTCSocket.messages.in
602
603     PluginProcess/PluginControllerProxy.messages.in
604     PluginProcess/PluginProcess.messages.in
605     PluginProcess/WebProcessConnection.messages.in
606
607     Shared/ChildProcess.messages.in
608     Shared/WebConnection.messages.in
609
610     Shared/Authentication/AuthenticationManager.messages.in
611
612     Shared/Plugins/NPObjectMessageReceiver.messages.in
613
614     UIProcess/DrawingAreaProxy.messages.in
615     UIProcess/RemoteWebInspectorProxy.messages.in
616     UIProcess/VisitedLinkStore.messages.in
617     UIProcess/WebCookieManagerProxy.messages.in
618     UIProcess/WebFullScreenManagerProxy.messages.in
619     UIProcess/WebGeolocationManagerProxy.messages.in
620     UIProcess/WebIconDatabase.messages.in
621     UIProcess/WebInspectorProxy.messages.in
622     UIProcess/WebPageProxy.messages.in
623     UIProcess/WebPasteboardProxy.messages.in
624     UIProcess/WebProcessPool.messages.in
625     UIProcess/WebProcessProxy.messages.in
626     UIProcess/WebResourceLoadStatisticsStore.messages.in
627
628     UIProcess/Automation/WebAutomationSession.messages.in
629
630     UIProcess/Databases/DatabaseProcessProxy.messages.in
631
632     UIProcess/Downloads/DownloadProxy.messages.in
633
634     UIProcess/Network/NetworkProcessProxy.messages.in
635
636     UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.messages.in
637
638     UIProcess/Plugins/PluginProcessProxy.messages.in
639
640     UIProcess/Storage/StorageManager.messages.in
641
642     UIProcess/UserContent/WebUserContentControllerProxy.messages.in
643
644     WebProcess/WebProcess.messages.in
645
646     WebProcess/Automation/WebAutomationSessionProxy.messages.in
647
648     WebProcess/Cookies/WebCookieManager.messages.in
649
650     WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.messages.in
651
652     WebProcess/FullScreen/WebFullScreenManager.messages.in
653
654     WebProcess/Geolocation/WebGeolocationManager.messages.in
655
656     WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in
657
658     WebProcess/Network/webrtc/WebRTCMonitor.messages.in
659     WebProcess/Network/webrtc/WebRTCResolver.messages.in
660     WebProcess/Network/webrtc/WebRTCSocket.messages.in
661
662     WebProcess/Network/NetworkProcessConnection.messages.in
663     WebProcess/Network/WebResourceLoader.messages.in
664     WebProcess/Network/WebSocketStream.messages.in
665
666     WebProcess/Notifications/WebNotificationManager.messages.in
667
668     WebProcess/Plugins/PluginProcessConnection.messages.in
669     WebProcess/Plugins/PluginProcessConnectionManager.messages.in
670     WebProcess/Plugins/PluginProxy.messages.in
671
672     WebProcess/Storage/StorageAreaMap.messages.in
673
674     WebProcess/UserContent/WebUserContentController.messages.in
675
676     WebProcess/WebPage/DrawingArea.messages.in
677     WebProcess/WebPage/EventDispatcher.messages.in
678     WebProcess/WebPage/RemoteWebInspectorUI.messages.in
679     WebProcess/WebPage/VisitedLinkTableController.messages.in
680     WebProcess/WebPage/WebInspector.messages.in
681     WebProcess/WebPage/WebInspectorInterruptDispatcher.messages.in
682     WebProcess/WebPage/WebInspectorUI.messages.in
683     WebProcess/WebPage/WebPage.messages.in
684 )
685
686 set(WebProcess_LIBRARIES
687     WebKit2
688 )
689
690 set(NetworkProcess_LIBRARIES
691     WebKit2
692 )
693
694 set(DatabaseProcess_LIBRARIES
695     WebKit2
696 )
697
698 if (APPLE)
699     set(WebKit2_LIBRARIES
700         PRIVATE WebCore
701         PUBLIC JavaScriptCore
702     )
703 else ()
704     set(WebKit2_LIBRARIES
705         WebCore
706         JavaScriptCore
707     )
708 endif ()
709
710 set(PluginProcess_LIBRARIES
711     WebKit2
712 )
713
714 if (WIN32 AND INTERNAL_BUILD)
715     set(JavaScriptCore_SCRIPTS_DIR "${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore/Scripts")
716 else ()
717     set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
718 endif ()
719
720 if (COMPILER_IS_GCC_OR_CLANG)
721     set(ATOMIC_TEST_SOURCE
722     "
723         #include <atomic>
724         int main() { std::atomic<int64_t> i(0); i++; return 0; }
725     "
726     )
727     check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_IS_BUILTIN)
728     if (NOT ATOMIC_INT64_IS_BUILTIN)
729         set(CMAKE_REQUIRED_LIBRARIES atomic)
730         check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_REQUIRES_LIBATOMIC)
731         if (ATOMIC_INT64_REQUIRES_LIBATOMIC)
732             list(APPEND WebKit2_LIBRARIES atomic)
733         endif ()
734         unset(CMAKE_REQUIRED_LIBRARIES)
735     endif ()
736 endif ()
737
738 if (UNIX)
739     check_function_exists(shm_open SHM_OPEN_EXISTS)
740     if (NOT SHM_OPEN_EXISTS)
741         set(CMAKE_REQUIRED_LIBRARIES rt)
742         check_function_exists(shm_open SHM_OPEN_REQUIRES_LIBRT)
743         if (SHM_OPEN_REQUIRES_LIBRT)
744             list(APPEND WebKit2_LIBRARIES rt)
745         endif ()
746     endif ()
747 endif ()
748
749 macro(ADD_WEBKIT2_PREFIX_HEADER _target)
750     if (WebKit2_USE_PREFIX_HEADER)
751         get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
752         if (${OLD_COMPILE_FLAGS} STREQUAL "OLD_COMPILE_FLAGS-NOTFOUND")
753             set(OLD_COMPILE_FLAGS "")
754         endif ()
755         set_target_properties(${_target} PROPERTIES COMPILE_FLAGS "${OLD_COMPILE_FLAGS} -include ${WEBKIT2_DIR}/WebKit2Prefix.h")
756     endif ()
757 endmacro()
758
759 set(WebKit2_AUTOMATION_PROTOCOL_GENERATOR_EXTRA_FLAGS
760 )
761
762 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
763
764 GENERATE_WEBKIT2_MESSAGE_SOURCES(WebKit2_DERIVED_SOURCES "${WebKit2_MESSAGES_IN_FILES}")
765
766 set(WebKit2_AUTOMATION_PROTOCOL_GENERATOR_SCRIPTS
767     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py
768     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/cpp_generator.py
769     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/cpp_generator_templates.py
770     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_backend_dispatcher_header.py
771     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_backend_dispatcher_implementation.py
772     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_protocol_types_header.py
773     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_protocol_types_implementation.py
774     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generator.py
775     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generator_templates.py
776     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/models.py
777 )
778
779 set(WebKit2_AUTOMATION_PROTOCOL_GENERATOR_INPUTS
780     ${WEBKIT2_DIR}/UIProcess/Automation/Automation.json
781 )
782
783 add_custom_command(
784     OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationBackendDispatchers.h ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationBackendDispatchers.cpp ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationProtocolObjects.h ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationProtocolObjects.cpp
785     MAIN_DEPENDENCY ${WebKit2_AUTOMATION_PROTOCOL_GENERATOR_INPUTS}
786     DEPENDS ${WebKit2_AUTOMATION_PROTOCOL_GENERATOR_SCRIPTS}
787     COMMAND ${PYTHON_EXECUTABLE} ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py --outputDir "${DERIVED_SOURCES_WEBKIT2_DIR}" --framework WebKit ${WebKit2_AUTOMATION_PROTOCOL_GENERATOR_EXTRA_FLAGS} --backend ${WebKit2_AUTOMATION_PROTOCOL_GENERATOR_INPUTS}
788     VERBATIM)
789
790 list(APPEND WebKit2_HEADERS
791     ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationBackendDispatchers.h
792     ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationProtocolObjects.h
793 )
794
795 list(APPEND WebKit2_SOURCES
796     ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationBackendDispatchers.cpp
797     ${DERIVED_SOURCES_WEBKIT2_DIR}/AutomationProtocolObjects.cpp
798 )
799
800 add_custom_command(
801     OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxyScriptSource.h ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxy.min.js
802     MAIN_DEPENDENCY ${WEBKIT2_DIR}/WebProcess/Automation/WebAutomationSessionProxy.js
803     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
804     COMMAND ${CMAKE_COMMAND} -E echo "//# sourceURL=__InjectedScript_WebAutomationSessionProxy.js" > ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxy.min.js
805     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBKIT2_DIR}/WebProcess/Automation/WebAutomationSessionProxy.js >> ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxy.min.js
806     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl WebAutomationSessionProxyScriptSource ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxy.min.js ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxyScriptSource.h
807     VERBATIM)
808
809 list(APPEND WebKit2_HEADERS
810     ${DERIVED_SOURCES_WEBKIT2_DIR}/WebAutomationSessionProxyScriptSource.h
811 )
812
813 list(APPEND WebKit2_SOURCES ${WebKit2_DERIVED_SOURCES})
814
815 WEBKIT_FRAMEWORK(WebKit2)
816 add_dependencies(WebKit2 WebCore ${WEBKIT2_EXTRA_DEPENDENCIES})
817 add_webkit2_prefix_header(WebKit2)
818
819 if (COMPILER_IS_GCC_OR_CLANG AND NOT APPLE)
820     target_link_libraries(WebKit2 -Wl,--start-group WebCore WebCoreDerivedSources -Wl,--end-group)
821 endif ()
822
823 # Suppress unused parameter warnings for sources in WebKit2.
824 if (COMPILER_IS_GCC_OR_CLANG)
825     ADD_TARGET_PROPERTIES(WebKit2 COMPILE_FLAGS "-Wno-unused-parameter")
826 endif ()
827
828 if (WebKit2_VERSION_SCRIPT)
829     ADD_TARGET_PROPERTIES(WebKit2 LINK_FLAGS "${WebKit2_VERSION_SCRIPT}")
830 endif ()
831
832 add_executable(WebProcess ${WebProcess_SOURCES})
833 add_webkit2_prefix_header(WebProcess)
834 target_link_libraries(WebProcess ${WebProcess_LIBRARIES})
835
836 if (WebKit2_WebProcess_OUTPUT_NAME)
837     set_target_properties(WebProcess PROPERTIES OUTPUT_NAME ${WebKit2_WebProcess_OUTPUT_NAME})
838 endif ()
839
840 add_executable(NetworkProcess ${NetworkProcess_SOURCES})
841 add_webkit2_prefix_header(NetworkProcess)
842 target_link_libraries(NetworkProcess ${NetworkProcess_LIBRARIES})
843
844 if (WebKit2_NetworkProcess_OUTPUT_NAME)
845     set_target_properties(NetworkProcess PROPERTIES OUTPUT_NAME ${WebKit2_NetworkProcess_OUTPUT_NAME})
846 endif ()
847
848 if (ENABLE_PLUGIN_PROCESS AND NOT "${PORT}" STREQUAL "Mac")
849     add_definitions(-DENABLE_PLUGIN_PROCESS=1)
850     add_executable(PluginProcess ${PluginProcess_SOURCES})
851     add_webkit2_prefix_header(PluginProcess)
852     target_link_libraries(PluginProcess ${PluginProcess_LIBRARIES})
853     install(TARGETS PluginProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
854
855     if (WebKit2_PluginProcess_OUTPUT_NAME)
856       set_target_properties(PluginProcess PROPERTIES OUTPUT_NAME ${WebKit2_PluginProcess_OUTPUT_NAME})
857     endif ()
858 endif ()
859
860 if (ENABLE_DATABASE_PROCESS AND NOT "${PORT}" STREQUAL "Mac")
861     add_definitions(-DENABLE_DATABASE_PROCESS=1)
862     add_executable(DatabaseProcess ${DatabaseProcess_SOURCES})
863     add_webkit2_prefix_header(DatabaseProcess)
864     target_link_libraries(DatabaseProcess ${DatabaseProcess_LIBRARIES})
865     install(TARGETS DatabaseProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
866
867     if (WebKit2_DatabaseProcess_OUTPUT_NAME)
868         set_target_properties(DatabaseProcess PROPERTIES OUTPUT_NAME ${WebKit2_DatabaseProcess_OUTPUT_NAME})
869     endif ()
870 endif ()
871
872 if ("${PORT}" STREQUAL "Mac")
873     set(_web_xpc_dir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.Development.xpc/Contents)
874     make_directory(${_web_xpc_dir}/MacOS)
875     make_directory(${_web_xpc_dir}/Resources)
876     make_directory(${_web_xpc_dir}/_CodeSignature)
877
878     add_custom_target(WebContentProcessNib COMMAND
879         ibtool --compile ${_web_xpc_dir}/Resources/WebContentProcess.nib ${WEBKIT2_DIR}/Resources/WebContentProcess.xib
880         VERBATIM)
881     add_dependencies(WebKit2 WebContentProcessNib)
882
883     # FIXME: This shouldn't be two operations.
884     file(COPY ${WEBKIT2_DIR}/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist DESTINATION ${_web_xpc_dir})
885     file(RENAME ${_web_xpc_dir}/Info-OSX.plist ${_web_xpc_dir}/Info.plist)
886
887     set_target_properties(WebProcess PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${_web_xpc_dir}/MacOS")
888
889
890     set(_net_xpc_dir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/XPCServices/com.apple.WebKit.Networking.Development.xpc/Contents)
891     make_directory(${_net_xpc_dir}/MacOS)
892     make_directory(${_net_xpc_dir}/_CodeSignature)
893
894     # FIXME: This shouldn't be two operations.
895     file(COPY ${WEBKIT2_DIR}/NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX.plist DESTINATION ${_net_xpc_dir})
896     file(RENAME ${_net_xpc_dir}/Info-OSX.plist ${_net_xpc_dir}/Info.plist)
897
898     set_target_properties(NetworkProcess PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${_net_xpc_dir}/MacOS")
899 else ()
900     POPULATE_LIBRARY_VERSION(WEBKIT2)
901     set_target_properties(WebKit2 PROPERTIES VERSION ${WEBKIT2_VERSION} SOVERSION ${WEBKIT2_VERSION_MAJOR})
902
903     install(TARGETS WebKit2 WebProcess NetworkProcess
904         LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
905         RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}"
906     )
907 endif ()