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