ba6abf471665e267ae8ab5e66ccbbcbee74b3409
[WebKit-https.git] / Source / WebKit2 / PlatformMac.cmake
1 add_definitions(-ObjC++)
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     PluginProcess/mac/PluginControllerProxyMac.mm
85     PluginProcess/mac/PluginProcessMac.mm
86     PluginProcess/mac/PluginProcessShim.mm
87
88     Shared/APIWebArchive.mm
89     Shared/APIWebArchiveResource.mm
90
91     Shared/API/Cocoa/RemoteObjectRegistry.mm
92     Shared/API/Cocoa/WKBrowsingContextHandle.mm
93     Shared/API/Cocoa/WKRemoteObject.mm
94     Shared/API/Cocoa/WKRemoteObjectCoder.mm
95     Shared/API/Cocoa/WebKit.m
96     Shared/API/Cocoa/_WKFrameHandle.mm
97     Shared/API/Cocoa/_WKHitTestResult.mm
98     Shared/API/Cocoa/_WKNSFileManagerExtras.mm
99     Shared/API/Cocoa/_WKRemoteObjectInterface.mm
100     Shared/API/Cocoa/_WKRemoteObjectRegistry.mm
101
102     Shared/API/c/cf/WKErrorCF.cpp
103     Shared/API/c/cf/WKStringCF.mm
104     Shared/API/c/cf/WKURLCF.mm
105
106     Shared/API/c/cg/WKImageCG.cpp
107
108     Shared/API/c/mac/WKCertificateInfoMac.mm
109     Shared/API/c/mac/WKObjCTypeWrapperRef.mm
110     Shared/API/c/mac/WKURLRequestNS.mm
111     Shared/API/c/mac/WKURLResponseNS.mm
112     Shared/API/c/mac/WKWebArchive.cpp
113     Shared/API/c/mac/WKWebArchiveResource.cpp
114
115     Shared/Authentication/mac/AuthenticationManager.mac.mm
116
117     Shared/Cocoa/APIDataCocoa.mm
118     Shared/Cocoa/APIObject.mm
119     Shared/Cocoa/CompletionHandlerCallChecker.mm
120     Shared/Cocoa/WKNSArray.mm
121     Shared/Cocoa/WKNSData.mm
122     Shared/Cocoa/WKNSDictionary.mm
123     Shared/Cocoa/WKNSError.mm
124     Shared/Cocoa/WKNSString.mm
125     Shared/Cocoa/WKNSURL.mm
126     Shared/Cocoa/WKNSURLExtras.mm
127     Shared/Cocoa/WKNSURLRequest.mm
128     Shared/Cocoa/WKObject.mm
129
130     Shared/Downloads/mac/DownloadMac.mm
131
132     Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm
133
134     Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm
135     Shared/Plugins/Netscape/mac/PluginInformationMac.mm
136
137     Shared/Plugins/mac/PluginSandboxProfile.mm
138
139     Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp
140
141     Shared/cf/ArgumentCodersCF.cpp
142
143     Shared/cg/ShareableBitmapCG.cpp
144
145     Shared/mac/ArgumentCodersMac.mm
146     Shared/mac/AttributedString.mm
147     Shared/mac/ChildProcessMac.mm
148     Shared/mac/ColorSpaceData.mm
149     Shared/mac/CookieStorageShim.mm
150     Shared/mac/CookieStorageShimLibrary.cpp
151     Shared/mac/HangDetectionDisablerMac.mm
152     Shared/mac/NativeWebGestureEventMac.mm
153     Shared/mac/NativeWebKeyboardEventMac.mm
154     Shared/mac/NativeWebMouseEventMac.mm
155     Shared/mac/NativeWebWheelEventMac.mm
156     Shared/mac/ObjCObjectGraph.mm
157     Shared/mac/PDFKitImports.mm
158     Shared/mac/PasteboardTypes.mm
159     Shared/mac/PrintInfoMac.mm
160     Shared/mac/RemoteLayerBackingStore.mm
161     Shared/mac/RemoteLayerBackingStoreCollection.mm
162     Shared/mac/RemoteLayerTreePropertyApplier.mm
163     Shared/mac/RemoteLayerTreeTransaction.mm
164     Shared/mac/SandboxExtensionMac.mm
165     Shared/mac/SandboxInitialiationParametersMac.mm
166     Shared/mac/SandboxUtilities.mm
167     Shared/mac/SecItemRequestData.cpp
168     Shared/mac/SecItemResponseData.cpp
169     Shared/mac/SecItemShim.cpp
170     Shared/mac/WebCoreArgumentCodersMac.mm
171     Shared/mac/WebEventFactory.mm
172     Shared/mac/WebGestureEvent.cpp
173     Shared/mac/WebHitTestResultData.mm
174     Shared/mac/WebMemorySampler.mac.mm
175
176     UIProcess/ViewGestureController.cpp
177
178     UIProcess/API/APIUserScript.cpp
179     UIProcess/API/APIWebsiteDataRecord.cpp
180
181     UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm
182     UIProcess/API/Cocoa/APIUserContentExtensionStoreCocoa.mm
183     UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm
184     UIProcess/API/Cocoa/LegacyBundleForClass.mm
185     UIProcess/API/Cocoa/WKBackForwardList.mm
186     UIProcess/API/Cocoa/WKBackForwardListItem.mm
187     UIProcess/API/Cocoa/WKBrowsingContextController.mm
188     UIProcess/API/Cocoa/WKBrowsingContextGroup.mm
189     UIProcess/API/Cocoa/WKConnection.mm
190     UIProcess/API/Cocoa/WKError.mm
191     UIProcess/API/Cocoa/WKFrameInfo.mm
192     UIProcess/API/Cocoa/WKNSURLAuthenticationChallenge.mm
193     UIProcess/API/Cocoa/WKNavigation.mm
194     UIProcess/API/Cocoa/WKNavigationAction.mm
195     UIProcess/API/Cocoa/WKNavigationData.mm
196     UIProcess/API/Cocoa/WKNavigationResponse.mm
197     UIProcess/API/Cocoa/WKPreferences.mm
198     UIProcess/API/Cocoa/WKProcessPool.mm
199     UIProcess/API/Cocoa/WKScriptMessage.mm
200     UIProcess/API/Cocoa/WKSecurityOrigin.mm
201     UIProcess/API/Cocoa/WKTypeRefWrapper.mm
202     UIProcess/API/Cocoa/WKUserContentController.mm
203     UIProcess/API/Cocoa/WKUserScript.mm
204     UIProcess/API/Cocoa/WKWebView.mm
205     UIProcess/API/Cocoa/WKWebViewConfiguration.mm
206     UIProcess/API/Cocoa/WKWebsiteDataRecord.mm
207     UIProcess/API/Cocoa/WKWebsiteDataStore.mm
208     UIProcess/API/Cocoa/WKWindowFeatures.mm
209     UIProcess/API/Cocoa/_WKActivatedElementInfo.mm
210     UIProcess/API/Cocoa/_WKDownload.mm
211     UIProcess/API/Cocoa/_WKElementAction.mm
212     UIProcess/API/Cocoa/_WKErrorRecoveryAttempting.mm
213     UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
214     UIProcess/API/Cocoa/_WKSessionState.mm
215     UIProcess/API/Cocoa/_WKThumbnailView.mm
216     UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm
217     UIProcess/API/Cocoa/_WKUserContentFilter.mm
218     UIProcess/API/Cocoa/_WKVisitedLinkStore.mm
219     UIProcess/API/Cocoa/_WKWebsiteDataStore.mm
220
221     UIProcess/API/mac/WKView.mm
222
223     UIProcess/Cocoa/DiagnosticLoggingClient.mm
224     UIProcess/Cocoa/DownloadClient.mm
225     UIProcess/Cocoa/FindClient.mm
226     UIProcess/Cocoa/NavigationState.mm
227     UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm
228     UIProcess/Cocoa/SessionStateCoding.mm
229     UIProcess/Cocoa/UIDelegate.mm
230     UIProcess/Cocoa/VersionChecks.mm
231     UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm
232     UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm
233     UIProcess/Cocoa/WebPageProxyCocoa.mm
234     UIProcess/Cocoa/WebPasteboardProxyCocoa.mm
235     UIProcess/Cocoa/WebProcessPoolCocoa.mm
236     UIProcess/Cocoa/WebProcessProxyCocoa.mm
237     UIProcess/Cocoa/WebViewImpl.mm
238
239     UIProcess/Databases/mac/DatabaseProcessProxyMac.mm
240
241     UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm
242     UIProcess/Launcher/mac/EnvironmentVariables.cpp
243     UIProcess/Launcher/mac/ProcessLauncherMac.mm
244
245     UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm
246
247     UIProcess/Network/mac/NetworkProcessProxyMac.mm
248
249     UIProcess/Plugins/mac/PluginInfoStoreMac.mm
250     UIProcess/Plugins/mac/PluginProcessManagerMac.mm
251     UIProcess/Plugins/mac/PluginProcessProxyMac.mm
252
253     UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp
254     UIProcess/Scrolling/RemoteScrollingTree.cpp
255
256     UIProcess/Storage/StorageManager.cpp
257
258     UIProcess/mac/CorrectionPanel.mm
259     UIProcess/mac/LegacySessionStateCoding.cpp
260     UIProcess/mac/PageClientImpl.mm
261     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm
262     UIProcess/mac/RemoteLayerTreeHost.mm
263     UIProcess/mac/SecItemShimProxy.cpp
264     UIProcess/mac/ServicesController.mm
265     UIProcess/mac/TextCheckerMac.mm
266     UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm
267     UIProcess/mac/ViewGestureControllerMac.mm
268     UIProcess/mac/ViewSnapshotStore.mm
269     UIProcess/mac/WKFullKeyboardAccessWatcher.mm
270     UIProcess/mac/WKFullScreenWindowController.mm
271     UIProcess/mac/WKImmediateActionController.mm
272     UIProcess/mac/WKPrintingView.mm
273     UIProcess/mac/WKSharingServicePickerDelegate.mm
274     UIProcess/mac/WKTextInputWindowController.mm
275     UIProcess/mac/WKViewLayoutStrategy.mm
276     UIProcess/mac/WebColorPickerMac.mm
277     UIProcess/mac/WebContextMenuProxyMac.mm
278     UIProcess/mac/WebCookieManagerProxyMac.mm
279     UIProcess/mac/WebInspectorProxyMac.mm
280     UIProcess/mac/WebPageProxyMac.mm
281     UIProcess/mac/WebPopupMenuProxyMac.mm
282     UIProcess/mac/WebPreferencesMac.mm
283     UIProcess/mac/WebProcessProxyMac.mm
284     UIProcess/mac/WindowServerConnection.mm
285
286     WebProcess/Cookies/mac/WebCookieManagerMac.mm
287
288     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessBundleParameters.mm
289     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
290     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm
291     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm
292     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInPageGroup.mm
293     WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm
294
295     WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm
296     WebProcess/InjectedBundle/API/mac/WKDOMElement.mm
297     WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm
298     WebProcess/InjectedBundle/API/mac/WKDOMNode.mm
299     WebProcess/InjectedBundle/API/mac/WKDOMRange.mm
300     WebProcess/InjectedBundle/API/mac/WKDOMText.mm
301     WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm
302     WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm
303     WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm
304
305     WebProcess/InjectedBundle/mac/InjectedBundleMac.mm
306
307     WebProcess/MediaCache/WebMediaCacheManager.cpp
308     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
309
310     WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm
311     WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm
312     WebProcess/Plugins/Netscape/mac/WKNPAPIPlugInContainer.mm
313
314     WebProcess/Plugins/PDF/PDFPlugin.mm
315     WebProcess/Plugins/PDF/PDFPluginAnnotation.mm
316     WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm
317     WebProcess/Plugins/PDF/PDFPluginPasswordField.mm
318     WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm
319
320     WebProcess/Scrolling/RemoteScrollingCoordinator.mm
321
322     WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp
323
324     WebProcess/WebCoreSupport/mac/WebAlternativeTextClient.cpp
325     WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm
326     WebProcess/WebCoreSupport/mac/WebDragClientMac.mm
327     WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm
328     WebProcess/WebCoreSupport/mac/WebErrorsMac.mm
329     WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm
330     WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm
331     WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
332
333     WebProcess/WebPage/ViewGestureGeometryCollector.cpp
334
335     WebProcess/WebPage/Cocoa/RemoteLayerTreeDisplayRefreshMonitor.mm
336
337     WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp
338     WebProcess/WebPage/mac/PageBannerMac.mm
339     WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm
340     WebProcess/WebPage/mac/PlatformCALayerRemote.cpp
341     WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm
342     WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp
343     WebProcess/WebPage/mac/RemoteLayerTreeContext.mm
344     WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm
345     WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
346     WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm
347     WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm
348     WebProcess/WebPage/mac/WebInspectorUIMac.mm
349     WebProcess/WebPage/mac/WebPageMac.mm
350
351     WebProcess/cocoa/WebProcessCocoa.mm
352
353     WebProcess/mac/SecItemShimLibrary.mm
354 )
355
356 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
357
358 list(APPEND WebKit2_INCLUDE_DIRECTORIES
359     "${WEBCORE_DIR}/icu"
360     "${WEBCORE_DIR}/platform/cf"
361     "${WEBCORE_DIR}/platform/cocoa"
362     "${WEBCORE_DIR}/platform/mac"
363     "${WEBCORE_DIR}/platform/network/cf"
364     "${WEBCORE_DIR}/platform/network/cocoa"
365     "${WEBCORE_DIR}/platform/spi/mac"
366     "${WEBCORE_DIR}/platform/graphics/ca"
367     "${WEBCORE_DIR}/platform/graphics/cg"
368     "${WEBCORE_DIR}/platform/graphics/opentype"
369     "${WEBKIT2_DIR}/NetworkProcess/cocoa"
370     "${WEBKIT2_DIR}/NetworkProcess/mac"
371     "${WEBKIT2_DIR}/PluginProcess/mac"
372     "${WEBKIT2_DIR}/UIProcess/mac"
373     "${WEBKIT2_DIR}/UIProcess/API/C/mac"
374     "${WEBKIT2_DIR}/UIProcess/API/Cocoa"
375     "${WEBKIT2_DIR}/UIProcess/API/mac"
376     "${WEBKIT2_DIR}/UIProcess/Cocoa"
377     "${WEBKIT2_DIR}/UIProcess/Launcher/mac"
378     "${WEBKIT2_DIR}/UIProcess/Scrolling"
379     "${WEBKIT2_DIR}/Platform/cg"
380     "${WEBKIT2_DIR}/Platform/mac"
381     "${WEBKIT2_DIR}/Platform/unix"
382     "${WEBKIT2_DIR}/Platform/spi/Cocoa"
383     "${WEBKIT2_DIR}/Platform/spi/mac"
384     "${WEBKIT2_DIR}/Platform/IPC/mac"
385     "${WEBKIT2_DIR}/Platform/spi/Cocoa"
386     "${WEBKIT2_DIR}/Shared/API/Cocoa"
387     "${WEBKIT2_DIR}/Shared/API/c/cf"
388     "${WEBKIT2_DIR}/Shared/API/c/cg"
389     "${WEBKIT2_DIR}/Shared/API/c/mac"
390     "${WEBKIT2_DIR}/Shared/cf"
391     "${WEBKIT2_DIR}/Shared/Cocoa"
392     "${WEBKIT2_DIR}/Shared/mac"
393     "${WEBKIT2_DIR}/Shared/Plugins/mac"
394     "${WEBKIT2_DIR}/Shared/Scrolling"
395     "${WEBKIT2_DIR}/WebProcess/mac"
396     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/Cocoa"
397     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/mac"
398     "${WEBKIT2_DIR}/WebProcess/Plugins/PDF"
399     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape/mac"
400     "${WEBKIT2_DIR}/WebProcess/Scrolling"
401     "${WEBKIT2_DIR}/WebProcess/WebPage/Cocoa"
402     "${WEBKIT2_DIR}/WebProcess/WebPage/mac"
403     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/mac"
404     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
405 )
406
407 # This is needed because of a naming conflict with DiagnosticLoggingClient.h.
408 # FIXME: Rename one of the DiagnosticLoggingClient headers.
409 list(REMOVE_ITEM WebKit2_INCLUDE_DIRECTORIES
410     "${WEBCORE_DIR}/page"
411 )
412 list(APPEND WebKit2_INCLUDE_DIRECTORIES
413     "${WEBCORE_DIR}/page"
414 )
415
416 set(WEBKIT2_EXTRA_DEPENDENCIES
417      WebKit2-forwarding-headers
418 )
419 set(WebProcess_SOURCES
420     WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm
421 )
422
423 set(PluginProcess_SOURCES
424     PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm
425 )
426
427 list(APPEND NetworkProcess_SOURCES
428      ${NetworkProcess_COMMON_SOURCES}
429 )
430
431 list(APPEND DatabaseProcess_SOURCES
432     DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm
433 )
434
435 add_definitions("-include WebKit2Prefix.h")
436
437 set(WebKit2_FORWARDING_HEADERS_FILES
438     Shared/API/c/WKDiagnosticLoggingResultType.h
439
440     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
441     UIProcess/API/C/WKPageNavigationClient.h
442     UIProcess/API/C/WKPageRenderingProgressEvents.h
443 )
444
445 list(APPEND WebKit2_MESSAGES_IN_FILES
446     Shared/API/Cocoa/RemoteObjectRegistry.messages.in
447
448     Shared/mac/SecItemShim.messages.in
449
450     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.messages.in
451     UIProcess/mac/SecItemShimProxy.messages.in
452     UIProcess/mac/ViewGestureController.messages.in
453
454     WebProcess/Scrolling/RemoteScrollingCoordinator.messages.in
455     WebProcess/WebPage/ViewGestureGeometryCollector.messages.in
456 )
457
458 set(WebKit2_FORWARDING_HEADERS_DIRECTORIES
459     Shared
460     Shared/API/Cocoa
461     Shared/API/c
462
463     Shared/API/c/mac
464
465     UIProcess/Cocoa
466
467     UIProcess/API/C
468     UIProcess/API/Cocoa
469
470     WebProcess/WebPage
471
472     WebProcess/InjectedBundle/API/Cocoa
473     WebProcess/InjectedBundle/API/c
474     WebProcess/InjectedBundle/API/mac
475 )
476
477 add_custom_command(
478     OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/MessageRecorderProbes.h
479     MAIN_DEPENDENCY Platform/IPC/MessageRecorderProbes.d
480     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR}
481     COMMAND dtrace -h -s ${WEBKIT2_DIR}/Platform/IPC/MessageRecorderProbes.d
482     VERBATIM)
483 list(APPEND WebKit2_SOURCES
484     ${DERIVED_SOURCES_WEBKIT2_DIR}/MessageRecorderProbes.h
485 )
486
487 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit FILES ${WebKit2_FORWARDING_HEADERS_FILES} DIRECTORIES ${WebKit2_FORWARDING_HEADERS_DIRECTORIES})