[CMAKE] Build warning by INTERFACE_LINK_LIBRARIES
[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/NetworkConnectionToWebProcess.cpp
149     NetworkProcess/NetworkProcess.cpp
150     NetworkProcess/NetworkProcessPlatformStrategies.cpp
151     NetworkProcess/NetworkResourceLoadScheduler.cpp
152     NetworkProcess/NetworkResourceLoader.cpp
153
154     NetworkProcess/FileAPI/NetworkBlobRegistry.cpp
155
156     Platform/Logging.cpp
157     Platform/Module.cpp
158     Platform/WorkQueue.cpp
159
160     Platform/IPC/ArgumentCoders.cpp
161     Platform/IPC/ArgumentDecoder.cpp
162     Platform/IPC/ArgumentEncoder.cpp
163     Platform/IPC/Attachment.cpp
164     Platform/IPC/Connection.cpp
165     Platform/IPC/DataReference.cpp
166     Platform/IPC/MessageDecoder.cpp
167     Platform/IPC/MessageEncoder.cpp
168     Platform/IPC/MessageReceiverMap.cpp
169     Platform/IPC/MessageSender.cpp
170     Platform/IPC/StringReference.cpp
171
172     PluginProcess/PluginControllerProxy.cpp
173     PluginProcess/PluginCreationParameters.cpp
174     PluginProcess/PluginProcess.cpp
175     PluginProcess/WebProcessConnection.cpp
176
177     Shared/APIArray.cpp
178     Shared/APIData.cpp
179     Shared/APIError.cpp
180     Shared/APIFrameHandle.cpp
181     Shared/APIGeometry.cpp
182     Shared/APIPageHandle.cpp
183     Shared/APIObject.cpp
184     Shared/APIURLRequest.cpp
185     Shared/APIURLResponse.cpp
186     Shared/ActivityAssertion.cpp
187     Shared/BlobDataFileReferenceWithSandboxExtension.cpp
188     Shared/CacheModel.cpp
189     Shared/ChildProcess.cpp
190     Shared/ChildProcessProxy.cpp
191     Shared/ConnectionStack.cpp
192     Shared/ContextMenuContextData.cpp
193     Shared/DictionaryPopupInfo.cpp
194     Shared/EditorState.cpp
195     Shared/FontInfo.cpp
196     Shared/ImmutableDictionary.cpp
197     Shared/LayerTreeContext.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/WebOpenPanelParameters.cpp
229     Shared/WebPageCreationParameters.cpp
230     Shared/WebPageGroupData.cpp
231     Shared/WebPlatformTouchPoint.cpp
232     Shared/WebPopupItem.cpp
233     Shared/WebPreferencesKeys.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/WKErrorRef.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/Network/NetworkProcessCreationParameters.cpp
274     Shared/Network/NetworkResourceLoadParameters.cpp
275
276     Shared/Plugins/NPIdentifierData.cpp
277     Shared/Plugins/NPObjectMessageReceiver.cpp
278     Shared/Plugins/NPObjectProxy.cpp
279     Shared/Plugins/NPRemoteObjectMap.cpp
280     Shared/Plugins/NPVariantData.cpp
281     Shared/Plugins/PluginModuleInfo.cpp
282     Shared/Plugins/PluginProcessCreationParameters.cpp
283
284     Shared/Plugins/Netscape/NetscapePluginModule.cpp
285     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
286     Shared/Plugins/Netscape/PluginInformation.cpp
287
288     UIProcess/APIContextConfiguration.cpp
289     UIProcess/APINavigationData.cpp
290     UIProcess/APISession.cpp
291     UIProcess/BackingStore.cpp
292     UIProcess/DrawingAreaProxy.cpp
293     UIProcess/FindIndicator.cpp
294     UIProcess/FrameLoadState.cpp
295     UIProcess/GeolocationPermissionRequestManagerProxy.cpp
296     UIProcess/GeolocationPermissionRequestProxy.cpp
297     UIProcess/LegacySessionStateCodingNone.cpp
298     UIProcess/PageLoadState.cpp
299     UIProcess/ProcessAssertion.cpp
300     UIProcess/ProcessThrottler.cpp
301     UIProcess/ResponsivenessTimer.cpp
302     UIProcess/StatisticsRequest.cpp
303     UIProcess/TextCheckerCompletion.cpp
304     UIProcess/VisitedLinkProvider.cpp
305     UIProcess/WebApplicationCacheManagerProxy.cpp
306     UIProcess/WebBackForwardList.cpp
307     UIProcess/WebBatteryManagerProxy.cpp
308     UIProcess/WebBatteryProvider.cpp
309     UIProcess/WebColorPicker.cpp
310     UIProcess/WebConnectionToWebProcess.cpp
311     UIProcess/WebContext.cpp
312     UIProcess/WebContextClient.cpp
313     UIProcess/WebContextConnectionClient.cpp
314     UIProcess/WebContextInjectedBundleClient.cpp
315     UIProcess/WebContextMenuProxy.cpp
316     UIProcess/WebCookieManagerProxy.cpp
317     UIProcess/WebCookieManagerProxyClient.cpp
318     UIProcess/WebDatabaseManagerProxy.cpp
319     UIProcess/WebDatabaseManagerProxyClient.cpp
320     UIProcess/WebEditCommandProxy.cpp
321     UIProcess/WebFindClient.cpp
322     UIProcess/WebFormClient.cpp
323     UIProcess/WebFormSubmissionListenerProxy.cpp
324     UIProcess/WebFrameListenerProxy.cpp
325     UIProcess/WebFramePolicyListenerProxy.cpp
326     UIProcess/WebFrameProxy.cpp
327     UIProcess/WebFullScreenManagerProxy.cpp
328     UIProcess/WebGeolocationManagerProxy.cpp
329     UIProcess/WebGeolocationProvider.cpp
330     UIProcess/WebGrammarDetail.cpp
331     UIProcess/WebIconDatabase.cpp
332     UIProcess/WebIconDatabaseClient.cpp
333     UIProcess/WebInspectorProxy.cpp
334     UIProcess/WebKeyValueStorageManager.cpp
335     UIProcess/WebMediaCacheManagerProxy.cpp
336     UIProcess/WebOpenPanelResultListenerProxy.cpp
337     UIProcess/WebOriginDataManagerProxy.cpp
338     UIProcess/WebPageContextMenuClient.cpp
339     UIProcess/WebPageGroup.cpp
340     UIProcess/WebPageProxy.cpp
341     UIProcess/WebPreferences.cpp
342     UIProcess/WebProcessProxy.cpp
343     UIProcess/WebResourceCacheManagerProxy.cpp
344     UIProcess/WebTextChecker.cpp
345     UIProcess/WebTextCheckerClient.cpp
346     UIProcess/WebVibrationProvider.cpp
347     UIProcess/WebVibrationProxy.cpp
348     UIProcess/WebViewportAttributes.cpp
349
350     UIProcess/API/APISessionState.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/WKContextConfigurationRef.cpp
361     UIProcess/API/C/WKCookieManager.cpp
362     UIProcess/API/C/WKCredential.cpp
363     UIProcess/API/C/WKDatabaseManager.cpp
364     UIProcess/API/C/WKDownload.cpp
365     UIProcess/API/C/WKFormSubmissionListener.cpp
366     UIProcess/API/C/WKFrame.cpp
367     UIProcess/API/C/WKFramePolicyListener.cpp
368     UIProcess/API/C/WKGeolocationManager.cpp
369     UIProcess/API/C/WKGeolocationPermissionRequest.cpp
370     UIProcess/API/C/WKGeolocationPosition.cpp
371     UIProcess/API/C/WKGrammarDetail.cpp
372     UIProcess/API/C/WKHitTestResult.cpp
373     UIProcess/API/C/WKIconDatabase.cpp
374     UIProcess/API/C/WKInspector.cpp
375     UIProcess/API/C/WKKeyValueStorageManager.cpp
376     UIProcess/API/C/WKMediaCacheManager.cpp
377     UIProcess/API/C/WKNavigationDataRef.cpp
378     UIProcess/API/C/WKNotification.cpp
379     UIProcess/API/C/WKNotificationManager.cpp
380     UIProcess/API/C/WKNotificationPermissionRequest.cpp
381     UIProcess/API/C/WKOpenPanelParameters.cpp
382     UIProcess/API/C/WKOpenPanelResultListener.cpp
383     UIProcess/API/C/WKOriginDataManager.cpp
384     UIProcess/API/C/WKPage.cpp
385     UIProcess/API/C/WKPageGroup.cpp
386     UIProcess/API/C/WKPluginSiteDataManager.cpp
387     UIProcess/API/C/WKPreferences.cpp
388     UIProcess/API/C/WKProtectionSpace.cpp
389     UIProcess/API/C/WKResourceCacheManager.cpp
390     UIProcess/API/C/WKSessionStateRef.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     UIProcess/UserContent/WebScriptMessageHandler.cpp
428     UIProcess/UserContent/WebUserContentControllerProxy.cpp
429
430     WebProcess/WebConnectionToUIProcess.cpp
431     WebProcess/WebProcess.cpp
432
433     WebProcess/ApplicationCache/WebApplicationCacheManager.cpp
434
435     WebProcess/Battery/WebBatteryManager.cpp
436
437     WebProcess/Cookies/WebCookieManager.cpp
438
439     WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp
440
441     WebProcess/FileAPI/BlobRegistryProxy.cpp
442
443     WebProcess/FullScreen/WebFullScreenManager.cpp
444
445     WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp
446     WebProcess/Geolocation/WebGeolocationManager.cpp
447
448     WebProcess/IconDatabase/WebIconDatabaseProxy.cpp
449
450     WebProcess/InjectedBundle/InjectedBundle.cpp
451     WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp
452     WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp
453     WebProcess/InjectedBundle/InjectedBundleClient.cpp
454     WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp
455     WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
456     WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp
457     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp
458     WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp
459     WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp
460     WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
461     WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp
462     WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
463     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
464     WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp
465     WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp
466     WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp
467
468     WebProcess/InjectedBundle/API/c/WKBundle.cpp
469     WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp
470     WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp
471     WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp
472     WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
473     WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp
474     WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp
475     WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp
476     WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
477     WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
478     WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp
479     WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
480     WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp
481     WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp
482
483     WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
484     WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
485
486     WebProcess/MediaCache/WebMediaCacheManager.cpp
487
488     WebProcess/Network/NetworkProcessConnection.cpp
489     WebProcess/Network/WebResourceLoadScheduler.cpp
490     WebProcess/Network/WebResourceLoader.cpp
491
492     WebProcess/Notifications/NotificationPermissionRequestManager.cpp
493     WebProcess/Notifications/WebNotificationManager.cpp
494
495     WebProcess/OriginData/WebOriginDataManager.cpp
496
497     WebProcess/Plugins/Plugin.cpp
498     WebProcess/Plugins/PluginProcessConnection.cpp
499     WebProcess/Plugins/PluginProcessConnectionManager.cpp
500     WebProcess/Plugins/PluginProxy.cpp
501     WebProcess/Plugins/PluginView.cpp
502
503     WebProcess/Plugins/Netscape/JSNPMethod.cpp
504     WebProcess/Plugins/Netscape/JSNPObject.cpp
505     WebProcess/Plugins/Netscape/NPJSObject.cpp
506     WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp
507     WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
508     WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
509     WebProcess/Plugins/Netscape/NetscapePlugin.cpp
510     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
511     WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
512
513     WebProcess/ResourceCache/WebResourceCacheManager.cpp
514
515     WebProcess/Storage/StorageAreaImpl.cpp
516     WebProcess/Storage/StorageAreaMap.cpp
517     WebProcess/Storage/StorageNamespaceImpl.cpp
518
519     WebProcess/UserContent/WebUserContentController.cpp
520
521     WebProcess/WebCoreSupport/SessionStateConversion.cpp
522     WebProcess/WebCoreSupport/WebBatteryClient.cpp
523     WebProcess/WebCoreSupport/WebChromeClient.cpp
524     WebProcess/WebCoreSupport/WebColorChooser.cpp
525     WebProcess/WebCoreSupport/WebContextMenuClient.cpp
526     WebProcess/WebCoreSupport/WebDatabaseManager.cpp
527     WebProcess/WebCoreSupport/WebDeviceProximityClient.cpp
528     WebProcess/WebCoreSupport/WebDragClient.cpp
529     WebProcess/WebCoreSupport/WebEditorClient.cpp
530     WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
531     WebProcess/WebCoreSupport/WebGeolocationClient.cpp
532     WebProcess/WebCoreSupport/WebInspectorClient.cpp
533     WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp
534     WebProcess/WebCoreSupport/WebNotificationClient.cpp
535     WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
536     WebProcess/WebCoreSupport/WebPlugInClient.cpp
537     WebProcess/WebCoreSupport/WebPopupMenu.cpp
538     WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp
539     WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp
540     WebProcess/WebCoreSupport/WebVibrationClient.cpp
541
542     WebProcess/WebPage/DrawingArea.cpp
543     WebProcess/WebPage/EventDispatcher.cpp
544     WebProcess/WebPage/FindController.cpp
545     WebProcess/WebPage/LayerTreeHost.cpp
546     WebProcess/WebPage/PageBanner.cpp
547     WebProcess/WebPage/PageOverlay.cpp
548     WebProcess/WebPage/PageOverlayController.cpp
549     WebProcess/WebPage/TapHighlightController.cpp
550     WebProcess/WebPage/WebBackForwardListProxy.cpp
551     WebProcess/WebPage/WebContextMenu.cpp
552     WebProcess/WebPage/WebDocumentLoader.cpp
553     WebProcess/WebPage/WebFrame.cpp
554     WebProcess/WebPage/WebInspector.cpp
555     WebProcess/WebPage/WebOpenPanelResultListener.cpp
556     WebProcess/WebPage/WebPage.cpp
557     WebProcess/WebPage/WebPageGroupProxy.cpp
558     WebProcess/WebPage/VisitedLinkTableController.cpp
559     WebProcess/WebPage/WebUndoStep.cpp
560 )
561
562 set(WebKit2_MESSAGES_IN_FILES
563     NetworkProcess/NetworkConnectionToWebProcess.messages.in
564     NetworkProcess/NetworkProcess.messages.in
565     NetworkProcess/NetworkResourceLoader.messages.in
566
567     PluginProcess/PluginControllerProxy.messages.in
568     PluginProcess/PluginProcess.messages.in
569     PluginProcess/WebProcessConnection.messages.in
570
571     Shared/WebConnection.messages.in
572
573     Shared/Authentication/AuthenticationManager.messages.in
574
575     Shared/Plugins/NPObjectMessageReceiver.messages.in
576
577     Shared/Network/CustomProtocols/CustomProtocolManager.messages.in
578
579     UIProcess/DrawingAreaProxy.messages.in
580     UIProcess/VisitedLinkProvider.messages.in
581     UIProcess/WebApplicationCacheManagerProxy.messages.in
582     UIProcess/WebBatteryManagerProxy.messages.in
583     UIProcess/WebContext.messages.in
584     UIProcess/WebCookieManagerProxy.messages.in
585     UIProcess/WebDatabaseManagerProxy.messages.in
586     UIProcess/WebFullScreenManagerProxy.messages.in
587     UIProcess/WebGeolocationManagerProxy.messages.in
588     UIProcess/WebIconDatabase.messages.in
589     UIProcess/WebInspectorProxy.messages.in
590     UIProcess/WebMediaCacheManagerProxy.messages.in
591     UIProcess/WebOriginDataManagerProxy.messages.in
592     UIProcess/WebPageProxy.messages.in
593     UIProcess/WebProcessProxy.messages.in
594     UIProcess/WebResourceCacheManagerProxy.messages.in
595     UIProcess/WebVibrationProxy.messages.in
596
597     UIProcess/Downloads/DownloadProxy.messages.in
598
599     UIProcess/Network/NetworkProcessProxy.messages.in
600
601     UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in
602
603     UIProcess/Plugins/PluginProcessProxy.messages.in
604
605     UIProcess/Storage/StorageManager.messages.in
606
607     UIProcess/UserContent/WebUserContentControllerProxy.messages.in
608
609     WebProcess/WebProcess.messages.in
610
611     WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in
612
613     WebProcess/Battery/WebBatteryManager.messages.in
614
615     WebProcess/Cookies/WebCookieManager.messages.in
616
617     WebProcess/FullScreen/WebFullScreenManager.messages.in
618
619     WebProcess/Geolocation/WebGeolocationManager.messages.in
620
621     WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in
622
623     WebProcess/MediaCache/WebMediaCacheManager.messages.in
624
625     WebProcess/Network/NetworkProcessConnection.messages.in
626     WebProcess/Network/WebResourceLoader.messages.in
627
628     WebProcess/Notifications/WebNotificationManager.messages.in
629
630     WebProcess/OriginData/WebOriginDataManager.messages.in
631
632     WebProcess/Plugins/PluginProcessConnection.messages.in
633     WebProcess/Plugins/PluginProcessConnectionManager.messages.in
634     WebProcess/Plugins/PluginProxy.messages.in
635
636     WebProcess/ResourceCache/WebResourceCacheManager.messages.in
637
638     WebProcess/Storage/StorageAreaMap.messages.in
639
640     WebProcess/UserContent/WebUserContentController.messages.in
641
642     WebProcess/WebCoreSupport/WebDatabaseManager.messages.in
643
644     WebProcess/WebPage/DrawingArea.messages.in
645     WebProcess/WebPage/EventDispatcher.messages.in
646     WebProcess/WebPage/VisitedLinkTableController.messages.in
647     WebProcess/WebPage/WebInspector.messages.in
648     WebProcess/WebPage/WebPage.messages.in
649     WebProcess/WebPage/WebPageGroupProxy.messages.in
650 )
651
652 set(WebProcess_LIBRARIES
653     WebKit2
654 )
655
656 set(NetworkProcess_LIBRARIES
657     WebKit2
658 )
659
660 set(WebKit2_LIBRARIES
661     JavaScriptCore
662     WebCore
663 )
664
665 set(PluginProcess_LIBRARIES
666     WebKit2
667 )
668
669 # librt is needed for shm_open on Linux.
670 find_library(LIBRT_LIBRARIES NAMES rt)
671 mark_as_advanced(LIBRT_LIBRARIES)
672 if (LIBRT_LIBRARIES)
673     list(APPEND WebKit2_LIBRARIES ${LIBRT_LIBRARIES})
674 endif ()
675
676 macro(ADD_WEBKIT2_PREFIX_HEADER _target)
677     if (WebKit2_USE_PREFIX_HEADER)
678         get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
679         if (${OLD_COMPILE_FLAGS} STREQUAL "OLD_COMPILE_FLAGS-NOTFOUND")
680             set(OLD_COMPILE_FLAGS "")
681         endif ()
682         set_target_properties(${_target} PROPERTIES COMPILE_FLAGS "${OLD_COMPILE_FLAGS} -include ${WEBKIT2_DIR}/WebKit2Prefix.h")
683     endif ()
684 endmacro()
685
686 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
687
688 GENERATE_WEBKIT2_MESSAGE_SOURCES(WebKit2_SOURCES "${WebKit2_MESSAGES_IN_FILES}")
689
690 add_definitions(-DBUILDING_WEBKIT)
691 include_directories(${WebKit2_INCLUDE_DIRECTORIES})
692 add_library(WebKit2 ${WebKit2_LIBRARY_TYPE} ${WebKit2_SOURCES})
693
694 add_dependencies(WebKit2 WebCore)
695 add_dependencies(WebKit2 ${WEBKIT2_EXTRA_DEPENDENCIES})
696 add_webkit2_prefix_header(WebKit2)
697 target_link_libraries(WebKit2 ${WebKit2_LIBRARIES})
698 set_target_properties(WebKit2 PROPERTIES FOLDER "WebKit")
699
700 if (WebKit2_VERSION_SCRIPT)
701     ADD_TARGET_PROPERTIES(WebKit2 LINK_FLAGS "${WebKit2_VERSION_SCRIPT}")
702 endif ()
703
704 if (WebKit2_OUTPUT_NAME)
705     set_target_properties(WebKit2 PROPERTIES OUTPUT_NAME ${WebKit2_OUTPUT_NAME})
706 endif ()
707
708 add_executable(WebProcess ${WebProcess_SOURCES})
709 add_webkit2_prefix_header(WebProcess)
710 target_link_libraries(WebProcess ${WebProcess_LIBRARIES})
711 set_target_properties(WebProcess PROPERTIES FOLDER "WebKit")
712
713 if (WebKit2_WebProcess_OUTPUT_NAME)
714     set_target_properties(WebProcess PROPERTIES OUTPUT_NAME ${WebKit2_WebProcess_OUTPUT_NAME})
715 endif ()
716
717 if (ENABLE_NETWORK_PROCESS)
718     add_executable(NetworkProcess ${NetworkProcess_SOURCES})
719     add_webkit2_prefix_header(NetworkProcess)
720     target_link_libraries(NetworkProcess ${NetworkProcess_LIBRARIES})
721     set_target_properties(NetworkProcess PROPERTIES FOLDER "WebKit")
722     install(TARGETS NetworkProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
723
724     if (WebKit2_NetworkProcess_OUTPUT_NAME)
725         set_target_properties(NetworkProcess PROPERTIES OUTPUT_NAME ${WebKit2_NetworkProcess_OUTPUT_NAME})
726     endif ()
727 endif ()
728
729 if (ENABLE_PLUGIN_PROCESS)
730     add_definitions(-DENABLE_PLUGIN_PROCESS=1)
731     add_executable(PluginProcess ${PluginProcess_SOURCES})
732     add_webkit2_prefix_header(PluginProcess)
733     target_link_libraries(PluginProcess ${PluginProcess_LIBRARIES})
734     set_target_properties(PluginProcess PROPERTIES FOLDER "WebKit")
735     install(TARGETS PluginProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")
736
737     if (WebKit2_PluginProcess_OUTPUT_NAME)
738       set_target_properties(PluginProcess PROPERTIES OUTPUT_NAME ${WebKit2_PluginProcess_OUTPUT_NAME})
739     endif ()
740 endif ()
741
742 POPULATE_LIBRARY_VERSION(WEBKIT2)
743 set_target_properties(WebKit2 PROPERTIES VERSION ${WEBKIT2_VERSION} SOVERSION ${WEBKIT2_VERSION_MAJOR})
744
745 install(TARGETS WebKit2 DESTINATION "${LIB_INSTALL_DIR}")
746 install(TARGETS WebProcess DESTINATION "${LIBEXEC_INSTALL_DIR}")