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