1de209b48889ef16514ce6a7ffa425dde7858915
[WebKit-https.git] / Source / WebKit2 / CMakeLists.txt
1 set(WebKit2_INCLUDE_DIRECTORIES
2     "${JAVASCRIPTCORE_DIR}/llint"
3     "${WEBKIT2_DIR}"
4     "${WEBKIT2_DIR}/DatabaseProcess"
5     "${WEBKIT2_DIR}/DatabaseProcess/IndexedDB"
6     "${WEBKIT2_DIR}/DatabaseProcess/IndexedDB/sqlite"
7     "${WEBKIT2_DIR}/NetworkProcess"
8     "${WEBKIT2_DIR}/NetworkProcess/FileAPI"
9     "${WEBKIT2_DIR}/NetworkProcess/cache"
10     "${WEBKIT2_DIR}/Platform"
11     "${WEBKIT2_DIR}/Platform/IPC"
12     "${WEBKIT2_DIR}/PluginProcess"
13     "${WEBKIT2_DIR}/Shared"
14     "${WEBKIT2_DIR}/Shared/API"
15     "${WEBKIT2_DIR}/Shared/API/c"
16     "${WEBKIT2_DIR}/Shared/Authentication"
17     "${WEBKIT2_DIR}/Shared/CoreIPCSupport"
18     "${WEBKIT2_DIR}/Shared/Databases"
19     "${WEBKIT2_DIR}/Shared/Databases/IndexedDB"
20     "${WEBKIT2_DIR}/Shared/Downloads"
21     "${WEBKIT2_DIR}/Shared/FileAPI"
22     "${WEBKIT2_DIR}/Shared/Network"
23     "${WEBKIT2_DIR}/Shared/Network/CustomProtocols"
24     "${WEBKIT2_DIR}/Shared/Plugins"
25     "${WEBKIT2_DIR}/Shared/Plugins/Netscape"
26     "${WEBKIT2_DIR}/Shared/Plugins/Netscape/x11"
27     "${WEBKIT2_DIR}/Shared/WebsiteData"
28     "${WEBKIT2_DIR}/UIProcess"
29     "${WEBKIT2_DIR}/UIProcess/API"
30     "${WEBKIT2_DIR}/UIProcess/API/C"
31     "${WEBKIT2_DIR}/UIProcess/API/cpp"
32     "${WEBKIT2_DIR}/UIProcess/Authentication"
33     "${WEBKIT2_DIR}/UIProcess/Databases"
34     "${WEBKIT2_DIR}/UIProcess/Downloads"
35     "${WEBKIT2_DIR}/UIProcess/InspectorServer"
36     "${WEBKIT2_DIR}/UIProcess/Launcher"
37     "${WEBKIT2_DIR}/UIProcess/Network"
38     "${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols"
39     "${WEBKIT2_DIR}/UIProcess/Notifications"
40     "${WEBKIT2_DIR}/UIProcess/Plugins"
41     "${WEBKIT2_DIR}/UIProcess/Storage"
42     "${WEBKIT2_DIR}/UIProcess/UserContent"
43     "${WEBKIT2_DIR}/UIProcess/WebsiteData"
44     "${WEBKIT2_DIR}/WebProcess"
45     "${WEBKIT2_DIR}/WebProcess/ApplicationCache"
46     "${WEBKIT2_DIR}/WebProcess/Battery"
47     "${WEBKIT2_DIR}/WebProcess/Cookies"
48     "${WEBKIT2_DIR}/WebProcess/Databases"
49     "${WEBKIT2_DIR}/WebProcess/Databases/IndexedDB"
50     "${WEBKIT2_DIR}/WebProcess/FileAPI"
51     "${WEBKIT2_DIR}/WebProcess/FullScreen"
52     "${WEBKIT2_DIR}/WebProcess/Geolocation"
53     "${WEBKIT2_DIR}/WebProcess/IconDatabase"
54     "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
55     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API"
56     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
57     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/DOM"
58     "${WEBKIT2_DIR}/WebProcess/Launching"
59     "${WEBKIT2_DIR}/WebProcess/MediaCache"
60     "${WEBKIT2_DIR}/WebProcess/MediaStream"
61     "${WEBKIT2_DIR}/WebProcess/Network"
62     "${WEBKIT2_DIR}/WebProcess/Notifications"
63     "${WEBKIT2_DIR}/WebProcess/OriginData"
64     "${WEBKIT2_DIR}/WebProcess/Plugins"
65     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape"
66     "${WEBKIT2_DIR}/WebProcess/ResourceCache"
67     "${WEBKIT2_DIR}/WebProcess/Storage"
68     "${WEBKIT2_DIR}/WebProcess/UserContent"
69     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport"
70     "${WEBKIT2_DIR}/WebProcess/WebPage"
71     "${WEBCORE_DIR}"
72     "${WEBCORE_DIR}/Modules/battery"
73     "${WEBCORE_DIR}/Modules/mediastream"
74     "${WEBCORE_DIR}/Modules/networkinfo"
75     "${WEBCORE_DIR}/Modules/notifications"
76     "${WEBCORE_DIR}/Modules/streams"
77     "${WEBCORE_DIR}/Modules/vibration"
78     "${WEBCORE_DIR}/Modules/webdatabase"
79     "${WEBCORE_DIR}/accessibility"
80     "${WEBCORE_DIR}/bindings/js"
81     "${WEBCORE_DIR}/bindings"
82     "${WEBCORE_DIR}/bridge"
83     "${WEBCORE_DIR}/bridge/jsc"
84     "${WEBCORE_DIR}/css"
85     "${WEBCORE_DIR}/dom"
86     "${WEBCORE_DIR}/dom/default"
87     "${WEBCORE_DIR}/editing"
88     "${WEBCORE_DIR}/fileapi"
89     "${WEBCORE_DIR}/history"
90     "${WEBCORE_DIR}/html"
91     "${WEBCORE_DIR}/html/shadow"
92     "${WEBCORE_DIR}/html/track"
93     "${WEBCORE_DIR}/inspector"
94     "${WEBCORE_DIR}/loader"
95     "${WEBCORE_DIR}/loader/archive"
96     "${WEBCORE_DIR}/loader/icon"
97     "${WEBCORE_DIR}/loader/cache"
98     "${WEBCORE_DIR}/page"
99     "${WEBCORE_DIR}/page/animation"
100     "${WEBCORE_DIR}/page/scrolling"
101     "${WEBCORE_DIR}/platform"
102     "${WEBCORE_DIR}/platform/animation"
103     "${WEBCORE_DIR}/platform/audio"
104     "${WEBCORE_DIR}/platform/graphics"
105     "${WEBCORE_DIR}/platform/graphics/filters"
106     "${WEBCORE_DIR}/platform/graphics/harfbuzz"
107     "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
108     "${WEBCORE_DIR}/platform/graphics/surfaces"
109     "${WEBCORE_DIR}/platform/graphics/texmap"
110     "${WEBCORE_DIR}/platform/graphics/transforms"
111     "${WEBCORE_DIR}/platform/mediastream"
112     "${WEBCORE_DIR}/platform/network"
113     "${WEBCORE_DIR}/platform/sql"
114     "${WEBCORE_DIR}/platform/text"
115     "${WEBCORE_DIR}/plugins"
116     "${WEBCORE_DIR}/rendering"
117     "${WEBCORE_DIR}/rendering/line"
118     "${WEBCORE_DIR}/rendering/shapes"
119     "${WEBCORE_DIR}/rendering/style"
120     "${WEBCORE_DIR}/storage"
121     "${WEBCORE_DIR}/style"
122     "${WEBCORE_DIR}/svg"
123     "${WEBCORE_DIR}/svg/graphics"
124     "${WEBCORE_DIR}/svg/properties"
125     "${JAVASCRIPTCORE_DIR}"
126     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
127     "${JAVASCRIPTCORE_DIR}/API"
128     "${JAVASCRIPTCORE_DIR}/assembler"
129     "${JAVASCRIPTCORE_DIR}/bytecode"
130     "${JAVASCRIPTCORE_DIR}/bytecompiler"
131     "${JAVASCRIPTCORE_DIR}/collector/handles"
132     "${JAVASCRIPTCORE_DIR}/dfg"
133     "${JAVASCRIPTCORE_DIR}/disassembler"
134     "${JAVASCRIPTCORE_DIR}/heap"
135     "${JAVASCRIPTCORE_DIR}/interpreter"
136     "${JAVASCRIPTCORE_DIR}/jit"
137     "${JAVASCRIPTCORE_DIR}/parser"
138     "${JAVASCRIPTCORE_DIR}/profiler"
139     "${JAVASCRIPTCORE_DIR}/runtime"
140     "${WTF_DIR}"
141     "${DERIVED_SOURCES_DIR}"
142     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
143     "${DERIVED_SOURCES_WEBCORE_DIR}"
144     "${DERIVED_SOURCES_WEBKIT2_DIR}"
145     "${DERIVED_SOURCES_WEBKIT2_DIR}/include"
146     "${CMAKE_BINARY_DIR}"
147     "${CMAKE_SOURCE_DIR}/Source"
148 )
149
150 set(WebKit2_SYSTEM_INCLUDE_DIRECTORIES "")
151
152 if (ENABLE_GRAPHICS_CONTEXT_3D)
153     list(APPEND WebKit2_INCLUDE_DIRECTORIES
154         "${THIRDPARTY_DIR}/ANGLE"
155         "${THIRDPARTY_DIR}/ANGLE/include/KHR"
156     )
157 endif ()
158
159 set(NetworkProcess_COMMON_SOURCES
160     NetworkProcess/NetworkConnectionToWebProcess.cpp
161     NetworkProcess/NetworkProcess.cpp
162     NetworkProcess/NetworkProcessPlatformStrategies.cpp
163     NetworkProcess/NetworkResourceLoader.cpp
164
165     NetworkProcess/FileAPI/NetworkBlobRegistry.cpp
166
167     NetworkProcess/cache/NetworkCache.cpp
168     NetworkProcess/cache/NetworkCacheBlobStorage.cpp
169     NetworkProcess/cache/NetworkCacheCoders.cpp
170     NetworkProcess/cache/NetworkCacheData.cpp
171     NetworkProcess/cache/NetworkCacheDecoder.cpp
172     NetworkProcess/cache/NetworkCacheEncoder.cpp
173     NetworkProcess/cache/NetworkCacheEntry.cpp
174     NetworkProcess/cache/NetworkCacheFileSystem.cpp
175     NetworkProcess/cache/NetworkCacheKey.cpp
176     NetworkProcess/cache/NetworkCacheStatistics.cpp
177     NetworkProcess/cache/NetworkCacheStorage.cpp
178 )
179
180 set(WebKit2_SOURCES
181     DatabaseProcess/DatabaseProcess.cpp
182     DatabaseProcess/DatabaseToWebProcessConnection.cpp
183
184     DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp
185     DatabaseProcess/IndexedDB/IDBSerialization.cpp
186     DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp
187     DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.cpp
188
189     DatabaseProcess/IndexedDB/sqlite/SQLiteIDBCursor.cpp
190     DatabaseProcess/IndexedDB/sqlite/SQLiteIDBTransaction.cpp
191     DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp
192
193     Platform/Logging.cpp
194     Platform/Module.cpp
195
196     Platform/IPC/ArgumentCoders.cpp
197     Platform/IPC/ArgumentDecoder.cpp
198     Platform/IPC/ArgumentEncoder.cpp
199     Platform/IPC/Attachment.cpp
200     Platform/IPC/Connection.cpp
201     Platform/IPC/DataReference.cpp
202     Platform/IPC/MessageDecoder.cpp
203     Platform/IPC/MessageEncoder.cpp
204     Platform/IPC/MessageReceiverMap.cpp
205     Platform/IPC/MessageSender.cpp
206     Platform/IPC/StringReference.cpp
207
208     PluginProcess/PluginControllerProxy.cpp
209     PluginProcess/PluginCreationParameters.cpp
210     PluginProcess/PluginProcess.cpp
211     PluginProcess/WebProcessConnection.cpp
212
213     Shared/ActivityAssertion.cpp
214     Shared/AsyncRequest.cpp
215     Shared/BlobDataFileReferenceWithSandboxExtension.cpp
216     Shared/CacheModel.cpp
217     Shared/ChildProcess.cpp
218     Shared/ChildProcessProxy.cpp
219     Shared/ContextMenuContextData.cpp
220     Shared/DictionaryPopupInfo.cpp
221     Shared/EditorState.cpp
222     Shared/FontInfo.cpp
223     Shared/LayerTreeContext.cpp
224     Shared/NavigationActionData.cpp
225     Shared/OriginAndDatabases.cpp
226     Shared/PlatformPopupMenuData.cpp
227     Shared/PrintInfo.cpp
228     Shared/SecurityOriginData.cpp
229     Shared/SessionState.cpp
230     Shared/SessionTracker.cpp
231     Shared/ShareableBitmap.cpp
232     Shared/ShareableResource.cpp
233     Shared/StatisticsData.cpp
234     Shared/UpdateInfo.cpp
235     Shared/UserData.cpp
236     Shared/VisitedLinkTable.cpp
237     Shared/WebBackForwardListItem.cpp
238     Shared/WebBatteryStatus.cpp
239     Shared/WebCompiledContentExtension.cpp
240     Shared/WebCompiledContentExtensionData.cpp
241     Shared/WebConnection.cpp
242     Shared/WebConnectionClient.cpp
243     Shared/WebContextMenuItem.cpp
244     Shared/WebContextMenuItemData.cpp
245     Shared/WebCoreArgumentCoders.cpp
246     Shared/WebCrossThreadCopier.cpp
247     Shared/WebEvent.cpp
248     Shared/WebEventConversion.cpp
249     Shared/WebGeolocationPosition.cpp
250     Shared/WebHitTestResult.cpp
251     Shared/WebImage.cpp
252     Shared/WebKeyboardEvent.cpp
253     Shared/WebKit2Initialize.cpp
254     Shared/WebMediaSessionMetadata.cpp
255     Shared/WebMemorySampler.cpp
256     Shared/WebMouseEvent.cpp
257     Shared/WebOpenPanelParameters.cpp
258     Shared/WebPageCreationParameters.cpp
259     Shared/WebPageGroupData.cpp
260     Shared/WebPlatformTouchPoint.cpp
261     Shared/WebPopupItem.cpp
262     Shared/WebPreferencesKeys.cpp
263     Shared/WebPreferencesStore.cpp
264     Shared/WebProcessCreationParameters.cpp
265     Shared/WebRenderLayer.cpp
266     Shared/WebRenderObject.cpp
267     Shared/WebTouchEvent.cpp
268     Shared/WebWheelEvent.cpp
269
270     Shared/API/APIArray.cpp
271     Shared/API/APIData.cpp
272     Shared/API/APIDictionary.cpp
273     Shared/API/APIError.cpp
274     Shared/API/APIFrameHandle.cpp
275     Shared/API/APIGeometry.cpp
276     Shared/API/APIObject.cpp
277     Shared/API/APIPageGroupHandle.cpp
278     Shared/API/APIPageHandle.cpp
279     Shared/API/APIURLRequest.cpp
280     Shared/API/APIURLResponse.cpp
281
282     Shared/API/c/WKArray.cpp
283     Shared/API/c/WKCertificateInfo.cpp
284     Shared/API/c/WKConnectionRef.cpp
285     Shared/API/c/WKContextMenuItem.cpp
286     Shared/API/c/WKData.cpp
287     Shared/API/c/WKDeprecatedFunctions.cpp
288     Shared/API/c/WKDictionary.cpp
289     Shared/API/c/WKErrorRef.cpp
290     Shared/API/c/WKGeometry.cpp
291     Shared/API/c/WKImage.cpp
292     Shared/API/c/WKMutableArray.cpp
293     Shared/API/c/WKMutableDictionary.cpp
294     Shared/API/c/WKNumber.cpp
295     Shared/API/c/WKPluginInformation.cpp
296     Shared/API/c/WKRenderLayer.cpp
297     Shared/API/c/WKRenderObject.cpp
298     Shared/API/c/WKSecurityOriginRef.cpp
299     Shared/API/c/WKSerializedScriptValue.cpp
300     Shared/API/c/WKString.cpp
301     Shared/API/c/WKType.cpp
302     Shared/API/c/WKURL.cpp
303     Shared/API/c/WKURLRequest.cpp
304     Shared/API/c/WKURLResponse.cpp
305     Shared/API/c/WKUserContentURLPattern.cpp
306
307     Shared/Authentication/AuthenticationManager.cpp
308
309     Shared/Databases/DatabaseProcessCreationParameters.cpp
310
311     Shared/Databases/IndexedDB/IDBUtilities.cpp
312
313     Shared/Downloads/Download.cpp
314     Shared/Downloads/DownloadAuthenticationClient.cpp
315     Shared/Downloads/DownloadManager.cpp
316
317     Shared/Network/NetworkProcessCreationParameters.cpp
318     Shared/Network/NetworkResourceLoadParameters.cpp
319
320     Shared/Plugins/NPIdentifierData.cpp
321     Shared/Plugins/NPObjectMessageReceiver.cpp
322     Shared/Plugins/NPObjectProxy.cpp
323     Shared/Plugins/NPRemoteObjectMap.cpp
324     Shared/Plugins/NPVariantData.cpp
325     Shared/Plugins/PluginProcessCreationParameters.cpp
326
327     Shared/Plugins/Netscape/NetscapePluginModule.cpp
328     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
329     Shared/Plugins/Netscape/PluginInformation.cpp
330
331     Shared/WebsiteData/WebsiteData.cpp
332
333     UIProcess/DrawingAreaProxy.cpp
334     UIProcess/FrameLoadState.cpp
335     UIProcess/GeolocationPermissionRequestManagerProxy.cpp
336     UIProcess/GeolocationPermissionRequestProxy.cpp
337     UIProcess/LegacySessionStateCodingNone.cpp
338     UIProcess/PageLoadState.cpp
339     UIProcess/ProcessAssertion.cpp
340     UIProcess/ProcessThrottler.cpp
341     UIProcess/ResponsivenessTimer.cpp
342     UIProcess/StatisticsRequest.cpp
343     UIProcess/TextCheckerCompletion.cpp
344     UIProcess/UserMediaPermissionRequestManagerProxy.cpp
345     UIProcess/UserMediaPermissionRequestProxy.cpp
346     UIProcess/VisitedLinkProvider.cpp
347     UIProcess/WebBackForwardList.cpp
348     UIProcess/WebBatteryManagerProxy.cpp
349     UIProcess/WebBatteryProvider.cpp
350     UIProcess/WebColorPicker.cpp
351     UIProcess/WebConnectionToWebProcess.cpp
352     UIProcess/WebContextClient.cpp
353     UIProcess/WebContextConnectionClient.cpp
354     UIProcess/WebContextInjectedBundleClient.cpp
355     UIProcess/WebContextMenuProxy.cpp
356     UIProcess/WebCookieManagerProxy.cpp
357     UIProcess/WebCookieManagerProxyClient.cpp
358     UIProcess/WebDatabaseManagerProxy.cpp
359     UIProcess/WebDatabaseManagerProxyClient.cpp
360     UIProcess/WebEditCommandProxy.cpp
361     UIProcess/WebFindClient.cpp
362     UIProcess/WebFormClient.cpp
363     UIProcess/WebFormSubmissionListenerProxy.cpp
364     UIProcess/WebFrameListenerProxy.cpp
365     UIProcess/WebFramePolicyListenerProxy.cpp
366     UIProcess/WebFrameProxy.cpp
367     UIProcess/WebFullScreenManagerProxy.cpp
368     UIProcess/WebGeolocationManagerProxy.cpp
369     UIProcess/WebGeolocationProvider.cpp
370     UIProcess/WebGrammarDetail.cpp
371     UIProcess/WebIconDatabase.cpp
372     UIProcess/WebIconDatabaseClient.cpp
373     UIProcess/WebInspectorProxy.cpp
374     UIProcess/WebMediaCacheManagerProxy.cpp
375     UIProcess/WebNavigationState.cpp
376     UIProcess/WebOpenPanelResultListenerProxy.cpp
377     UIProcess/WebPageDiagnosticLoggingClient.cpp
378     UIProcess/WebPageGroup.cpp
379     UIProcess/WebPageInjectedBundleClient.cpp
380     UIProcess/WebPageProxy.cpp
381     UIProcess/WebPasteboardProxy.cpp
382     UIProcess/WebPreferences.cpp
383     UIProcess/WebProcessLifetimeObserver.cpp
384     UIProcess/WebProcessLifetimeTracker.cpp
385     UIProcess/WebProcessPool.cpp
386     UIProcess/WebProcessProxy.cpp
387     UIProcess/WebTextChecker.cpp
388     UIProcess/WebTextCheckerClient.cpp
389     UIProcess/WebVibrationProvider.cpp
390     UIProcess/WebVibrationProxy.cpp
391     UIProcess/WebViewportAttributes.cpp
392
393     UIProcess/API/APIFrameInfo.cpp
394     UIProcess/API/APINavigation.cpp
395     UIProcess/API/APINavigationData.cpp
396     UIProcess/API/APIPageConfiguration.cpp
397     UIProcess/API/APIProcessPoolConfiguration.cpp
398     UIProcess/API/APISession.cpp
399     UIProcess/API/APISessionState.cpp
400     UIProcess/API/APIUserContentExtension.cpp
401     UIProcess/API/APIUserContentExtensionStore.cpp
402     UIProcess/API/APIWebsiteDataStore.cpp
403     UIProcess/API/APIWindowFeatures.cpp
404
405     UIProcess/API/C/WKApplicationCacheManager.cpp
406     UIProcess/API/C/WKAuthenticationChallenge.cpp
407     UIProcess/API/C/WKAuthenticationDecisionListener.cpp
408     UIProcess/API/C/WKBackForwardListItemRef.cpp
409     UIProcess/API/C/WKBackForwardListRef.cpp
410     UIProcess/API/C/WKBatteryManager.cpp
411     UIProcess/API/C/WKBatteryStatus.cpp
412     UIProcess/API/C/WKContext.cpp
413     UIProcess/API/C/WKContextConfigurationRef.cpp
414     UIProcess/API/C/WKCookieManager.cpp
415     UIProcess/API/C/WKCredential.cpp
416     UIProcess/API/C/WKDatabaseManager.cpp
417     UIProcess/API/C/WKDownload.cpp
418     UIProcess/API/C/WKFormSubmissionListener.cpp
419     UIProcess/API/C/WKFrame.cpp
420     UIProcess/API/C/WKFrameInfoRef.cpp
421     UIProcess/API/C/WKFramePolicyListener.cpp
422     UIProcess/API/C/WKGeolocationManager.cpp
423     UIProcess/API/C/WKGeolocationPermissionRequest.cpp
424     UIProcess/API/C/WKGeolocationPosition.cpp
425     UIProcess/API/C/WKGrammarDetail.cpp
426     UIProcess/API/C/WKHitTestResult.cpp
427     UIProcess/API/C/WKIconDatabase.cpp
428     UIProcess/API/C/WKInspector.cpp
429     UIProcess/API/C/WKKeyValueStorageManager.cpp
430     UIProcess/API/C/WKMediaCacheManager.cpp
431     UIProcess/API/C/WKMediaSessionMetadata.cpp
432     UIProcess/API/C/WKNavigationActionRef.cpp
433     UIProcess/API/C/WKNavigationDataRef.cpp
434     UIProcess/API/C/WKNavigationRef.cpp
435     UIProcess/API/C/WKNavigationResponseRef.cpp
436     UIProcess/API/C/WKNotification.cpp
437     UIProcess/API/C/WKNotificationManager.cpp
438     UIProcess/API/C/WKNotificationPermissionRequest.cpp
439     UIProcess/API/C/WKOpenPanelParameters.cpp
440     UIProcess/API/C/WKOpenPanelResultListener.cpp
441     UIProcess/API/C/WKOriginDataManager.cpp
442     UIProcess/API/C/WKPage.cpp
443     UIProcess/API/C/WKPageGroup.cpp
444     UIProcess/API/C/WKPluginSiteDataManager.cpp
445     UIProcess/API/C/WKPreferences.cpp
446     UIProcess/API/C/WKProtectionSpace.cpp
447     UIProcess/API/C/WKResourceCacheManager.cpp
448     UIProcess/API/C/WKSessionStateRef.cpp
449     UIProcess/API/C/WKTextChecker.cpp
450     UIProcess/API/C/WKUserMediaPermissionRequest.cpp
451     UIProcess/API/C/WKVibration.cpp
452     UIProcess/API/C/WKViewportAttributes.cpp
453     UIProcess/API/C/WKWindowFeaturesRef.cpp
454
455     UIProcess/Authentication/AuthenticationChallengeProxy.cpp
456     UIProcess/Authentication/AuthenticationDecisionListener.cpp
457     UIProcess/Authentication/WebCredential.cpp
458     UIProcess/Authentication/WebProtectionSpace.cpp
459
460     UIProcess/Databases/DatabaseProcessProxy.cpp
461
462     UIProcess/Downloads/DownloadProxy.cpp
463     UIProcess/Downloads/DownloadProxyMap.cpp
464
465     UIProcess/InspectorServer/HTTPRequest.cpp
466     UIProcess/InspectorServer/WebInspectorServer.cpp
467     UIProcess/InspectorServer/WebSocketServer.cpp
468     UIProcess/InspectorServer/WebSocketServerConnection.cpp
469
470     UIProcess/Launcher/ProcessLauncher.cpp
471
472     UIProcess/Network/NetworkProcessProxy.cpp
473
474     UIProcess/Notifications/NotificationPermissionRequest.cpp
475     UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp
476     UIProcess/Notifications/WebNotification.cpp
477     UIProcess/Notifications/WebNotificationManagerProxy.cpp
478     UIProcess/Notifications/WebNotificationProvider.cpp
479
480     UIProcess/Plugins/PlugInAutoStartProvider.cpp
481     UIProcess/Plugins/PluginInfoStore.cpp
482     UIProcess/Plugins/PluginProcessManager.cpp
483     UIProcess/Plugins/PluginProcessProxy.cpp
484
485     UIProcess/Storage/LocalStorageDatabase.cpp
486     UIProcess/Storage/LocalStorageDatabaseTracker.cpp
487
488     UIProcess/UserContent/WebScriptMessageHandler.cpp
489     UIProcess/UserContent/WebUserContentControllerProxy.cpp
490
491     UIProcess/WebsiteData/WebsiteDataRecord.cpp
492     UIProcess/WebsiteData/WebsiteDataStore.cpp
493
494     UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
495
496     WebProcess/WebConnectionToUIProcess.cpp
497     WebProcess/WebProcess.cpp
498
499     WebProcess/Battery/WebBatteryManager.cpp
500
501     WebProcess/Cookies/WebCookieManager.cpp
502
503     WebProcess/Databases/WebDatabaseProvider.cpp
504     WebProcess/Databases/WebToDatabaseProcessConnection.cpp
505
506     WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp
507     WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp
508
509     WebProcess/FileAPI/BlobRegistryProxy.cpp
510
511     WebProcess/FullScreen/WebFullScreenManager.cpp
512
513     WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp
514     WebProcess/Geolocation/WebGeolocationManager.cpp
515
516     WebProcess/IconDatabase/WebIconDatabaseProxy.cpp
517
518     WebProcess/InjectedBundle/InjectedBundle.cpp
519     WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp
520     WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp
521     WebProcess/InjectedBundle/InjectedBundleClient.cpp
522     WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp
523     WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
524     WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp
525     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp
526     WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp
527     WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp
528     WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
529     WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp
530     WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
531     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
532     WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp
533     WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp
534     WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp
535
536     WebProcess/InjectedBundle/API/c/WKBundle.cpp
537     WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp
538     WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp
539     WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp
540     WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
541     WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp
542     WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp
543     WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp
544     WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
545     WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
546     WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp
547     WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
548     WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp
549     WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp
550
551     WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp
552     WebProcess/InjectedBundle/DOM/InjectedBundleFileHandle.cpp
553     WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
554     WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
555
556     WebProcess/MediaCache/WebMediaCacheManager.cpp
557
558     WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp
559
560     WebProcess/Network/NetworkProcessConnection.cpp
561     WebProcess/Network/WebResourceLoadScheduler.cpp
562     WebProcess/Network/WebResourceLoader.cpp
563
564     WebProcess/Notifications/NotificationPermissionRequestManager.cpp
565     WebProcess/Notifications/WebNotificationManager.cpp
566
567     WebProcess/Plugins/Plugin.cpp
568     WebProcess/Plugins/PluginProcessConnection.cpp
569     WebProcess/Plugins/PluginProcessConnectionManager.cpp
570     WebProcess/Plugins/PluginProxy.cpp
571     WebProcess/Plugins/PluginView.cpp
572
573     WebProcess/Plugins/Netscape/JSNPMethod.cpp
574     WebProcess/Plugins/Netscape/JSNPObject.cpp
575     WebProcess/Plugins/Netscape/NPJSObject.cpp
576     WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp
577     WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
578     WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
579     WebProcess/Plugins/Netscape/NetscapePlugin.cpp
580     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
581     WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
582
583     WebProcess/Storage/StorageAreaImpl.cpp
584     WebProcess/Storage/StorageAreaMap.cpp
585     WebProcess/Storage/StorageNamespaceImpl.cpp
586     WebProcess/Storage/WebStorageNamespaceProvider.cpp
587
588     WebProcess/UserContent/WebUserContentController.cpp
589
590     WebProcess/WebCoreSupport/SessionStateConversion.cpp
591     WebProcess/WebCoreSupport/WebBatteryClient.cpp
592     WebProcess/WebCoreSupport/WebChromeClient.cpp
593     WebProcess/WebCoreSupport/WebColorChooser.cpp
594     WebProcess/WebCoreSupport/WebContextMenuClient.cpp
595     WebProcess/WebCoreSupport/WebDatabaseManager.cpp
596     WebProcess/WebCoreSupport/WebDeviceProximityClient.cpp
597     WebProcess/WebCoreSupport/WebDiagnosticLoggingClient.cpp
598     WebProcess/WebCoreSupport/WebDragClient.cpp
599     WebProcess/WebCoreSupport/WebEditorClient.cpp
600     WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
601     WebProcess/WebCoreSupport/WebGeolocationClient.cpp
602     WebProcess/WebCoreSupport/WebInspectorClient.cpp
603     WebProcess/WebCoreSupport/WebNotificationClient.cpp
604     WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
605     WebProcess/WebCoreSupport/WebPlugInClient.cpp
606     WebProcess/WebCoreSupport/WebPopupMenu.cpp
607     WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp
608     WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp
609     WebProcess/WebCoreSupport/WebUserMediaClient.cpp
610     WebProcess/WebCoreSupport/WebVibrationClient.cpp
611
612     WebProcess/WebPage/DrawingArea.cpp
613     WebProcess/WebPage/EventDispatcher.cpp
614     WebProcess/WebPage/FindController.cpp
615     WebProcess/WebPage/LayerTreeHost.cpp
616     WebProcess/WebPage/PageBanner.cpp
617     WebProcess/WebPage/VisitedLinkTableController.cpp
618     WebProcess/WebPage/WebBackForwardListProxy.cpp
619     WebProcess/WebPage/WebContextMenu.cpp
620     WebProcess/WebPage/WebDocumentLoader.cpp
621     WebProcess/WebPage/WebFrame.cpp
622     WebProcess/WebPage/WebInspector.cpp
623     WebProcess/WebPage/WebInspectorUI.cpp
624     WebProcess/WebPage/WebOpenPanelResultListener.cpp
625     WebProcess/WebPage/WebPage.cpp
626     WebProcess/WebPage/WebPageGroupProxy.cpp
627     WebProcess/WebPage/WebPageOverlay.cpp
628     WebProcess/WebPage/WebUndoStep.cpp
629
630
631
632     ${NetworkProcess_COMMON_SOURCES}
633 )
634
635 set(WebKit2_MESSAGES_IN_FILES
636     DatabaseProcess/DatabaseProcess.messages.in
637     DatabaseProcess/DatabaseToWebProcessConnection.messages.in
638
639     DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in
640
641     NetworkProcess/NetworkConnectionToWebProcess.messages.in
642     NetworkProcess/NetworkProcess.messages.in
643     NetworkProcess/NetworkResourceLoader.messages.in
644
645     PluginProcess/PluginControllerProxy.messages.in
646     PluginProcess/PluginProcess.messages.in
647     PluginProcess/WebProcessConnection.messages.in
648
649     Shared/ChildProcess.messages.in
650     Shared/WebConnection.messages.in
651
652     Shared/Authentication/AuthenticationManager.messages.in
653
654     Shared/Network/CustomProtocols/CustomProtocolManager.messages.in
655
656     Shared/Plugins/NPObjectMessageReceiver.messages.in
657
658     UIProcess/DrawingAreaProxy.messages.in
659     UIProcess/VisitedLinkProvider.messages.in
660     UIProcess/WebBatteryManagerProxy.messages.in
661     UIProcess/WebCookieManagerProxy.messages.in
662     UIProcess/WebDatabaseManagerProxy.messages.in
663     UIProcess/WebFullScreenManagerProxy.messages.in
664     UIProcess/WebGeolocationManagerProxy.messages.in
665     UIProcess/WebIconDatabase.messages.in
666     UIProcess/WebInspectorProxy.messages.in
667     UIProcess/WebMediaCacheManagerProxy.messages.in
668     UIProcess/WebPageProxy.messages.in
669     UIProcess/WebPasteboardProxy.messages.in
670     UIProcess/WebProcessPool.messages.in
671     UIProcess/WebProcessProxy.messages.in
672     UIProcess/WebVibrationProxy.messages.in
673
674     UIProcess/Databases/DatabaseProcessProxy.messages.in
675
676     UIProcess/Downloads/DownloadProxy.messages.in
677
678     UIProcess/Network/NetworkProcessProxy.messages.in
679
680     UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in
681
682     UIProcess/Plugins/PluginProcessProxy.messages.in
683
684     UIProcess/Storage/StorageManager.messages.in
685
686     UIProcess/UserContent/WebUserContentControllerProxy.messages.in
687
688     WebProcess/WebProcess.messages.in
689
690     WebProcess/Battery/WebBatteryManager.messages.in
691
692     WebProcess/Cookies/WebCookieManager.messages.in
693
694     WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in
695
696     WebProcess/FullScreen/WebFullScreenManager.messages.in
697
698     WebProcess/Geolocation/WebGeolocationManager.messages.in
699
700     WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in
701
702     WebProcess/MediaCache/WebMediaCacheManager.messages.in
703
704     WebProcess/Network/NetworkProcessConnection.messages.in
705     WebProcess/Network/WebResourceLoader.messages.in
706
707     WebProcess/Notifications/WebNotificationManager.messages.in
708
709     WebProcess/Plugins/PluginProcessConnection.messages.in
710     WebProcess/Plugins/PluginProcessConnectionManager.messages.in
711     WebProcess/Plugins/PluginProxy.messages.in
712
713     WebProcess/Storage/StorageAreaMap.messages.in
714
715     WebProcess/UserContent/WebUserContentController.messages.in
716
717     WebProcess/WebCoreSupport/WebDatabaseManager.messages.in
718
719     WebProcess/WebPage/DrawingArea.messages.in
720     WebProcess/WebPage/EventDispatcher.messages.in
721     WebProcess/WebPage/VisitedLinkTableController.messages.in
722     WebProcess/WebPage/WebInspector.messages.in
723     WebProcess/WebPage/WebInspectorUI.messages.in
724     WebProcess/WebPage/WebPage.messages.in
725     WebProcess/WebPage/WebPageGroupProxy.messages.in
726 )
727
728 set(WebProcess_LIBRARIES
729     WebKit2
730 )
731
732 set(NetworkProcess_LIBRARIES
733     WebKit2
734 )
735
736 set(DatabaseProcess_LIBRARIES
737   WebKit2
738 )
739
740 set(WebKit2_LIBRARIES
741     JavaScriptCore
742     WebCore
743 )
744
745 set(PluginProcess_LIBRARIES
746     WebKit2
747 )
748
749 # librt is needed for shm_open on Linux.
750 find_library(LIBRT_LIBRARIES NAMES rt)
751 mark_as_advanced(LIBRT_LIBRARIES)
752 if (LIBRT_LIBRARIES)
753     list(APPEND WebKit2_LIBRARIES ${LIBRT_LIBRARIES})
754 endif ()
755
756 macro(ADD_WEBKIT2_PREFIX_HEADER _target)
757     if (WebKit2_USE_PREFIX_HEADER)
758         get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
759         if (${OLD_COMPILE_FLAGS} STREQUAL "OLD_COMPILE_FLAGS-NOTFOUND")
760             set(OLD_COMPILE_FLAGS "")
761         endif ()
762         set_target_properties(${_target} PROPERTIES COMPILE_FLAGS "${OLD_COMPILE_FLAGS} -include ${WEBKIT2_DIR}/WebKit2Prefix.h")
763     endif ()
764 endmacro()
765
766 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
767
768 GENERATE_WEBKIT2_MESSAGE_SOURCES(WebKit2_DERIVED_SOURCES "${WebKit2_MESSAGES_IN_FILES}")
769
770 include_directories(${WebKit2_INCLUDE_DIRECTORIES})
771 include_directories(SYSTEM ${WebKit2_SYSTEM_INCLUDE_DIRECTORIES})
772 add_library(WebKit2 ${WebKit2_LIBRARY_TYPE} ${WebKit2_SOURCES} ${WebKit2_DERIVED_SOURCES})
773
774 add_dependencies(WebKit2 WebCore ${WEBKIT2_EXTRA_DEPENDENCIES})
775 add_webkit2_prefix_header(WebKit2)
776 target_link_libraries(WebKit2 ${WebKit2_LIBRARIES})
777 set_target_properties(WebKit2 PROPERTIES FOLDER "WebKit")
778
779 # Suppress unused parameter warnings for sources in WebKit2.
780 ADD_TARGET_PROPERTIES(WebKit2 COMPILE_FLAGS "-Wno-unused-parameter")
781
782 if (WebKit2_VERSION_SCRIPT)
783     ADD_TARGET_PROPERTIES(WebKit2 LINK_FLAGS "${WebKit2_VERSION_SCRIPT}")
784 endif ()
785
786 if (WebKit2_OUTPUT_NAME)
787     set_target_properties(WebKit2 PROPERTIES OUTPUT_NAME ${WebKit2_OUTPUT_NAME})
788 endif ()
789
790 add_executable(WebProcess ${WebProcess_SOURCES})
791 add_webkit2_prefix_header(WebProcess)
792 target_link_libraries(WebProcess ${WebProcess_LIBRARIES})
793 set_target_properties(WebProcess PROPERTIES FOLDER "WebKit")
794
795 if (WebKit2_WebProcess_OUTPUT_NAME)
796     set_target_properties(WebProcess PROPERTIES OUTPUT_NAME ${WebKit2_WebProcess_OUTPUT_NAME})
797 endif ()
798
799 if (ENABLE_NETWORK_PROCESS)
800     add_executable(NetworkProcess ${NetworkProcess_SOURCES})
801     add_webkit2_prefix_header(NetworkProcess)
802     target_link_libraries(NetworkProcess ${NetworkProcess_LIBRARIES})
803     set_target_properties(NetworkProcess PROPERTIES FOLDER "WebKit")
804     install(TARGETS NetworkProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
805
806     if (WebKit2_NetworkProcess_OUTPUT_NAME)
807         set_target_properties(NetworkProcess PROPERTIES OUTPUT_NAME ${WebKit2_NetworkProcess_OUTPUT_NAME})
808     endif ()
809 endif ()
810
811 if (ENABLE_PLUGIN_PROCESS)
812     add_definitions(-DENABLE_PLUGIN_PROCESS=1)
813     add_executable(PluginProcess ${PluginProcess_SOURCES})
814     add_webkit2_prefix_header(PluginProcess)
815     target_link_libraries(PluginProcess ${PluginProcess_LIBRARIES})
816     set_target_properties(PluginProcess PROPERTIES FOLDER "WebKit")
817     install(TARGETS PluginProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
818
819     if (WebKit2_PluginProcess_OUTPUT_NAME)
820       set_target_properties(PluginProcess PROPERTIES OUTPUT_NAME ${WebKit2_PluginProcess_OUTPUT_NAME})
821     endif ()
822 endif ()
823
824 if (ENABLE_DATABASE_PROCESS)
825     add_definitions(-DENABLE_DATABASE_PROCESS=1)
826     add_executable(DatabaseProcess ${DatabaseProcess_SOURCES})
827     add_webkit2_prefix_header(DatabaseProcess)
828     target_link_libraries(DatabaseProcess ${DatabaseProcess_LIBRARIES})
829     set_target_properties(DatabaseProcess PROPERTIES FOLDER "WebKit")
830     install(TARGETS DatabaseProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
831
832     if (WebKit2_DatabaseProcess_OUTPUT_NAME)
833         set_target_properties(DatabaseProcess PROPERTIES OUTPUT_NAME ${WebKit2_DatabaseProcess_OUTPUT_NAME})
834     endif ()
835 endif ()
836
837 POPULATE_LIBRARY_VERSION(WEBKIT2)
838 set_target_properties(WebKit2 PROPERTIES VERSION ${WEBKIT2_VERSION} SOVERSION ${WEBKIT2_VERSION_MAJOR})
839
840 install(TARGETS WebKit2 WebProcess
841         LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
842         RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}"
843 )