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