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