b17f854c001eac808560af5fbb9d5c811075ba01
[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/TouchBarMenuData.cpp
186     Shared/TouchBarMenuItemData.cpp
187     Shared/URLSchemeTaskParameters.cpp
188     Shared/UpdateInfo.cpp
189     Shared/UserData.cpp
190     Shared/WebBackForwardListItem.cpp
191     Shared/WebCompiledContentRuleList.cpp
192     Shared/WebCompiledContentRuleListData.cpp
193     Shared/WebConnection.cpp
194     Shared/WebConnectionClient.cpp
195     Shared/WebContextMenuItem.cpp
196     Shared/WebContextMenuItemData.cpp
197     Shared/WebCoreArgumentCoders.cpp
198     Shared/WebErrors.cpp
199     Shared/WebEvent.cpp
200     Shared/WebEventConversion.cpp
201     Shared/WebGeolocationPosition.cpp
202     Shared/WebHitTestResultData.cpp
203     Shared/WebImage.cpp
204     Shared/WebKeyboardEvent.cpp
205     Shared/WebKit2Initialize.cpp
206     Shared/WebMediaSessionMetadata.cpp
207     Shared/WebMemorySampler.cpp
208     Shared/WebMouseEvent.cpp
209     Shared/WebPageCreationParameters.cpp
210     Shared/WebPageGroupData.cpp
211     Shared/WebPlatformTouchPoint.cpp
212     Shared/WebPopupItem.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     Shared/WebsitePoliciesData.cpp
222
223     Shared/API/APIArray.cpp
224     Shared/API/APIData.cpp
225     Shared/API/APIDictionary.cpp
226     Shared/API/APIError.cpp
227     Shared/API/APIFrameHandle.cpp
228     Shared/API/APIGeometry.cpp
229     Shared/API/APIObject.cpp
230     Shared/API/APIPageGroupHandle.cpp
231     Shared/API/APIPageHandle.cpp
232     Shared/API/APIURLRequest.cpp
233     Shared/API/APIURLResponse.cpp
234
235     Shared/API/c/WKArray.cpp
236     Shared/API/c/WKCertificateInfo.cpp
237     Shared/API/c/WKConnectionRef.cpp
238     Shared/API/c/WKContextMenuItem.cpp
239     Shared/API/c/WKData.cpp
240     Shared/API/c/WKDeprecatedFunctions.cpp
241     Shared/API/c/WKDictionary.cpp
242     Shared/API/c/WKErrorRef.cpp
243     Shared/API/c/WKGeometry.cpp
244     Shared/API/c/WKImage.cpp
245     Shared/API/c/WKMutableArray.cpp
246     Shared/API/c/WKMutableDictionary.cpp
247     Shared/API/c/WKNumber.cpp
248     Shared/API/c/WKPluginInformation.cpp
249     Shared/API/c/WKRenderLayer.cpp
250     Shared/API/c/WKRenderObject.cpp
251     Shared/API/c/WKSecurityOriginRef.cpp
252     Shared/API/c/WKSerializedScriptValue.cpp
253     Shared/API/c/WKString.cpp
254     Shared/API/c/WKType.cpp
255     Shared/API/c/WKURL.cpp
256     Shared/API/c/WKURLRequest.cpp
257     Shared/API/c/WKURLResponse.cpp
258     Shared/API/c/WKUserContentURLPattern.cpp
259
260     Shared/Authentication/AuthenticationManager.cpp
261
262     Shared/Databases/IndexedDB/IDBUtilities.cpp
263     Shared/Databases/IndexedDB/WebIDBResult.cpp
264
265     Shared/Gamepad/GamepadData.cpp
266
267     Shared/Plugins/NPIdentifierData.cpp
268     Shared/Plugins/NPObjectMessageReceiver.cpp
269     Shared/Plugins/NPObjectProxy.cpp
270     Shared/Plugins/NPRemoteObjectMap.cpp
271     Shared/Plugins/NPVariantData.cpp
272     Shared/Plugins/PluginProcessCreationParameters.cpp
273
274     Shared/Plugins/Netscape/NetscapePluginModule.cpp
275     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
276     Shared/Plugins/Netscape/PluginInformation.cpp
277
278     Shared/Storage/StorageProcessCreationParameters.cpp
279
280     Shared/WebsiteData/WebsiteData.cpp
281
282     StorageProcess/StorageProcess.cpp
283     StorageProcess/StorageToWebProcessConnection.cpp
284
285     StorageProcess/IndexedDB/WebIDBConnectionToClient.cpp
286
287     StorageProcess/ServiceWorker/WebSWOriginStore.cpp
288     StorageProcess/ServiceWorker/WebSWServerConnection.cpp
289
290     UIProcess/BackgroundProcessResponsivenessTimer.cpp
291     UIProcess/ChildProcessProxy.cpp
292     UIProcess/DrawingAreaProxy.cpp
293     UIProcess/FrameLoadState.cpp
294     UIProcess/GeolocationPermissionRequestManagerProxy.cpp
295     UIProcess/GeolocationPermissionRequestProxy.cpp
296     UIProcess/PageLoadState.cpp
297     UIProcess/ProcessAssertion.cpp
298     UIProcess/ProcessThrottler.cpp
299     UIProcess/RemoteWebInspectorProxy.cpp
300     UIProcess/ResourceLoadStatisticsPersistentStorage.cpp
301     UIProcess/ResponsivenessTimer.cpp
302     UIProcess/StatisticsRequest.cpp
303     UIProcess/TextCheckerCompletion.cpp
304     UIProcess/UserMediaPermissionCheckProxy.cpp
305     UIProcess/UserMediaPermissionRequestManagerProxy.cpp
306     UIProcess/UserMediaPermissionRequestProxy.cpp
307     UIProcess/UserMediaProcessManager.cpp
308     UIProcess/VisitedLinkStore.cpp
309     UIProcess/WebBackForwardList.cpp
310     UIProcess/WebColorPicker.cpp
311     UIProcess/WebConnectionToWebProcess.cpp
312     UIProcess/WebContextClient.cpp
313     UIProcess/WebContextConnectionClient.cpp
314     UIProcess/WebContextInjectedBundleClient.cpp
315     UIProcess/WebContextMenuListenerProxy.cpp
316     UIProcess/WebContextMenuProxy.cpp
317     UIProcess/WebCookieManagerProxy.cpp
318     UIProcess/WebCookieManagerProxyClient.cpp
319     UIProcess/WebEditCommandProxy.cpp
320     UIProcess/WebFormClient.cpp
321     UIProcess/WebFormSubmissionListenerProxy.cpp
322     UIProcess/WebFrameListenerProxy.cpp
323     UIProcess/WebFramePolicyListenerProxy.cpp
324     UIProcess/WebFrameProxy.cpp
325     UIProcess/WebFullScreenManagerProxy.cpp
326     UIProcess/WebGeolocationManagerProxy.cpp
327     UIProcess/WebGeolocationProvider.cpp
328     UIProcess/WebGrammarDetail.cpp
329     UIProcess/WebInspectorProxy.cpp
330     UIProcess/WebInspectorUtilities.cpp
331     UIProcess/WebNavigationState.cpp
332     UIProcess/WebOpenPanelResultListenerProxy.cpp
333     UIProcess/WebPageDiagnosticLoggingClient.cpp
334     UIProcess/WebPageGroup.cpp
335     UIProcess/WebPageInjectedBundleClient.cpp
336     UIProcess/WebPageProxy.cpp
337     UIProcess/WebPasteboardProxy.cpp
338     UIProcess/WebPreferences.cpp
339     UIProcess/WebProcessLifetimeObserver.cpp
340     UIProcess/WebProcessLifetimeTracker.cpp
341     UIProcess/WebProcessPool.cpp
342     UIProcess/WebProcessProxy.cpp
343     UIProcess/WebURLSchemeHandler.cpp
344     UIProcess/WebURLSchemeTask.cpp
345     UIProcess/WebViewportAttributes.cpp
346
347     UIProcess/API/APIContentRuleList.cpp
348     UIProcess/API/APIContentRuleListStore.cpp
349     UIProcess/API/APIExperimentalFeature.cpp
350     UIProcess/API/APIFrameInfo.cpp
351     UIProcess/API/APIHTTPCookieStore.cpp
352     UIProcess/API/APIHitTestResult.cpp
353     UIProcess/API/APINavigation.cpp
354     UIProcess/API/APINavigationData.cpp
355     UIProcess/API/APIPageConfiguration.cpp
356     UIProcess/API/APIProcessPoolConfiguration.cpp
357     UIProcess/API/APIOpenPanelParameters.cpp
358     UIProcess/API/APISessionState.cpp
359     UIProcess/API/APIURLSchemeTask.cpp
360     UIProcess/API/APIUserContentWorld.cpp
361     UIProcess/API/APIUserScript.cpp
362     UIProcess/API/APIUserStyleSheet.cpp
363     UIProcess/API/APIWebsiteDataStore.cpp
364     UIProcess/API/APIWebsitePolicies.cpp
365     UIProcess/API/APIWindowFeatures.cpp
366
367     UIProcess/API/C/WKApplicationCacheManager.cpp
368     UIProcess/API/C/WKAuthenticationChallenge.cpp
369     UIProcess/API/C/WKAuthenticationDecisionListener.cpp
370     UIProcess/API/C/WKBackForwardListItemRef.cpp
371     UIProcess/API/C/WKBackForwardListRef.cpp
372     UIProcess/API/C/WKContext.cpp
373     UIProcess/API/C/WKContextConfigurationRef.cpp
374     UIProcess/API/C/WKCookieManager.cpp
375     UIProcess/API/C/WKCredential.cpp
376     UIProcess/API/C/WKDownload.cpp
377     UIProcess/API/C/WKFormSubmissionListener.cpp
378     UIProcess/API/C/WKFrame.cpp
379     UIProcess/API/C/WKFrameHandleRef.cpp
380     UIProcess/API/C/WKFrameInfoRef.cpp
381     UIProcess/API/C/WKFramePolicyListener.cpp
382     UIProcess/API/C/WKGeolocationManager.cpp
383     UIProcess/API/C/WKGeolocationPermissionRequest.cpp
384     UIProcess/API/C/WKGeolocationPosition.cpp
385     UIProcess/API/C/WKHitTestResult.cpp
386     UIProcess/API/C/WKIconDatabase.cpp
387     UIProcess/API/C/WKInspector.cpp
388     UIProcess/API/C/WKKeyValueStorageManager.cpp
389     UIProcess/API/C/WKMediaSessionMetadata.cpp
390     UIProcess/API/C/WKNavigationActionRef.cpp
391     UIProcess/API/C/WKNavigationDataRef.cpp
392     UIProcess/API/C/WKNavigationRef.cpp
393     UIProcess/API/C/WKNavigationResponseRef.cpp
394     UIProcess/API/C/WKNotification.cpp
395     UIProcess/API/C/WKNotificationManager.cpp
396     UIProcess/API/C/WKNotificationPermissionRequest.cpp
397     UIProcess/API/C/WKOpenPanelParametersRef.cpp
398     UIProcess/API/C/WKOpenPanelResultListener.cpp
399     UIProcess/API/C/WKPage.cpp
400     UIProcess/API/C/WKPageConfigurationRef.cpp
401     UIProcess/API/C/WKPageGroup.cpp
402     UIProcess/API/C/WKPreferences.cpp
403     UIProcess/API/C/WKProtectionSpace.cpp
404     UIProcess/API/C/WKResourceCacheManager.cpp
405     UIProcess/API/C/WKSessionStateRef.cpp
406     UIProcess/API/C/WKTextChecker.cpp
407     UIProcess/API/C/WKUserContentControllerRef.cpp
408     UIProcess/API/C/WKUserMediaPermissionCheck.cpp
409     UIProcess/API/C/WKUserMediaPermissionRequest.cpp
410     UIProcess/API/C/WKViewportAttributes.cpp
411     UIProcess/API/C/WKWebsiteDataStoreRef.cpp
412     UIProcess/API/C/WKWebsitePolicies.cpp
413     UIProcess/API/C/WKWindowFeaturesRef.cpp
414
415     UIProcess/Authentication/AuthenticationChallengeProxy.cpp
416     UIProcess/Authentication/AuthenticationDecisionListener.cpp
417     UIProcess/Authentication/WebCredential.cpp
418     UIProcess/Authentication/WebProtectionSpace.cpp
419
420     UIProcess/Automation/WebAutomationSession.cpp
421
422     UIProcess/Downloads/DownloadProxy.cpp
423     UIProcess/Downloads/DownloadProxyMap.cpp
424
425     UIProcess/Gamepad/UIGamepad.cpp
426     UIProcess/Gamepad/UIGamepadProvider.cpp
427
428     UIProcess/Launcher/ProcessLauncher.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/WebSWClientConnection.cpp
545     WebProcess/Storage/WebSWContextManagerConnection.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/NetworkConnectionToWebProcess.messages.in
603     NetworkProcess/NetworkProcess.messages.in
604     NetworkProcess/NetworkResourceLoader.messages.in
605     NetworkProcess/NetworkSocketStream.messages.in
606
607     NetworkProcess/cache/CacheStorageEngineConnection.messages.in
608
609     NetworkProcess/webrtc/NetworkRTCMonitor.messages.in
610     NetworkProcess/webrtc/NetworkRTCProvider.messages.in
611     NetworkProcess/webrtc/NetworkRTCSocket.messages.in
612
613     PluginProcess/PluginControllerProxy.messages.in
614     PluginProcess/PluginProcess.messages.in
615     PluginProcess/WebProcessConnection.messages.in
616
617     Shared/ChildProcess.messages.in
618     Shared/WebConnection.messages.in
619
620     Shared/Authentication/AuthenticationManager.messages.in
621
622     Shared/Plugins/NPObjectMessageReceiver.messages.in
623
624     StorageProcess/StorageProcess.messages.in
625     StorageProcess/StorageToWebProcessConnection.messages.in
626
627     StorageProcess/IndexedDB/WebIDBConnectionToClient.messages.in
628
629     StorageProcess/ServiceWorker/WebSWServerConnection.messages.in
630
631     UIProcess/DrawingAreaProxy.messages.in
632     UIProcess/RemoteWebInspectorProxy.messages.in
633     UIProcess/VisitedLinkStore.messages.in
634     UIProcess/WebCookieManagerProxy.messages.in
635     UIProcess/WebFullScreenManagerProxy.messages.in
636     UIProcess/WebGeolocationManagerProxy.messages.in
637     UIProcess/WebInspectorProxy.messages.in
638     UIProcess/WebPageProxy.messages.in
639     UIProcess/WebPasteboardProxy.messages.in
640     UIProcess/WebProcessPool.messages.in
641     UIProcess/WebProcessProxy.messages.in
642     UIProcess/WebResourceLoadStatisticsStore.messages.in
643
644     UIProcess/Automation/WebAutomationSession.messages.in
645
646     UIProcess/Downloads/DownloadProxy.messages.in
647
648     UIProcess/Network/NetworkProcessProxy.messages.in
649
650     UIProcess/Plugins/PluginProcessProxy.messages.in
651
652     UIProcess/Storage/StorageProcessProxy.messages.in
653
654     UIProcess/UserContent/WebUserContentControllerProxy.messages.in
655
656     UIProcess/WebStorage/StorageManager.messages.in
657
658     WebProcess/WebProcess.messages.in
659
660     WebProcess/Automation/WebAutomationSessionProxy.messages.in
661
662     WebProcess/Cache/WebCacheStorageConnection.messages.in
663
664     WebProcess/Cookies/WebCookieManager.messages.in
665
666     WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.messages.in
667
668     WebProcess/FullScreen/WebFullScreenManager.messages.in
669
670     WebProcess/Geolocation/WebGeolocationManager.messages.in
671
672     WebProcess/Network/webrtc/WebRTCMonitor.messages.in
673     WebProcess/Network/webrtc/WebRTCResolver.messages.in
674     WebProcess/Network/webrtc/WebRTCSocket.messages.in
675
676     WebProcess/Network/NetworkProcessConnection.messages.in
677     WebProcess/Network/WebResourceLoader.messages.in
678     WebProcess/Network/WebSocketStream.messages.in
679
680     WebProcess/Notifications/WebNotificationManager.messages.in
681
682     WebProcess/Plugins/PluginProcessConnection.messages.in
683     WebProcess/Plugins/PluginProcessConnectionManager.messages.in
684     WebProcess/Plugins/PluginProxy.messages.in
685
686     WebProcess/Storage/ServiceWorkerClientFetch.messages.in
687     WebProcess/Storage/WebSWClientConnection.messages.in
688     WebProcess/Storage/WebSWContextManagerConnection.messages.in
689
690     WebProcess/UserContent/WebUserContentController.messages.in
691
692     WebProcess/WebPage/DrawingArea.messages.in
693     WebProcess/WebPage/EventDispatcher.messages.in
694     WebProcess/WebPage/RemoteWebInspectorUI.messages.in
695     WebProcess/WebPage/VisitedLinkTableController.messages.in
696     WebProcess/WebPage/WebInspector.messages.in
697     WebProcess/WebPage/WebInspectorInterruptDispatcher.messages.in
698     WebProcess/WebPage/WebInspectorUI.messages.in
699     WebProcess/WebPage/WebPage.messages.in
700
701     WebProcess/WebStorage/StorageAreaMap.messages.in
702 )
703
704 set(WebKit_LIBRARIES
705     WebCore
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 set(PluginProcess_LIBRARIES
721     WebKit
722 )
723
724 if (ENABLE_GRAPHICS_CONTEXT_3D)
725     # For platforms that want to use system-provided OpenGL (ES) / EGL headers,
726     # these include directories, libraries or definitions need to be
727     # added before the ANGLE directories.
728     if (USE_LIBEPOXY)
729         list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
730             ${LIBEPOXY_INCLUDE_DIRS}
731         )
732         list(APPEND WebKit_LIBRARIES
733             ${LIBEPOXY_LIBRARIES}
734         )
735         add_definitions(${LIBEPOXY_DEFINITIONS})
736     else ()
737         if (USE_OPENGL)
738             list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
739                 ${OPENGL_INCLUDE_DIRS}
740             )
741             list(APPEND WebKit_LIBRARIES
742                 ${OPENGL_LIBRARIES}
743             )
744             add_definitions(${OPENGL_DEFINITIONS})
745         elseif (USE_OPENGL_ES_2)
746             list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
747                 ${OPENGLES2_INCLUDE_DIRS}
748             )
749             list(APPEND WebKit_LIBRARIES
750                 ${OPENGLES2_LIBRARIES}
751             )
752             add_definitions(${OPENGLES2_DEFINITIONS})
753         endif ()
754
755         if (USE_EGL)
756             list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
757                 ${EGL_INCLUDE_DIRS}
758             )
759             list(APPEND WebKit_LIBRARIES
760                 ${EGL_LIBRARIES}
761             )
762             add_definitions(${EGL_DEFINITIONS})
763         endif ()
764     endif ()
765
766     list(APPEND WebKit_INCLUDE_DIRECTORIES
767         "${THIRDPARTY_DIR}/ANGLE"
768         "${THIRDPARTY_DIR}/ANGLE/include/KHR"
769     )
770 endif ()
771
772 if (WIN32 AND INTERNAL_BUILD)
773     set(JavaScriptCore_SCRIPTS_DIR "${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore/Scripts")
774 else ()
775     set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
776 endif ()
777
778 if (COMPILER_IS_GCC_OR_CLANG)
779     set(ATOMIC_TEST_SOURCE
780     "
781         #include <atomic>
782         int main() { std::atomic<int64_t> i(0); i++; return 0; }
783     "
784     )
785     check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_IS_BUILTIN)
786     if (NOT ATOMIC_INT64_IS_BUILTIN)
787         set(CMAKE_REQUIRED_LIBRARIES atomic)
788         check_cxx_source_compiles("${ATOMIC_TEST_SOURCE}" ATOMIC_INT64_REQUIRES_LIBATOMIC)
789         if (ATOMIC_INT64_REQUIRES_LIBATOMIC)
790             list(APPEND WebKit_LIBRARIES atomic)
791         endif ()
792         unset(CMAKE_REQUIRED_LIBRARIES)
793     endif ()
794 endif ()
795
796 if (UNIX)
797     check_function_exists(shm_open SHM_OPEN_EXISTS)
798     if (NOT SHM_OPEN_EXISTS)
799         set(CMAKE_REQUIRED_LIBRARIES rt)
800         check_function_exists(shm_open SHM_OPEN_REQUIRES_LIBRT)
801         if (SHM_OPEN_REQUIRES_LIBRT)
802             list(APPEND WebKit_LIBRARIES rt)
803         endif ()
804         unset(CMAKE_REQUIRED_LIBRARIES)
805     endif ()
806 endif ()
807
808 macro(ADD_WEBKIT_PREFIX_HEADER _target)
809     if (WebKit_USE_PREFIX_HEADER)
810         get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
811         if (${OLD_COMPILE_FLAGS} STREQUAL "OLD_COMPILE_FLAGS-NOTFOUND")
812             set(OLD_COMPILE_FLAGS "")
813         endif ()
814         set_target_properties(${_target} PROPERTIES COMPILE_FLAGS "${OLD_COMPILE_FLAGS} -include ${WEBKIT_DIR}/WebKit2Prefix.h")
815     endif ()
816 endmacro()
817
818 set(WebKit_AUTOMATION_PROTOCOL_GENERATOR_EXTRA_FLAGS
819 )
820
821 WEBKIT_FRAMEWORK_DECLARE(WebKit)
822 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
823
824 # Helper macro which wraps generate-message-receiver.py and generate-message-header.py scripts
825 #   _output_source is a list name which will contain generated sources.(eg. WebKit_SOURCES)
826 #   _input_files are messages.in files to generate.
827 macro(GENERATE_MESSAGE_SOURCES _output_source _input_files)
828     foreach (_file ${_input_files})
829         get_filename_component(_name ${_file} NAME_WE)
830         add_custom_command(
831             OUTPUT ${DERIVED_SOURCES_WEBKIT_DIR}/${_name}MessageReceiver.cpp ${DERIVED_SOURCES_WEBKIT_DIR}/${_name}Messages.h
832             MAIN_DEPENDENCY ${_file}
833             DEPENDS ${WEBKIT_DIR}/Scripts/webkit/__init__.py
834                     ${WEBKIT_DIR}/Scripts/webkit/messages.py
835                     ${WEBKIT_DIR}/Scripts/webkit/model.py
836                     ${WEBKIT_DIR}/Scripts/webkit/parser.py
837             COMMAND ${PYTHON_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-message-receiver.py ${_file} > ${DERIVED_SOURCES_WEBKIT_DIR}/${_name}MessageReceiver.cpp
838             COMMAND ${PYTHON_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-messages-header.py ${_file} > ${DERIVED_SOURCES_WEBKIT_DIR}/${_name}Messages.h
839             WORKING_DIRECTORY ${WEBKIT_DIR}
840             VERBATIM)
841
842         list(APPEND ${_output_source} ${DERIVED_SOURCES_WEBKIT_DIR}/${_name}MessageReceiver.cpp)
843     endforeach ()
844 endmacro()
845 GENERATE_MESSAGE_SOURCES(WebKit_DERIVED_SOURCES "${WebKit_MESSAGES_IN_FILES}")
846
847 set(WebKit_AUTOMATION_PROTOCOL_GENERATOR_SCRIPTS
848     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py
849     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/cpp_generator.py
850     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/cpp_generator_templates.py
851     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_backend_dispatcher_header.py
852     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_backend_dispatcher_implementation.py
853     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_frontend_dispatcher_header.py
854     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_frontend_dispatcher_implementation.py
855     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_protocol_types_header.py
856     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generate_cpp_protocol_types_implementation.py
857     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generator.py
858     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/generator_templates.py
859     ${PROTOCOL_GENERATOR_SCRIPTS_DIR}/codegen/models.py
860 )
861
862 set(WebKit_AUTOMATION_PROTOCOL_GENERATOR_INPUTS
863     ${WEBKIT_DIR}/UIProcess/Automation/Automation.json
864 )
865
866 add_custom_command(
867     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
868     MAIN_DEPENDENCY ${WebKit_AUTOMATION_PROTOCOL_GENERATOR_INPUTS}
869     DEPENDS ${WebKit_AUTOMATION_PROTOCOL_GENERATOR_SCRIPTS}
870     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}
871     VERBATIM)
872
873 list(APPEND WebKit_HEADERS
874     ${DERIVED_SOURCES_WEBKIT_DIR}/AutomationBackendDispatchers.h
875     ${DERIVED_SOURCES_WEBKIT_DIR}/AutomationFrontendDispatchers.h
876     ${DERIVED_SOURCES_WEBKIT_DIR}/AutomationProtocolObjects.h
877 )
878
879 list(APPEND WebKit_SOURCES
880     ${DERIVED_SOURCES_WEBKIT_DIR}/AutomationBackendDispatchers.cpp
881     ${DERIVED_SOURCES_WEBKIT_DIR}/AutomationFrontendDispatchers.cpp
882     ${DERIVED_SOURCES_WEBKIT_DIR}/AutomationProtocolObjects.cpp
883 )
884
885 add_custom_command(
886     OUTPUT ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxyScriptSource.h ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxy.min.js
887     MAIN_DEPENDENCY ${WEBKIT_DIR}/WebProcess/Automation/WebAutomationSessionProxy.js
888     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
889     COMMAND ${CMAKE_COMMAND} -E echo "//# sourceURL=__InjectedScript_WebAutomationSessionProxy.js" > ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxy.min.js
890     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBKIT_DIR}/WebProcess/Automation/WebAutomationSessionProxy.js >> ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxy.min.js
891     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl WebAutomationSessionProxyScriptSource ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxy.min.js ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxyScriptSource.h
892     VERBATIM)
893
894 list(APPEND WebKit_HEADERS
895     ${DERIVED_SOURCES_WEBKIT_DIR}/WebAutomationSessionProxyScriptSource.h
896 )
897
898 set(WebKit_WEB_PREFERENCES_TEMPLATES
899     ${WEBKIT_DIR}/Scripts/PreferencesTemplates/WebPageUpdatePreferences.cpp.erb
900     ${WEBKIT_DIR}/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb
901     ${WEBKIT_DIR}/Scripts/PreferencesTemplates/WebPreferencesExperimentalFeatures.cpp.erb
902     ${WEBKIT_DIR}/Scripts/PreferencesTemplates/WebPreferencesKeys.cpp.erb
903     ${WEBKIT_DIR}/Scripts/PreferencesTemplates/WebPreferencesKeys.h.erb
904     ${WEBKIT_DIR}/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb
905 )
906
907 add_custom_command(
908     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
909     MAIN_DEPENDENCY ${WEBKIT_DIR}/Shared/WebPreferences.yaml
910     DEPENDS ${WebKit_WEB_PREFERENCES_TEMPLATES}
911     COMMAND ${RUBY_EXECUTABLE} ${WEBKIT_DIR}/Scripts/GeneratePreferences.rb --input ${WEBKIT_DIR}/Shared/WebPreferences.yaml --outputDir "${DERIVED_SOURCES_WEBKIT_DIR}"
912     VERBATIM)
913
914 list(APPEND WebKit_HEADERS
915     ${DERIVED_SOURCES_WEBKIT_DIR}/WebPreferencesDefinitions.h
916     ${DERIVED_SOURCES_WEBKIT_DIR}/WebPreferencesKeys.h
917 )
918
919 list(APPEND WebKit_SOURCES
920     ${DERIVED_SOURCES_WEBKIT_DIR}/WebPageUpdatePreferences.cpp
921     ${DERIVED_SOURCES_WEBKIT_DIR}/WebPreferencesExperimentalFeatures.cpp
922     ${DERIVED_SOURCES_WEBKIT_DIR}/WebPreferencesKeys.cpp
923     ${DERIVED_SOURCES_WEBKIT_DIR}/WebPreferencesStoreDefaultsMap.cpp
924 )
925
926
927 list(APPEND WebKit_SOURCES ${WebKit_DERIVED_SOURCES})
928
929 WEBKIT_FRAMEWORK(WebKit)
930 add_dependencies(WebKit WebCore ${WEBKIT_EXTRA_DEPENDENCIES})
931 ADD_WEBKIT_PREFIX_HEADER(WebKit)
932
933 if (COMPILER_IS_GCC_OR_CLANG AND NOT APPLE)
934     target_link_libraries(WebKit -Wl,--start-group WebCore WebCoreDerivedSources -Wl,--end-group)
935 endif ()
936
937 add_executable(WebProcess ${WebProcess_SOURCES})
938 ADD_WEBKIT_PREFIX_HEADER(WebProcess)
939 target_link_libraries(WebProcess ${WebProcess_LIBRARIES})
940
941 if (WebKit_WebProcess_OUTPUT_NAME)
942     set_target_properties(WebProcess PROPERTIES OUTPUT_NAME ${WebKit_WebProcess_OUTPUT_NAME})
943 endif ()
944
945 add_executable(NetworkProcess ${NetworkProcess_SOURCES})
946 ADD_WEBKIT_PREFIX_HEADER(NetworkProcess)
947 target_link_libraries(NetworkProcess ${NetworkProcess_LIBRARIES})
948
949 if (WebKit_NetworkProcess_OUTPUT_NAME)
950     set_target_properties(NetworkProcess PROPERTIES OUTPUT_NAME ${WebKit_NetworkProcess_OUTPUT_NAME})
951 endif ()
952
953 add_executable(StorageProcess ${StorageProcess_SOURCES})
954 ADD_WEBKIT_PREFIX_HEADER(StorageProcess)
955 target_link_libraries(StorageProcess ${StorageProcess_LIBRARIES})
956 install(TARGETS StorageProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
957
958 if (WebKit_StorageProcess_OUTPUT_NAME)
959     set_target_properties(StorageProcess PROPERTIES OUTPUT_NAME ${WebKit_StorageProcess_OUTPUT_NAME})
960 endif ()
961
962 if (COMPILER_IS_GCC_OR_CLANG)
963     WEBKIT_ADD_TARGET_CXX_FLAGS(WebKit -Wno-unused-parameter)
964     WEBKIT_ADD_TARGET_CXX_FLAGS(WebProcess -Wno-unused-parameter)
965     WEBKIT_ADD_TARGET_CXX_FLAGS(NetworkProcess -Wno-unused-parameter)
966     WEBKIT_ADD_TARGET_CXX_FLAGS(StorageProcess -Wno-unused-parameter)
967 endif ()
968
969 # FIXME: Mac should build a plugin process.
970 if (ENABLE_PLUGIN_PROCESS AND NOT "${PORT}" STREQUAL "Mac")
971     add_definitions(-DENABLE_PLUGIN_PROCESS=1)
972     add_executable(PluginProcess ${PluginProcess_SOURCES})
973     ADD_WEBKIT_PREFIX_HEADER(PluginProcess)
974     target_link_libraries(PluginProcess ${PluginProcess_LIBRARIES})
975     install(TARGETS PluginProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
976
977     if (COMPILER_IS_GCC_OR_CLANG)
978         WEBKIT_ADD_TARGET_CXX_FLAGS(PluginProcess -Wno-unused-parameter)
979     endif ()
980
981     if (WebKit_PluginProcess_OUTPUT_NAME)
982       set_target_properties(PluginProcess PROPERTIES OUTPUT_NAME ${WebKit_PluginProcess_OUTPUT_NAME})
983     endif ()
984 endif ()
985
986 if ("${PORT}" STREQUAL "Mac")
987     WEBKIT_DEFINE_XPC_SERVICES()
988 else ()
989     WEBKIT_POPULATE_LIBRARY_VERSION(WEBKIT)
990
991     set_target_properties(WebKit PROPERTIES VERSION ${WEBKIT_VERSION} SOVERSION ${WEBKIT_VERSION_MAJOR})
992
993     install(TARGETS WebKit WebProcess NetworkProcess
994         LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
995         RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}"
996     )
997 endif ()