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