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