Compile and link with CMake on Mac
[WebKit-https.git] / Source / WebKit2 / PlatformMac.cmake
1 add_definitions("-ObjC++ -std=c++11")
2
3 if ("${CURRENT_OSX_VERSION}" MATCHES "10.9")
4 set(WEBKITSYSTEMINTERFACE_LIBRARY libWebKitSystemInterfaceMavericks.a)
5 elif ("${CURRENT_OSX_VERSION}" MATCHES "10.10")
6 set(WEBKITSYSTEMINTERFACE_LIBRARY libWebKitSystemInterfaceYosemite.a)
7 else ()
8 set(WEBKITSYSTEMINTERFACE_LIBRARY libWebKitSystemInterfaceElCapitan.a)
9 endif ()
10 link_directories(../../WebKitLibraries)
11
12 find_library(ACCELERATE_LIBRARY accelerate)
13 find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
14 find_library(AUDIOUNIT_LIBRARY AudioUnit)
15 find_library(CARBON_LIBRARY Carbon)
16 find_library(COCOA_LIBRARY Cocoa)
17 find_library(COREAUDIO_LIBRARY CoreAudio)
18 find_library(DISKARBITRATION_LIBRARY DiskArbitration)
19 find_library(IOKIT_LIBRARY IOKit)
20 find_library(IOSURFACE_LIBRARY IOSurface)
21 find_library(OPENGL_LIBRARY OpenGL)
22 find_library(QUARTZ_LIBRARY Quartz)
23 find_library(QUARTZCORE_LIBRARY QuartzCore)
24 find_library(SECURITY_LIBRARY Security)
25 find_library(SYSTEMCONFIGURATION_LIBRARY SystemConfiguration)
26 find_library(SQLITE3_LIBRARY sqlite3)
27 find_library(XML2_LIBRARY XML2)
28 find_package(ZLIB REQUIRED)
29
30 add_definitions(-iframework ${QUARTZ_LIBRARY}/Frameworks)
31 add_definitions(-iframework ${CARBON_LIBRARY}/Frameworks)
32
33 list(APPEND WebKit2_LIBRARIES
34     ${ACCELERATE_LIBRARY}
35     ${AUDIOTOOLBOX_LIBRARY}
36     ${AUDIOUNIT_LIBRARY}
37     ${CARBON_LIBRARY}
38     ${COCOA_LIBRARY}
39     ${COREAUDIO_LIBRARY}
40     ${DISKARBITRATION_LIBRARY}
41     ${IOKIT_LIBRARY}
42     ${IOSURFACE_LIBRARY}
43     ${OPENGL_LIBRARY}
44     ${QUARTZ_LIBRARY}
45     ${QUARTZCORE_LIBRARY}
46     ${SECURITY_LIBRARY}
47     ${SQLITE3_LIBRARY}
48     ${SYSTEMCONFIGURATION_LIBRARY}
49     ${WEBKITSYSTEMINTERFACE_LIBRARY}
50     ${XML2_LIBRARY}
51     ${ZLIB_LIBRARIES}
52     WebKit
53 )
54
55 list(APPEND WebKit2_SOURCES
56     DatabaseProcess/mac/DatabaseProcessMac.mm
57
58     NetworkProcess/cache/NetworkCacheDataCocoa.mm
59     NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm
60
61     NetworkProcess/cocoa/NetworkProcessCocoa.mm
62
63     NetworkProcess/mac/NetworkDiskCacheMonitor.mm
64     NetworkProcess/mac/NetworkProcessMac.mm
65     NetworkProcess/mac/NetworkResourceLoaderMac.mm
66     NetworkProcess/mac/RemoteNetworkingContext.mm
67
68     Platform/IPC/MessageRecorder.cpp
69
70     Platform/IPC/mac/ConnectionMac.mm
71
72     Platform/cf/ModuleCF.cpp
73
74     Platform/cg/CGUtilities.cpp
75
76     Platform/foundation/LoggingFoundation.mm
77
78     Platform/mac/LayerHostingContext.mm
79     Platform/mac/MachUtilities.cpp
80     Platform/mac/MenuUtilities.mm
81     Platform/mac/SharedMemoryMac.cpp
82     Platform/mac/StringUtilities.mm
83
84     Platform/unix/EnvironmentUtilities.cpp
85
86     PluginProcess/mac/PluginControllerProxyMac.mm
87     PluginProcess/mac/PluginProcessMac.mm
88     PluginProcess/mac/PluginProcessShim.mm
89
90     Shared/APIWebArchive.mm
91     Shared/APIWebArchiveResource.mm
92
93     Shared/API/Cocoa/RemoteObjectRegistry.mm
94     Shared/API/Cocoa/WKBrowsingContextHandle.mm
95     Shared/API/Cocoa/WKRemoteObject.mm
96     Shared/API/Cocoa/WKRemoteObjectCoder.mm
97     Shared/API/Cocoa/WebKit.m
98     Shared/API/Cocoa/_WKFrameHandle.mm
99     Shared/API/Cocoa/_WKHitTestResult.mm
100     Shared/API/Cocoa/_WKNSFileManagerExtras.mm
101     Shared/API/Cocoa/_WKRemoteObjectInterface.mm
102     Shared/API/Cocoa/_WKRemoteObjectRegistry.mm
103
104     Shared/API/c/cf/WKErrorCF.cpp
105     Shared/API/c/cf/WKStringCF.mm
106     Shared/API/c/cf/WKURLCF.mm
107
108     Shared/API/c/cg/WKImageCG.cpp
109
110     Shared/API/c/mac/WKCertificateInfoMac.mm
111     Shared/API/c/mac/WKObjCTypeWrapperRef.mm
112     Shared/API/c/mac/WKURLRequestNS.mm
113     Shared/API/c/mac/WKURLResponseNS.mm
114     Shared/API/c/mac/WKWebArchive.cpp
115     Shared/API/c/mac/WKWebArchiveResource.cpp
116
117     Shared/Authentication/mac/AuthenticationManager.mac.mm
118
119     Shared/Cocoa/APIDataCocoa.mm
120     Shared/Cocoa/APIObject.mm
121     Shared/Cocoa/CompletionHandlerCallChecker.mm
122     Shared/Cocoa/WKNSArray.mm
123     Shared/Cocoa/WKNSData.mm
124     Shared/Cocoa/WKNSDictionary.mm
125     Shared/Cocoa/WKNSError.mm
126     Shared/Cocoa/WKNSString.mm
127     Shared/Cocoa/WKNSURL.mm
128     Shared/Cocoa/WKNSURLExtras.mm
129     Shared/Cocoa/WKNSURLRequest.mm
130     Shared/Cocoa/WKObject.mm
131
132     Shared/Downloads/mac/DownloadMac.mm
133
134     Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm
135
136     Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm
137     Shared/Plugins/Netscape/mac/PluginInformationMac.mm
138
139     Shared/Plugins/mac/PluginSandboxProfile.mm
140
141     Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp
142
143     Shared/cf/ArgumentCodersCF.cpp
144
145     Shared/cg/ShareableBitmapCG.cpp
146
147     Shared/mac/ArgumentCodersMac.mm
148     Shared/mac/AttributedString.mm
149     Shared/mac/ChildProcessMac.mm
150     Shared/mac/ColorSpaceData.mm
151     Shared/mac/CookieStorageShim.mm
152     Shared/mac/CookieStorageShimLibrary.cpp
153     Shared/mac/HangDetectionDisablerMac.mm
154     Shared/mac/NativeWebGestureEventMac.mm
155     Shared/mac/NativeWebKeyboardEventMac.mm
156     Shared/mac/NativeWebMouseEventMac.mm
157     Shared/mac/NativeWebWheelEventMac.mm
158     Shared/mac/ObjCObjectGraph.mm
159     Shared/mac/PDFKitImports.mm
160     Shared/mac/PasteboardTypes.mm
161     Shared/mac/PrintInfoMac.mm
162     Shared/mac/RemoteLayerBackingStore.mm
163     Shared/mac/RemoteLayerBackingStoreCollection.mm
164     Shared/mac/RemoteLayerTreePropertyApplier.mm
165     Shared/mac/RemoteLayerTreeTransaction.mm
166     Shared/mac/SandboxExtensionMac.mm
167     Shared/mac/SandboxInitialiationParametersMac.mm
168     Shared/mac/SandboxUtilities.mm
169     Shared/mac/SecItemRequestData.cpp
170     Shared/mac/SecItemResponseData.cpp
171     Shared/mac/SecItemShim.cpp
172     Shared/mac/WebCoreArgumentCodersMac.mm
173     Shared/mac/WebEventFactory.mm
174     Shared/mac/WebGestureEvent.cpp
175     Shared/mac/WebHitTestResultData.mm
176     Shared/mac/WebMemorySampler.mac.mm
177
178     UIProcess/ViewGestureController.cpp
179
180     UIProcess/API/APIUserScript.cpp
181     UIProcess/API/APIUserStyleSheet.cpp
182     UIProcess/API/APIWebsiteDataRecord.cpp
183
184     UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm
185     UIProcess/API/Cocoa/APIUserContentExtensionStoreCocoa.mm
186     UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm
187     UIProcess/API/Cocoa/LegacyBundleForClass.mm
188     UIProcess/API/Cocoa/WKBackForwardList.mm
189     UIProcess/API/Cocoa/WKBackForwardListItem.mm
190     UIProcess/API/Cocoa/WKBrowsingContextController.mm
191     UIProcess/API/Cocoa/WKBrowsingContextGroup.mm
192     UIProcess/API/Cocoa/WKConnection.mm
193     UIProcess/API/Cocoa/WKError.mm
194     UIProcess/API/Cocoa/WKFrameInfo.mm
195     UIProcess/API/Cocoa/WKNSURLAuthenticationChallenge.mm
196     UIProcess/API/Cocoa/WKNavigation.mm
197     UIProcess/API/Cocoa/WKNavigationAction.mm
198     UIProcess/API/Cocoa/WKNavigationData.mm
199     UIProcess/API/Cocoa/WKNavigationResponse.mm
200     UIProcess/API/Cocoa/WKPreferences.mm
201     UIProcess/API/Cocoa/WKProcessPool.mm
202     UIProcess/API/Cocoa/WKScriptMessage.mm
203     UIProcess/API/Cocoa/WKSecurityOrigin.mm
204     UIProcess/API/Cocoa/WKTypeRefWrapper.mm
205     UIProcess/API/Cocoa/WKUserContentController.mm
206     UIProcess/API/Cocoa/WKUserScript.mm
207     UIProcess/API/Cocoa/WKWebView.mm
208     UIProcess/API/Cocoa/WKWebViewConfiguration.mm
209     UIProcess/API/Cocoa/WKWebsiteDataRecord.mm
210     UIProcess/API/Cocoa/WKWebsiteDataStore.mm
211     UIProcess/API/Cocoa/WKWindowFeatures.mm
212     UIProcess/API/Cocoa/_WKActivatedElementInfo.mm
213     UIProcess/API/Cocoa/_WKDownload.mm
214     UIProcess/API/Cocoa/_WKElementAction.mm
215     UIProcess/API/Cocoa/_WKErrorRecoveryAttempting.mm
216     UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
217     UIProcess/API/Cocoa/_WKSessionState.mm
218     UIProcess/API/Cocoa/_WKThumbnailView.mm
219     UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm
220     UIProcess/API/Cocoa/_WKUserContentFilter.mm
221     UIProcess/API/Cocoa/_WKUserStyleSheet.mm
222     UIProcess/API/Cocoa/_WKVisitedLinkStore.mm
223     UIProcess/API/Cocoa/_WKWebsiteDataStore.mm
224
225     UIProcess/API/mac/WKView.mm
226
227     UIProcess/Cocoa/DiagnosticLoggingClient.mm
228     UIProcess/Cocoa/DownloadClient.mm
229     UIProcess/Cocoa/FindClient.mm
230     UIProcess/Cocoa/NavigationState.mm
231     UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm
232     UIProcess/Cocoa/SessionStateCoding.mm
233     UIProcess/Cocoa/UIDelegate.mm
234     UIProcess/Cocoa/VersionChecks.mm
235     UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm
236     UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm
237     UIProcess/Cocoa/WebPageProxyCocoa.mm
238     UIProcess/Cocoa/WebPasteboardProxyCocoa.mm
239     UIProcess/Cocoa/WebProcessPoolCocoa.mm
240     UIProcess/Cocoa/WebProcessProxyCocoa.mm
241     UIProcess/Cocoa/WebViewImpl.mm
242
243     UIProcess/Databases/mac/DatabaseProcessProxyMac.mm
244
245     UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm
246     UIProcess/Launcher/mac/EnvironmentVariables.cpp
247     UIProcess/Launcher/mac/ProcessLauncherMac.mm
248
249     UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm
250
251     UIProcess/Network/mac/NetworkProcessProxyMac.mm
252
253     UIProcess/Plugins/mac/PluginInfoStoreMac.mm
254     UIProcess/Plugins/mac/PluginProcessManagerMac.mm
255     UIProcess/Plugins/mac/PluginProcessProxyMac.mm
256
257     UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp
258     UIProcess/Scrolling/RemoteScrollingTree.cpp
259
260     UIProcess/Storage/StorageManager.cpp
261
262     UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
263
264     UIProcess/mac/CorrectionPanel.mm
265     UIProcess/mac/LegacySessionStateCoding.cpp
266     UIProcess/mac/PageClientImpl.mm
267     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm
268     UIProcess/mac/RemoteLayerTreeHost.mm
269     UIProcess/mac/SecItemShimProxy.cpp
270     UIProcess/mac/ServicesController.mm
271     UIProcess/mac/TextCheckerMac.mm
272     UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm
273     UIProcess/mac/ViewGestureControllerMac.mm
274     UIProcess/mac/ViewSnapshotStore.mm
275     UIProcess/mac/WKFullKeyboardAccessWatcher.mm
276     UIProcess/mac/WKFullScreenWindowController.mm
277     UIProcess/mac/WKImmediateActionController.mm
278     UIProcess/mac/WKPrintingView.mm
279     UIProcess/mac/WKSharingServicePickerDelegate.mm
280     UIProcess/mac/WKTextInputWindowController.mm
281     UIProcess/mac/WKViewLayoutStrategy.mm
282     UIProcess/mac/WebColorPickerMac.mm
283     UIProcess/mac/WebContextMenuProxyMac.mm
284     UIProcess/mac/WebCookieManagerProxyMac.mm
285     UIProcess/mac/WebInspectorProxyMac.mm
286     UIProcess/mac/WebPageProxyMac.mm
287     UIProcess/mac/WebPopupMenuProxyMac.mm
288     UIProcess/mac/WebPreferencesMac.mm
289     UIProcess/mac/WebProcessProxyMac.mm
290     UIProcess/mac/WindowServerConnection.mm
291
292     WebProcess/Cookies/mac/WebCookieManagerMac.mm
293
294     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.mm
295     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
296     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm
297     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm
298     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.mm
299     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm
300
301     WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm
302     WebProcess/InjectedBundle/API/mac/WKDOMElement.mm
303     WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm
304     WebProcess/InjectedBundle/API/mac/WKDOMNode.mm
305     WebProcess/InjectedBundle/API/mac/WKDOMRange.mm
306     WebProcess/InjectedBundle/API/mac/WKDOMText.mm
307     WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm
308     WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm
309     WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm
310
311     WebProcess/InjectedBundle/mac/InjectedBundleMac.mm
312
313     WebProcess/MediaCache/WebMediaCacheManager.cpp
314     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
315
316     WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm
317     WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm
318     WebProcess/Plugins/Netscape/mac/WKNPAPIPlugInContainer.mm
319
320     WebProcess/Plugins/PDF/PDFPlugin.mm
321     WebProcess/Plugins/PDF/PDFPluginAnnotation.mm
322     WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm
323     WebProcess/Plugins/PDF/PDFPluginPasswordField.mm
324     WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm
325
326     WebProcess/Scrolling/RemoteScrollingCoordinator.mm
327
328     WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp
329
330     WebProcess/WebCoreSupport/mac/WebAlternativeTextClient.cpp
331     WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm
332     WebProcess/WebCoreSupport/mac/WebDragClientMac.mm
333     WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm
334     WebProcess/WebCoreSupport/mac/WebErrorsMac.mm
335     WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm
336     WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm
337     WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
338
339     WebProcess/WebPage/ViewGestureGeometryCollector.cpp
340
341     WebProcess/WebPage/Cocoa/RemoteLayerTreeDisplayRefreshMonitor.mm
342
343     WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp
344     WebProcess/WebPage/mac/PageBannerMac.mm
345     WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm
346     WebProcess/WebPage/mac/PlatformCALayerRemote.cpp
347     WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm
348     WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp
349     WebProcess/WebPage/mac/RemoteLayerTreeContext.mm
350     WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm
351     WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
352     WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm
353     WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm
354     WebProcess/WebPage/mac/WebInspectorUIMac.mm
355     WebProcess/WebPage/mac/WebPageMac.mm
356
357     WebProcess/cocoa/WebProcessCocoa.mm
358
359     WebProcess/mac/SecItemShimLibrary.mm
360 )
361
362 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
363
364 list(APPEND WebKit2_INCLUDE_DIRECTORIES
365     "${WEBCORE_DIR}/icu"
366     "${WEBCORE_DIR}/platform/cf"
367     "${WEBCORE_DIR}/platform/cocoa"
368     "${WEBCORE_DIR}/platform/mac"
369     "${WEBCORE_DIR}/platform/network/cf"
370     "${WEBCORE_DIR}/platform/network/cocoa"
371     "${WEBCORE_DIR}/platform/spi/mac"
372     "${WEBCORE_DIR}/platform/graphics/ca"
373     "${WEBCORE_DIR}/platform/graphics/cg"
374     "${WEBCORE_DIR}/platform/graphics/opentype"
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/mac"
403     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/Cocoa"
404     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/mac"
405     "${WEBKIT2_DIR}/WebProcess/Plugins/PDF"
406     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape/mac"
407     "${WEBKIT2_DIR}/WebProcess/Scrolling"
408     "${WEBKIT2_DIR}/WebProcess/WebPage/Cocoa"
409     "${WEBKIT2_DIR}/WebProcess/WebPage/mac"
410     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/mac"
411     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
412 )
413
414 # This is needed because of a naming conflict with DiagnosticLoggingClient.h.
415 # FIXME: Rename one of the DiagnosticLoggingClient headers.
416 list(REMOVE_ITEM WebKit2_INCLUDE_DIRECTORIES
417     "${WEBCORE_DIR}/page"
418 )
419 list(APPEND WebKit2_INCLUDE_DIRECTORIES
420     "${WEBCORE_DIR}/page"
421 )
422
423 set(WEBKIT2_EXTRA_DEPENDENCIES
424      WebKit2-forwarding-headers
425 )
426
427 set(XPCService_SOURCES
428     Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm
429     Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm
430 )
431
432 set(WebProcess_SOURCES
433     WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm
434     ${XPCService_SOURCES}
435 )
436
437 set(PluginProcess_SOURCES
438     PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm
439     ${XPCService_SOURCES}
440 )
441
442 list(APPEND NetworkProcess_SOURCES
443     NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm
444     ${XPCService_SOURCES}
445 )
446
447 list(APPEND DatabaseProcess_SOURCES
448     DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm
449     ${XPCService_SOURCES}
450 )
451
452 add_definitions("-include WebKit2Prefix.h")
453
454 set(WebKit2_FORWARDING_HEADERS_FILES
455     Shared/API/c/WKDiagnosticLoggingResultType.h
456
457     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
458     UIProcess/API/C/WKPageNavigationClient.h
459     UIProcess/API/C/WKPageRenderingProgressEvents.h
460 )
461
462 list(APPEND WebKit2_MESSAGES_IN_FILES
463     Shared/API/Cocoa/RemoteObjectRegistry.messages.in
464
465     Shared/mac/SecItemShim.messages.in
466
467     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.messages.in
468     UIProcess/mac/SecItemShimProxy.messages.in
469     UIProcess/mac/ViewGestureController.messages.in
470
471     WebProcess/Scrolling/RemoteScrollingCoordinator.messages.in
472     WebProcess/WebPage/ViewGestureGeometryCollector.messages.in
473 )
474
475 set(WebKit2_FORWARDING_HEADERS_DIRECTORIES
476     Shared
477     Shared/API/Cocoa
478     Shared/API/c
479
480     Shared/API/c/cf
481
482     Shared/API/c/mac
483
484     UIProcess/Cocoa
485
486     UIProcess/API/C
487     UIProcess/API/Cocoa
488     UIProcess/API/cpp
489
490     WebProcess/WebPage
491
492     WebProcess/InjectedBundle/API/Cocoa
493     WebProcess/InjectedBundle/API/c
494     WebProcess/InjectedBundle/API/mac
495 )
496
497 add_custom_command(
498     OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/MessageRecorderProbes.h
499     MAIN_DEPENDENCY Platform/IPC/MessageRecorderProbes.d
500     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR}
501     COMMAND dtrace -h -s ${WEBKIT2_DIR}/Platform/IPC/MessageRecorderProbes.d
502     VERBATIM)
503 list(APPEND WebKit2_SOURCES
504     ${DERIVED_SOURCES_WEBKIT2_DIR}/MessageRecorderProbes.h
505 )
506
507 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit FILES ${WebKit2_FORWARDING_HEADERS_FILES} DIRECTORIES ${WebKit2_FORWARDING_HEADERS_DIRECTORIES})