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