Rolling out r212757
[WebKit-https.git] / Source / WebKit2 / PlatformMac.cmake
1 add_definitions("-ObjC++ -std=c++14")
2 link_directories(../../WebKitLibraries)
3 find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
4 find_library(CARBON_LIBRARY Carbon)
5 find_library(QUARTZ_LIBRARY Quartz)
6 find_library(AVFOUNDATION_LIBRARY AVFoundation)
7 find_library(AVFAUDIO_LIBRARY AVFAudio HINTS ${AVFOUNDATION_LIBRARY}/Versions/*/Frameworks)
8 add_definitions(-iframework ${QUARTZ_LIBRARY}/Frameworks)
9 add_definitions(-iframework ${CARBON_LIBRARY}/Frameworks)
10 add_definitions(-iframework ${APPLICATIONSERVICES_LIBRARY}/Versions/Current/Frameworks)
11 add_definitions(-DWK_XPC_SERVICE_SUFFIX=".Development")
12
13 list(APPEND WebKit2_LIBRARIES
14     PRIVATE WebKit
15     ${APPLICATIONSERVICES_LIBRARY}
16 )
17
18 if (NOT AVFAUDIO_LIBRARY-NOTFOUND)
19     list(APPEND WebKit2_LIBRARIES ${AVFAUDIO_LIBRARY})
20 endif ()
21
22 list(APPEND WebKit2_SOURCES
23     DatabaseProcess/mac/DatabaseProcessMac.mm
24
25     NetworkProcess/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm
26
27     NetworkProcess/Downloads/PendingDownload.cpp
28
29     NetworkProcess/Downloads/cocoa/DownloadCocoa.mm
30
31     NetworkProcess/Downloads/mac/DownloadMac.mm
32
33     NetworkProcess/cache/NetworkCacheCodersCocoa.cpp
34     NetworkProcess/cache/NetworkCacheDataCocoa.mm
35     NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm
36
37     NetworkProcess/cocoa/NetworkDataTaskCocoa.mm
38     NetworkProcess/cocoa/NetworkProcessCocoa.mm
39     NetworkProcess/cocoa/NetworkSessionCocoa.mm
40
41     NetworkProcess/mac/NetworkLoadMac.mm
42     NetworkProcess/mac/NetworkProcessMac.mm
43     NetworkProcess/mac/RemoteNetworkingContext.mm
44
45     Platform/IPC/mac/ConnectionMac.mm
46     Platform/IPC/mac/MachMessage.cpp
47
48     Platform/cf/ModuleCF.cpp
49
50     Platform/cg/CGUtilities.cpp
51
52     Platform/foundation/LoggingFoundation.mm
53
54     Platform/cocoa/SharedMemoryCocoa.cpp
55
56     Platform/mac/LayerHostingContext.mm
57     Platform/mac/MachUtilities.cpp
58     Platform/mac/MenuUtilities.mm
59     Platform/mac/StringUtilities.mm
60
61     Platform/unix/EnvironmentUtilities.cpp
62
63     PluginProcess/mac/PluginControllerProxyMac.mm
64     PluginProcess/mac/PluginProcessMac.mm
65     PluginProcess/mac/PluginProcessShim.mm
66
67     Shared/APIWebArchive.mm
68     Shared/APIWebArchiveResource.mm
69
70     Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm
71
72     Shared/API/Cocoa/RemoteObjectInvocation.mm
73     Shared/API/Cocoa/RemoteObjectRegistry.mm
74     Shared/API/Cocoa/WKBrowsingContextHandle.mm
75     Shared/API/Cocoa/WKRemoteObject.mm
76     Shared/API/Cocoa/WKRemoteObjectCoder.mm
77     Shared/API/Cocoa/WebKit.m
78     Shared/API/Cocoa/_WKFrameHandle.mm
79     Shared/API/Cocoa/_WKHitTestResult.mm
80     Shared/API/Cocoa/_WKNSFileManagerExtras.mm
81     Shared/API/Cocoa/_WKRemoteObjectInterface.mm
82     Shared/API/Cocoa/_WKRemoteObjectRegistry.mm
83
84     Shared/API/c/cf/WKErrorCF.cpp
85     Shared/API/c/cf/WKStringCF.mm
86     Shared/API/c/cf/WKURLCF.mm
87
88     Shared/API/c/cg/WKImageCG.cpp
89
90     Shared/API/c/mac/WKCertificateInfoMac.mm
91     Shared/API/c/mac/WKObjCTypeWrapperRef.mm
92     Shared/API/c/mac/WKURLRequestNS.mm
93     Shared/API/c/mac/WKURLResponseNS.mm
94     Shared/API/c/mac/WKWebArchive.cpp
95     Shared/API/c/mac/WKWebArchiveResource.cpp
96
97     Shared/Authentication/mac/AuthenticationManager.mac.mm
98
99     Shared/Cocoa/APIDataCocoa.mm
100     Shared/Cocoa/APIObject.mm
101     Shared/Cocoa/ChildProcessCocoa.mm
102     Shared/Cocoa/CompletionHandlerCallChecker.mm
103     Shared/Cocoa/DataDetectionResult.mm
104     Shared/Cocoa/LoadParametersCocoa.mm
105     Shared/Cocoa/WKNSArray.mm
106     Shared/Cocoa/WKNSData.mm
107     Shared/Cocoa/WKNSDictionary.mm
108     Shared/Cocoa/WKNSError.mm
109     Shared/Cocoa/WKNSNumber.mm
110     Shared/Cocoa/WKNSString.mm
111     Shared/Cocoa/WKNSURL.mm
112     Shared/Cocoa/WKNSURLExtras.mm
113     Shared/Cocoa/WKNSURLRequest.mm
114     Shared/Cocoa/WKObject.mm
115
116     Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm
117     Shared/Plugins/Netscape/mac/PluginInformationMac.mm
118
119     Shared/Plugins/mac/PluginSandboxProfile.mm
120
121     Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp
122
123     Shared/cf/ArgumentCodersCF.cpp
124
125     Shared/cg/ShareableBitmapCG.cpp
126
127     Shared/mac/ArgumentCodersMac.mm
128     Shared/mac/AttributedString.mm
129     Shared/mac/ChildProcessMac.mm
130     Shared/mac/CodeSigning.mm
131     Shared/mac/ColorSpaceData.mm
132     Shared/mac/CookieStorageShim.mm
133     Shared/mac/CookieStorageShimLibrary.cpp
134     Shared/mac/HangDetectionDisablerMac.mm
135     Shared/mac/NativeWebGestureEventMac.mm
136     Shared/mac/NativeWebKeyboardEventMac.mm
137     Shared/mac/NativeWebMouseEventMac.mm
138     Shared/mac/NativeWebWheelEventMac.mm
139     Shared/mac/ObjCObjectGraph.mm
140     Shared/mac/PDFKitImports.mm
141     Shared/mac/PasteboardTypes.mm
142     Shared/mac/PrintInfoMac.mm
143     Shared/mac/RemoteLayerBackingStore.mm
144     Shared/mac/RemoteLayerBackingStoreCollection.mm
145     Shared/mac/RemoteLayerTreePropertyApplier.mm
146     Shared/mac/RemoteLayerTreeTransaction.mm
147     Shared/mac/SandboxExtensionMac.mm
148     Shared/mac/SandboxInitialiationParametersMac.mm
149     Shared/mac/SandboxUtilities.mm
150     Shared/mac/SecItemRequestData.cpp
151     Shared/mac/SecItemResponseData.cpp
152     Shared/mac/SecItemShim.cpp
153     Shared/mac/WebCoreArgumentCodersMac.mm
154     Shared/mac/WebEventFactory.mm
155     Shared/mac/WebGestureEvent.cpp
156     Shared/mac/WebHitTestResultData.mm
157     Shared/mac/WebMemorySampler.mac.mm
158
159     UIProcess/HighPerformanceGraphicsUsageSampler.cpp
160     UIProcess/PerActivityStateCPUUsageSampler.cpp
161     UIProcess/WebContextMenuListenerProxy.cpp
162     UIProcess/WebResourceLoadStatisticsManager.cpp
163     UIProcess/WebResourceLoadStatisticsStore.cpp
164
165     UIProcess/Automation/WebAutomationSession.cpp
166
167     UIProcess/Automation/cocoa/WebAutomationSessionCocoa.mm
168
169     UIProcess/Automation/mac/WebAutomationSessionMac.mm
170
171     UIProcess/API/APIUserScript.cpp
172     UIProcess/API/APIUserStyleSheet.cpp
173     UIProcess/API/APIWebsiteDataRecord.cpp
174
175     UIProcess/API/C/WKResourceLoadStatisticsManager.cpp
176
177     UIProcess/API/C/mac/WKContextPrivateMac.mm
178     UIProcess/API/C/mac/WKPagePrivateMac.mm
179
180     UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm
181     UIProcess/API/Cocoa/APIUserContentExtensionStoreCocoa.mm
182     UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm
183     UIProcess/API/Cocoa/LegacyBundleForClass.mm
184     UIProcess/API/Cocoa/WKBackForwardList.mm
185     UIProcess/API/Cocoa/WKBackForwardListItem.mm
186     UIProcess/API/Cocoa/WKBrowsingContextController.mm
187     UIProcess/API/Cocoa/WKBrowsingContextGroup.mm
188     UIProcess/API/Cocoa/WKConnection.mm
189     UIProcess/API/Cocoa/WKError.mm
190     UIProcess/API/Cocoa/WKFrameInfo.mm
191     UIProcess/API/Cocoa/WKMenuItemIdentifiers.mm
192     UIProcess/API/Cocoa/WKNSURLAuthenticationChallenge.mm
193     UIProcess/API/Cocoa/WKNavigation.mm
194     UIProcess/API/Cocoa/WKNavigationAction.mm
195     UIProcess/API/Cocoa/WKNavigationData.mm
196     UIProcess/API/Cocoa/WKNavigationResponse.mm
197     UIProcess/API/Cocoa/WKOpenPanelParameters.mm
198     UIProcess/API/Cocoa/WKPreferences.mm
199     UIProcess/API/Cocoa/WKPreviewActionItem.mm
200     UIProcess/API/Cocoa/WKPreviewActionItemIdentifiers.mm
201     UIProcess/API/Cocoa/WKPreviewElementInfo.mm
202     UIProcess/API/Cocoa/WKProcessGroup.mm
203     UIProcess/API/Cocoa/WKProcessPool.mm
204     UIProcess/API/Cocoa/WKScriptMessage.mm
205     UIProcess/API/Cocoa/WKSecurityOrigin.mm
206     UIProcess/API/Cocoa/WKTypeRefWrapper.mm
207     UIProcess/API/Cocoa/WKUserContentController.mm
208     UIProcess/API/Cocoa/WKUserScript.mm
209     UIProcess/API/Cocoa/WKWebView.mm
210     UIProcess/API/Cocoa/WKWebViewConfiguration.mm
211     UIProcess/API/Cocoa/WKWebsiteDataRecord.mm
212     UIProcess/API/Cocoa/WKWebsiteDataStore.mm
213     UIProcess/API/Cocoa/WKWindowFeatures.mm
214     UIProcess/API/Cocoa/_WKActivatedElementInfo.mm
215     UIProcess/API/Cocoa/_WKAutomationSession.mm
216     UIProcess/API/Cocoa/_WKContextMenuElementInfo.mm
217     UIProcess/API/Cocoa/_WKDownload.mm
218     UIProcess/API/Cocoa/_WKElementAction.mm
219     UIProcess/API/Cocoa/_WKErrorRecoveryAttempting.mm
220     UIProcess/API/Cocoa/_WKExperimentalFeature.mm
221     UIProcess/API/Cocoa/_WKLinkIconParameters.mm
222     UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
223     UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.mm
224     UIProcess/API/Cocoa/_WKSessionState.mm
225     UIProcess/API/Cocoa/_WKThumbnailView.mm
226     UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm
227     UIProcess/API/Cocoa/_WKUserContentFilter.mm
228     UIProcess/API/Cocoa/_WKUserContentWorld.mm
229     UIProcess/API/Cocoa/_WKUserInitiatedAction.mm
230     UIProcess/API/Cocoa/_WKUserStyleSheet.mm
231     UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm
232     UIProcess/API/Cocoa/_WKVisitedLinkStore.mm
233     UIProcess/API/Cocoa/_WKWebsiteDataSize.mm
234     UIProcess/API/Cocoa/_WKWebsiteDataStore.mm
235     UIProcess/API/Cocoa/_WKWebsitePolicies.mm
236
237     UIProcess/API/mac/WKView.mm
238
239     UIProcess/Cocoa/AutomationClient.mm
240     UIProcess/Cocoa/AutomationSessionClient.mm
241     UIProcess/Cocoa/CustomProtocolManagerClient.mm
242     UIProcess/Cocoa/DiagnosticLoggingClient.mm
243     UIProcess/Cocoa/DownloadClient.mm
244     UIProcess/Cocoa/FindClient.mm
245     UIProcess/Cocoa/FullscreenClient.mm
246     UIProcess/Cocoa/IconLoadingDelegate.mm
247     UIProcess/Cocoa/NavigationState.mm
248     UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm
249     UIProcess/Cocoa/SessionStateCoding.mm
250     UIProcess/Cocoa/UIDelegate.mm
251     UIProcess/Cocoa/VersionChecks.mm
252     UIProcess/Cocoa/ViewGestureController.cpp
253     UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm
254     UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm
255     UIProcess/Cocoa/WebPageProxyCocoa.mm
256     UIProcess/Cocoa/WebPasteboardProxyCocoa.mm
257     UIProcess/Cocoa/WebProcessPoolCocoa.mm
258     UIProcess/Cocoa/WebProcessProxyCocoa.mm
259     UIProcess/Cocoa/WebViewImpl.mm
260
261     UIProcess/Launcher/mac/ProcessLauncherMac.mm
262
263     UIProcess/Network/mac/NetworkProcessProxyMac.mm
264
265     UIProcess/Plugins/mac/PluginInfoStoreMac.mm
266     UIProcess/Plugins/mac/PluginProcessManagerMac.mm
267     UIProcess/Plugins/mac/PluginProcessProxyMac.mm
268
269     UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp
270     UIProcess/Scrolling/RemoteScrollingTree.cpp
271
272     UIProcess/Storage/StorageManager.cpp
273
274     UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
275
276     UIProcess/mac/CorrectionPanel.mm
277     UIProcess/mac/LegacySessionStateCoding.cpp
278     UIProcess/mac/PageClientImpl.mm
279     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm
280     UIProcess/mac/RemoteLayerTreeHost.mm
281     UIProcess/mac/RemoteWebInspectorProxyMac.mm
282     UIProcess/mac/SecItemShimProxy.cpp
283     UIProcess/mac/ServicesController.mm
284     UIProcess/mac/TextCheckerMac.mm
285     UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm
286     UIProcess/mac/ViewGestureControllerMac.mm
287     UIProcess/mac/ViewSnapshotStore.mm
288     UIProcess/mac/WKFullKeyboardAccessWatcher.mm
289     UIProcess/mac/WKFullScreenWindowController.mm
290     UIProcess/mac/WKImmediateActionController.mm
291     UIProcess/mac/WKPrintingView.mm
292     UIProcess/mac/WKSharingServicePickerDelegate.mm
293     UIProcess/mac/WKTextFinderClient.mm
294     UIProcess/mac/WKTextInputWindowController.mm
295     UIProcess/mac/WKViewLayoutStrategy.mm
296     UIProcess/mac/WKWebInspectorWKWebView.mm
297     UIProcess/mac/WebColorPickerMac.mm
298     UIProcess/mac/WebContextMenuProxyMac.mm
299     UIProcess/mac/WebCookieManagerProxyMac.mm
300     UIProcess/mac/WebInspectorProxyMac.mm
301     UIProcess/mac/WebPageProxyMac.mm
302     UIProcess/mac/WebPopupMenuProxyMac.mm
303     UIProcess/mac/WebPreferencesMac.mm
304     UIProcess/mac/WebProcessProxyMac.mm
305     UIProcess/mac/WindowServerConnection.mm
306
307     WebProcess/Cookies/mac/WebCookieManagerMac.mm
308
309     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.mm
310     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
311     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm
312     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm
313     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.mm
314     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInRangeHandle.mm
315     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm
316
317     WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm
318     WebProcess/InjectedBundle/API/mac/WKDOMElement.mm
319     WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm
320     WebProcess/InjectedBundle/API/mac/WKDOMNode.mm
321     WebProcess/InjectedBundle/API/mac/WKDOMRange.mm
322     WebProcess/InjectedBundle/API/mac/WKDOMText.mm
323     WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm
324     WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm
325     WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm
326
327     WebProcess/InjectedBundle/mac/InjectedBundleMac.mm
328
329     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
330
331     WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm
332     WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm
333
334     WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm
335     WebProcess/Plugins/PDF/PDFPlugin.mm
336     WebProcess/Plugins/PDF/PDFPluginAnnotation.mm
337     WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm
338     WebProcess/Plugins/PDF/PDFPluginPasswordField.mm
339     WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm
340
341     WebProcess/Scrolling/RemoteScrollingCoordinator.mm
342
343     WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp
344     WebProcess/WebCoreSupport/WebValidationMessageClient.cpp
345
346     WebProcess/WebCoreSupport/mac/WebAlternativeTextClient.cpp
347     WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm
348     WebProcess/WebCoreSupport/mac/WebDragClientMac.mm
349     WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm
350     WebProcess/WebCoreSupport/mac/WebErrorsMac.mm
351     WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm
352     WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm
353     WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
354
355     WebProcess/WebPage/ViewGestureGeometryCollector.cpp
356
357     WebProcess/WebPage/Cocoa/RemoteLayerTreeDisplayRefreshMonitor.mm
358     WebProcess/WebPage/Cocoa/WebPageCocoa.mm
359
360     WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp
361     WebProcess/WebPage/mac/PageBannerMac.mm
362     WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm
363     WebProcess/WebPage/mac/PlatformCALayerRemote.cpp
364     WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm
365     WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp
366     WebProcess/WebPage/mac/RemoteLayerTreeContext.mm
367     WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm
368     WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
369     WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm
370     WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm
371     WebProcess/WebPage/mac/WebInspectorUIMac.mm
372     WebProcess/WebPage/mac/WebPageMac.mm
373
374     WebProcess/cocoa/WebProcessCocoa.mm
375
376     WebProcess/mac/SecItemShimLibrary.mm
377 )
378
379 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
380
381 list(APPEND WebKit2_INCLUDE_DIRECTORIES
382     "${WEBKIT2_DIR}/NetworkProcess/cocoa"
383     "${WEBKIT2_DIR}/NetworkProcess/mac"
384     "${WEBKIT2_DIR}/PluginProcess/mac"
385     "${WEBKIT2_DIR}/UIProcess/mac"
386     "${WEBKIT2_DIR}/UIProcess/API/C/mac"
387     "${WEBKIT2_DIR}/UIProcess/API/Cocoa"
388     "${WEBKIT2_DIR}/UIProcess/API/mac"
389     "${WEBKIT2_DIR}/UIProcess/Cocoa"
390     "${WEBKIT2_DIR}/UIProcess/Launcher/mac"
391     "${WEBKIT2_DIR}/UIProcess/Scrolling"
392     "${WEBKIT2_DIR}/UIProcess/ios"
393     "${WEBKIT2_DIR}/Platform/cg"
394     "${WEBKIT2_DIR}/Platform/mac"
395     "${WEBKIT2_DIR}/Platform/unix"
396     "${WEBKIT2_DIR}/Platform/spi/Cocoa"
397     "${WEBKIT2_DIR}/Platform/spi/mac"
398     "${WEBKIT2_DIR}/Platform/IPC/mac"
399     "${WEBKIT2_DIR}/Platform/spi/Cocoa"
400     "${WEBKIT2_DIR}/Shared/API/Cocoa"
401     "${WEBKIT2_DIR}/Shared/API/c/cf"
402     "${WEBKIT2_DIR}/Shared/API/c/cg"
403     "${WEBKIT2_DIR}/Shared/API/c/mac"
404     "${WEBKIT2_DIR}/Shared/cf"
405     "${WEBKIT2_DIR}/Shared/Cocoa"
406     "${WEBKIT2_DIR}/Shared/EntryPointUtilities/mac/XPCService"
407     "${WEBKIT2_DIR}/Shared/mac"
408     "${WEBKIT2_DIR}/Shared/Plugins/mac"
409     "${WEBKIT2_DIR}/Shared/Scrolling"
410     "${WEBKIT2_DIR}/WebProcess/cocoa"
411     "${WEBKIT2_DIR}/WebProcess/mac"
412     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/Cocoa"
413     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/mac"
414     "${WEBKIT2_DIR}/WebProcess/Plugins/PDF"
415     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape/mac"
416     "${WEBKIT2_DIR}/WebProcess/Scrolling"
417     "${WEBKIT2_DIR}/WebProcess/WebPage/Cocoa"
418     "${WEBKIT2_DIR}/WebProcess/WebPage/mac"
419     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/mac"
420     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
421     "${DERIVED_SOURCES_WEBCORE_DIR}"
422 )
423
424 set(XPCService_SOURCES
425     Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm
426     Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm
427 )
428
429 set(WebProcess_SOURCES
430     WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm
431     ${XPCService_SOURCES}
432 )
433
434 set(PluginProcess_SOURCES
435     PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm
436     ${XPCService_SOURCES}
437 )
438
439 list(APPEND NetworkProcess_SOURCES
440     NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm
441     ${XPCService_SOURCES}
442 )
443
444 list(APPEND DatabaseProcess_SOURCES
445     DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm
446     ${XPCService_SOURCES}
447 )
448
449 # FIXME: These should not have Development in production builds.
450 set(WebKit2_WebProcess_OUTPUT_NAME com.apple.WebKit.WebContent.Development)
451 set(WebKit2_NetworkProcess_OUTPUT_NAME com.apple.WebKit.Networking.Development)
452
453 add_definitions("-include WebKit2Prefix.h")
454
455 set(WebKit2_FORWARDING_HEADERS_FILES
456     Shared/API/c/WKDiagnosticLoggingResultType.h
457
458     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
459     UIProcess/API/C/WKPageNavigationClient.h
460     UIProcess/API/C/WKPageRenderingProgressEvents.h
461 )
462
463 list(APPEND WebKit2_MESSAGES_IN_FILES
464     Shared/API/Cocoa/RemoteObjectRegistry.messages.in
465
466     UIProcess/Cocoa/ViewGestureController.messages.in
467     UIProcess/Cocoa/WebVideoFullscreenManagerProxy.messages.in
468
469     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.messages.in
470     UIProcess/mac/SecItemShimProxy.messages.in
471
472     WebProcess/Scrolling/RemoteScrollingCoordinator.messages.in
473     WebProcess/WebPage/ViewGestureGeometryCollector.messages.in
474 )
475
476 set(WebKit2_FORWARDING_HEADERS_DIRECTORIES
477     Platform
478     Shared
479
480     NetworkProcess/Downloads
481
482     Platform/IPC
483
484     Shared/API
485     Shared/Cocoa
486
487     Shared/API/Cocoa
488     Shared/API/c
489
490     Shared/API/c/cf
491     Shared/API/c/mac
492
493     UIProcess/Cocoa
494
495     UIProcess/API/C
496
497     UIProcess/API/C/Cocoa
498     UIProcess/API/C/mac
499     UIProcess/API/cpp
500
501     WebProcess/WebPage
502
503     WebProcess/InjectedBundle/API/Cocoa
504     WebProcess/InjectedBundle/API/c
505     WebProcess/InjectedBundle/API/mac
506 )
507
508 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit FILES ${WebKit2_FORWARDING_HEADERS_FILES} DIRECTORIES ${WebKit2_FORWARDING_HEADERS_DIRECTORIES})
509
510 # This is needed right now to import ObjC headers instead of including them.
511 # FIXME: Forwarding headers should be copies of actual headers.
512 file(GLOB ObjCHeaders UIProcess/API/Cocoa/*.h)
513 foreach (_file ${ObjCHeaders})
514     get_filename_component(_name ${_file} NAME)
515     if (NOT EXISTS ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_name})
516         file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_name} "#import <WebKit2/UIProcess/API/Cocoa/${_name}>")
517     endif ()
518 endforeach ()
519
520 # FIXME: Forwarding headers should be complete copies of the header.
521 set(WebKitLegacyForwardingHeaders
522     DOM.h
523     DOMCore.h
524     DOMElement.h
525     DOMException.h
526     DOMObject.h
527     DOMPrivate.h
528     WebApplicationCache.h
529     WebCache.h
530     WebCoreStatistics.h
531     WebDOMOperations.h
532     WebDOMOperationsPrivate.h
533     WebDataSource.h
534     WebDataSourcePrivate.h
535     WebDefaultPolicyDelegate.h
536     WebDeviceOrientation.h
537     WebDeviceOrientationProviderMock.h
538     WebDocument.h
539     WebDocumentPrivate.h
540     WebDynamicScrollBarsView.h
541     WebEditingDelegate.h
542     WebFrame.h
543     WebFramePrivate.h
544     WebFrameViewPrivate.h
545     WebGeolocationPosition.h
546     WebHTMLRepresentation.h
547     WebHTMLView.h
548     WebHTMLViewPrivate.h
549     WebHistory.h
550     WebHistoryItem.h
551     WebHistoryItemPrivate.h
552     WebHistoryPrivate.h
553     WebIconDatabasePrivate.h
554     WebInspectorPrivate.h
555     WebKitNSStringExtras.h
556     WebNSURLExtras.h
557     WebNavigationData.h
558     WebNotification.h
559     WebPluginDatabase.h
560     WebPolicyDelegate.h
561     WebPolicyDelegatePrivate.h
562     WebPreferenceKeysPrivate.h
563     WebPreferences.h
564     WebPreferencesPrivate.h
565     WebQuotaManager.h
566     WebScriptWorld.h
567     WebSecurityOriginPrivate.h
568     WebTypesInternal.h
569     WebUIDelegate.h
570     WebUIDelegatePrivate.h
571     WebView.h
572     WebViewPrivate
573     WebViewPrivate.h
574 )
575 foreach (_file ${WebKitLegacyForwardingHeaders})
576     file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_file} "#import <WebKitLegacy/${_file}>")
577 endforeach ()
578
579 set(ObjCForwardingHeaders
580     DOMAbstractView.h
581     DOMAttr.h
582     DOMBeforeLoadEvent.h
583     DOMBlob.h
584     DOMCDATASection.h
585     DOMCSSCharsetRule.h
586     DOMCSSFontFaceRule.h
587     DOMCSSImportRule.h
588     DOMCSSKeyframeRule.h
589     DOMCSSKeyframesRule.h
590     DOMCSSMediaRule.h
591     DOMCSSPageRule.h
592     DOMCSSPrimitiveValue.h
593     DOMCSSRule.h
594     DOMCSSRuleList.h
595     DOMCSSStyleDeclaration.h
596     DOMCSSStyleRule.h
597     DOMCSSStyleSheet.h
598     DOMCSSSupportsRule.h
599     DOMCSSUnknownRule.h
600     DOMCSSValue.h
601     DOMCSSValueList.h
602     DOMCharacterData.h
603     DOMComment.h
604     DOMCounter.h
605     DOMDOMImplementation.h
606     DOMDOMNamedFlowCollection.h
607     DOMDOMTokenList.h
608     DOMDocument.h
609     DOMDocumentFragment.h
610     DOMDocumentType.h
611     DOMElement.h
612     DOMEntity.h
613     DOMEntityReference.h
614     DOMEvent.h
615     DOMEventException.h
616     DOMEventListener.h
617     DOMEventTarget.h
618     DOMFile.h
619     DOMFileList.h
620     DOMHTMLAnchorElement.h
621     DOMHTMLAppletElement.h
622     DOMHTMLAreaElement.h
623     DOMHTMLBRElement.h
624     DOMHTMLBaseElement.h
625     DOMHTMLBaseFontElement.h
626     DOMHTMLBodyElement.h
627     DOMHTMLButtonElement.h
628     DOMHTMLCanvasElement.h
629     DOMHTMLCollection.h
630     DOMHTMLDListElement.h
631     DOMHTMLDirectoryElement.h
632     DOMHTMLDivElement.h
633     DOMHTMLDocument.h
634     DOMHTMLElement.h
635     DOMHTMLEmbedElement.h
636     DOMHTMLFieldSetElement.h
637     DOMHTMLFontElement.h
638     DOMHTMLFormElement.h
639     DOMHTMLFrameElement.h
640     DOMHTMLFrameSetElement.h
641     DOMHTMLHRElement.h
642     DOMHTMLHeadElement.h
643     DOMHTMLHeadingElement.h
644     DOMHTMLHtmlElement.h
645     DOMHTMLIFrameElement.h
646     DOMHTMLImageElement.h
647     DOMHTMLInputElement.h
648     DOMHTMLInputElementPrivate.h
649     DOMHTMLLIElement.h
650     DOMHTMLLabelElement.h
651     DOMHTMLLegendElement.h
652     DOMHTMLLinkElement.h
653     DOMHTMLMapElement.h
654     DOMHTMLMarqueeElement.h
655     DOMHTMLMediaElement.h
656     DOMHTMLMenuElement.h
657     DOMHTMLMetaElement.h
658     DOMHTMLModElement.h
659     DOMHTMLOListElement.h
660     DOMHTMLObjectElement.h
661     DOMHTMLOptGroupElement.h
662     DOMHTMLOptionElement.h
663     DOMHTMLOptionsCollection.h
664     DOMHTMLParagraphElement.h
665     DOMHTMLParamElement.h
666     DOMHTMLPreElement.h
667     DOMHTMLQuoteElement.h
668     DOMHTMLScriptElement.h
669     DOMHTMLSelectElement.h
670     DOMHTMLStyleElement.h
671     DOMHTMLTableCaptionElement.h
672     DOMHTMLTableCellElement.h
673     DOMHTMLTableColElement.h
674     DOMHTMLTableElement.h
675     DOMHTMLTableRowElement.h
676     DOMHTMLTableSectionElement.h
677     DOMHTMLTextAreaElement.h
678     DOMHTMLTitleElement.h
679     DOMHTMLUListElement.h
680     DOMHTMLVideoElement.h
681     DOMImplementation.h
682     DOMKeyboardEvent.h
683     DOMMediaError.h
684     DOMMediaList.h
685     DOMMessageEvent.h
686     DOMMessagePort.h
687     DOMMouseEvent.h
688     DOMMutationEvent.h
689     DOMNamedNodeMap.h
690     DOMNode.h
691     DOMNodeFilter.h
692     DOMNodeIterator.h
693     DOMNodeList.h
694     DOMOverflowEvent.h
695     DOMProcessingInstruction.h
696     DOMProgressEvent.h
697     DOMRGBColor.h
698     DOMRange.h
699     DOMRangeException.h
700     DOMRect.h
701     DOMStyleSheet.h
702     DOMStyleSheetList.h
703     DOMText.h
704     DOMTextEvent.h
705     DOMTimeRanges.h
706     DOMTreeWalker.h
707     DOMUIEvent.h
708     DOMValidityState.h
709     DOMWebKitCSSFilterValue.h
710     DOMWebKitCSSRegionRule.h
711     DOMWebKitCSSTransformValue.h
712     DOMWebKitNamedFlow.h
713     DOMWheelEvent.h
714     DOMXPathException.h
715     DOMXPathExpression.h
716     DOMXPathNSResolver.h
717     DOMXPathResult.h
718 )
719 foreach (_file ${ObjCForwardingHeaders})
720     file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_file} "#import <WebKitLegacy/${_file}>")
721 endforeach ()
722
723 list(APPEND WebKit2_AUTOMATION_PROTOCOL_GENERATOR_EXTRA_FLAGS
724     --platform=macOS
725 )
726
727 # FIXME: These should not be necessary.
728 file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/WKImageCG.h "#import <WebKit2/Shared/API/c/cg/WKImageCG.h>")
729 file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/WebStorageManagerPrivate.h "#import <WebKit/mac/Storage/WebStorageManagerPrivate.h>")
730 file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/WebDatabaseManagerPrivate.h "#import <WebKit/mac/Storage/WebDatabaseManagerPrivate.h>")
731
732 set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")
733
734 set(WebKit2_OUTPUT_NAME WebKit)