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