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