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