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