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