[cmake] Include WTF, JSC, and WebCore headers automatically to targers using them
[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 )
414
415 set(XPCService_SOURCES
416     Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm
417     Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm
418 )
419
420 set(WebProcess_SOURCES
421     WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm
422     ${XPCService_SOURCES}
423 )
424
425 set(PluginProcess_SOURCES
426     PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm
427     ${XPCService_SOURCES}
428 )
429
430 list(APPEND NetworkProcess_SOURCES
431     NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm
432     ${XPCService_SOURCES}
433 )
434
435 list(APPEND DatabaseProcess_SOURCES
436     DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm
437     ${XPCService_SOURCES}
438 )
439
440 # FIXME: These should not have Development in production builds.
441 set(WebKit2_WebProcess_OUTPUT_NAME com.apple.WebKit.WebContent.Development)
442 set(WebKit2_NetworkProcess_OUTPUT_NAME com.apple.WebKit.Networking.Development)
443
444 add_definitions("-include WebKit2Prefix.h")
445
446 set(WebKit2_FORWARDING_HEADERS_FILES
447     Shared/API/c/WKDiagnosticLoggingResultType.h
448
449     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
450     UIProcess/API/C/WKPageNavigationClient.h
451     UIProcess/API/C/WKPageRenderingProgressEvents.h
452 )
453
454 list(APPEND WebKit2_MESSAGES_IN_FILES
455     Shared/API/Cocoa/RemoteObjectRegistry.messages.in
456
457     UIProcess/Cocoa/ViewGestureController.messages.in
458     UIProcess/Cocoa/WebVideoFullscreenManagerProxy.messages.in
459
460     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.messages.in
461     UIProcess/mac/SecItemShimProxy.messages.in
462
463     WebProcess/Scrolling/RemoteScrollingCoordinator.messages.in
464     WebProcess/WebPage/ViewGestureGeometryCollector.messages.in
465 )
466
467 set(WebKit2_FORWARDING_HEADERS_DIRECTORIES
468     Platform
469     Shared
470
471     NetworkProcess/Downloads
472
473     Platform/IPC
474
475     Shared/API
476     Shared/Cocoa
477
478     Shared/API/Cocoa
479     Shared/API/c
480
481     Shared/API/c/cf
482     Shared/API/c/mac
483
484     UIProcess/Cocoa
485
486     UIProcess/API/C
487
488     UIProcess/API/C/mac
489     UIProcess/API/cpp
490
491     WebProcess/WebPage
492
493     WebProcess/InjectedBundle/API/Cocoa
494     WebProcess/InjectedBundle/API/c
495     WebProcess/InjectedBundle/API/mac
496 )
497
498 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit FILES ${WebKit2_FORWARDING_HEADERS_FILES} DIRECTORIES ${WebKit2_FORWARDING_HEADERS_DIRECTORIES})
499
500 # This is needed right now to import ObjC headers instead of including them.
501 # FIXME: Forwarding headers should be copies of actual headers.
502 file(GLOB ObjCHeaders UIProcess/API/Cocoa/*.h)
503 foreach (_file ${ObjCHeaders})
504     get_filename_component(_name ${_file} NAME)
505     if (NOT EXISTS ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_name})
506         file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_name} "#import <WebKit2/UIProcess/API/Cocoa/${_name}>")
507     endif ()
508 endforeach ()
509
510 # FIXME: Forwarding headers should be complete copies of the header.
511 set(WebKitLegacyForwardingHeaders
512     DOM.h
513     DOMCore.h
514     DOMElement.h
515     DOMException.h
516     DOMObject.h
517     DOMPrivate.h
518     WebApplicationCache.h
519     WebCache.h
520     WebCoreStatistics.h
521     WebDOMOperations.h
522     WebDOMOperationsPrivate.h
523     WebDataSource.h
524     WebDataSourcePrivate.h
525     WebDefaultPolicyDelegate.h
526     WebDeviceOrientation.h
527     WebDeviceOrientationProviderMock.h
528     WebDocument.h
529     WebDocumentPrivate.h
530     WebDynamicScrollBarsView.h
531     WebEditingDelegate.h
532     WebFrame.h
533     WebFramePrivate.h
534     WebFrameViewPrivate.h
535     WebGeolocationPosition.h
536     WebHTMLRepresentation.h
537     WebHTMLView.h
538     WebHTMLViewPrivate.h
539     WebHistory.h
540     WebHistoryItem.h
541     WebHistoryItemPrivate.h
542     WebHistoryPrivate.h
543     WebIconDatabasePrivate.h
544     WebInspectorPrivate.h
545     WebKitNSStringExtras.h
546     WebNSURLExtras.h
547     WebNavigationData.h
548     WebNotification.h
549     WebPluginDatabase.h
550     WebPolicyDelegate.h
551     WebPolicyDelegatePrivate.h
552     WebPreferenceKeysPrivate.h
553     WebPreferences.h
554     WebPreferencesPrivate.h
555     WebQuotaManager.h
556     WebScriptWorld.h
557     WebSecurityOriginPrivate.h
558     WebTypesInternal.h
559     WebUIDelegate.h
560     WebUIDelegatePrivate.h
561     WebView.h
562     WebViewPrivate
563     WebViewPrivate.h
564 )
565 foreach (_file ${WebKitLegacyForwardingHeaders})
566     file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_file} "#import <WebKitLegacy/${_file}>")
567 endforeach ()
568
569 set(ObjCForwardingHeaders
570     DOMAbstractView.h
571     DOMAttr.h
572     DOMBeforeLoadEvent.h
573     DOMBlob.h
574     DOMCDATASection.h
575     DOMCSSCharsetRule.h
576     DOMCSSFontFaceRule.h
577     DOMCSSImportRule.h
578     DOMCSSKeyframeRule.h
579     DOMCSSKeyframesRule.h
580     DOMCSSMediaRule.h
581     DOMCSSPageRule.h
582     DOMCSSPrimitiveValue.h
583     DOMCSSRule.h
584     DOMCSSRuleList.h
585     DOMCSSStyleDeclaration.h
586     DOMCSSStyleRule.h
587     DOMCSSStyleSheet.h
588     DOMCSSSupportsRule.h
589     DOMCSSUnknownRule.h
590     DOMCSSValue.h
591     DOMCSSValueList.h
592     DOMCharacterData.h
593     DOMComment.h
594     DOMCounter.h
595     DOMDOMImplementation.h
596     DOMDOMNamedFlowCollection.h
597     DOMDOMTokenList.h
598     DOMDocument.h
599     DOMDocumentFragment.h
600     DOMDocumentType.h
601     DOMElement.h
602     DOMEntity.h
603     DOMEntityReference.h
604     DOMEvent.h
605     DOMEventException.h
606     DOMEventListener.h
607     DOMEventTarget.h
608     DOMFile.h
609     DOMFileList.h
610     DOMHTMLAnchorElement.h
611     DOMHTMLAppletElement.h
612     DOMHTMLAreaElement.h
613     DOMHTMLBRElement.h
614     DOMHTMLBaseElement.h
615     DOMHTMLBaseFontElement.h
616     DOMHTMLBodyElement.h
617     DOMHTMLButtonElement.h
618     DOMHTMLCanvasElement.h
619     DOMHTMLCollection.h
620     DOMHTMLDListElement.h
621     DOMHTMLDirectoryElement.h
622     DOMHTMLDivElement.h
623     DOMHTMLDocument.h
624     DOMHTMLElement.h
625     DOMHTMLEmbedElement.h
626     DOMHTMLFieldSetElement.h
627     DOMHTMLFontElement.h
628     DOMHTMLFormElement.h
629     DOMHTMLFrameElement.h
630     DOMHTMLFrameSetElement.h
631     DOMHTMLHRElement.h
632     DOMHTMLHeadElement.h
633     DOMHTMLHeadingElement.h
634     DOMHTMLHtmlElement.h
635     DOMHTMLIFrameElement.h
636     DOMHTMLImageElement.h
637     DOMHTMLInputElement.h
638     DOMHTMLInputElementPrivate.h
639     DOMHTMLLIElement.h
640     DOMHTMLLabelElement.h
641     DOMHTMLLegendElement.h
642     DOMHTMLLinkElement.h
643     DOMHTMLMapElement.h
644     DOMHTMLMarqueeElement.h
645     DOMHTMLMediaElement.h
646     DOMHTMLMenuElement.h
647     DOMHTMLMetaElement.h
648     DOMHTMLModElement.h
649     DOMHTMLOListElement.h
650     DOMHTMLObjectElement.h
651     DOMHTMLOptGroupElement.h
652     DOMHTMLOptionElement.h
653     DOMHTMLOptionsCollection.h
654     DOMHTMLParagraphElement.h
655     DOMHTMLParamElement.h
656     DOMHTMLPreElement.h
657     DOMHTMLQuoteElement.h
658     DOMHTMLScriptElement.h
659     DOMHTMLSelectElement.h
660     DOMHTMLStyleElement.h
661     DOMHTMLTableCaptionElement.h
662     DOMHTMLTableCellElement.h
663     DOMHTMLTableColElement.h
664     DOMHTMLTableElement.h
665     DOMHTMLTableRowElement.h
666     DOMHTMLTableSectionElement.h
667     DOMHTMLTextAreaElement.h
668     DOMHTMLTitleElement.h
669     DOMHTMLUListElement.h
670     DOMHTMLVideoElement.h
671     DOMImplementation.h
672     DOMKeyboardEvent.h
673     DOMMediaError.h
674     DOMMediaList.h
675     DOMMessageEvent.h
676     DOMMessagePort.h
677     DOMMouseEvent.h
678     DOMMutationEvent.h
679     DOMNamedNodeMap.h
680     DOMNode.h
681     DOMNodeFilter.h
682     DOMNodeIterator.h
683     DOMNodeList.h
684     DOMOverflowEvent.h
685     DOMProcessingInstruction.h
686     DOMProgressEvent.h
687     DOMRGBColor.h
688     DOMRange.h
689     DOMRangeException.h
690     DOMRect.h
691     DOMStyleSheet.h
692     DOMStyleSheetList.h
693     DOMText.h
694     DOMTextEvent.h
695     DOMTimeRanges.h
696     DOMTreeWalker.h
697     DOMUIEvent.h
698     DOMValidityState.h
699     DOMWebKitCSSFilterValue.h
700     DOMWebKitCSSRegionRule.h
701     DOMWebKitCSSTransformValue.h
702     DOMWebKitNamedFlow.h
703     DOMWheelEvent.h
704     DOMXPathException.h
705     DOMXPathExpression.h
706     DOMXPathNSResolver.h
707     DOMXPathResult.h
708 )
709 foreach (_file ${ObjCForwardingHeaders})
710     file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/${_file} "#import <WebKitLegacy/${_file}>")
711 endforeach ()
712
713 # FIXME: These should not be necessary.
714 file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/WKImageCG.h "#import <WebKit2/Shared/API/c/cg/WKImageCG.h>")
715 file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/WebStorageManagerPrivate.h "#import <WebKit/mac/Storage/WebStorageManagerPrivate.h>")
716 file(WRITE ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit/WebDatabaseManagerPrivate.h "#import <WebKit/mac/Storage/WebDatabaseManagerPrivate.h>")
717
718 set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")
719
720 set(WebKit2_OUTPUT_NAME WebKit)