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