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