Remove additional WebKitSystemInterface remnants
[WebKit-https.git] / Source / WebCore / PlatformMac.cmake
1 find_library(ACCELERATE_LIBRARY accelerate)
2 find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
3 find_library(AVFOUNDATION_LIBRARY AVFoundation)
4 find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
5 find_library(AUDIOUNIT_LIBRARY AudioUnit)
6 find_library(CARBON_LIBRARY Carbon)
7 find_library(CFNETWORK_LIBRARY CFNetwork)
8 find_library(COCOA_LIBRARY Cocoa)
9 find_library(COREAUDIO_LIBRARY CoreAudio)
10 find_library(CORESERVICES_LIBRARY CoreServices)
11 find_library(DISKARBITRATION_LIBRARY DiskArbitration)
12 find_library(IOKIT_LIBRARY IOKit)
13 find_library(IOSURFACE_LIBRARY IOSurface)
14 find_library(METAL_LIBRARY Metal)
15 find_library(OPENGL_LIBRARY OpenGL)
16 find_library(QUARTZ_LIBRARY Quartz)
17 find_library(QUARTZCORE_LIBRARY QuartzCore)
18 find_library(SECURITY_LIBRARY Security)
19 find_library(SYSTEMCONFIGURATION_LIBRARY SystemConfiguration)
20 find_library(XML2_LIBRARY XML2)
21 find_package(Sqlite REQUIRED)
22 find_package(ZLIB REQUIRED)
23
24 list(APPEND WebCore_LIBRARIES
25     ${ACCELERATE_LIBRARY}
26     ${AUDIOTOOLBOX_LIBRARY}
27     ${AUDIOUNIT_LIBRARY}
28     ${AVFOUNDATION_LIBRARY}
29     ${CARBON_LIBRARY}
30     ${CFNETWORK_LIBRARY}
31     ${COCOA_LIBRARY}
32     ${COREAUDIO_LIBRARY}
33     ${CORESERVICES_LIBRARY}
34     ${DISKARBITRATION_LIBRARY}
35     ${IOKIT_LIBRARY}
36     ${IOSURFACE_LIBRARY}
37     ${METAL_LIBRARY}
38     ${OPENGL_LIBRARY}
39     ${QUARTZ_LIBRARY}
40     ${QUARTZCORE_LIBRARY}
41     ${SECURITY_LIBRARY}
42     ${SQLITE_LIBRARIES}
43     ${SYSTEMCONFIGURATION_LIBRARY}
44     ${XML2_LIBRARY}
45     ${ZLIB_LIBRARY}
46 )
47
48 add_definitions(-iframework ${APPLICATIONSERVICES_LIBRARY}/Versions/Current/Frameworks)
49 add_definitions(-iframework ${AVFOUNDATION_LIBRARY}/Versions/Current/Frameworks)
50 add_definitions(-iframework ${CARBON_LIBRARY}/Versions/Current/Frameworks)
51 add_definitions(-iframework ${CORESERVICES_LIBRARY}/Versions/Current/Frameworks)
52 add_definitions(-iframework ${QUARTZ_LIBRARY}/Frameworks)
53
54 find_library(DATADETECTORSCORE_FRAMEWORK DataDetectorsCore HINTS /System/Library/PrivateFrameworks)
55 if (NOT DATADETECTORSCORE_FRAMEWORK-NOTFOUND)
56     list(APPEND WebCore_LIBRARIES ${DATADETECTORSCORE_FRAMEWORK})
57 endif ()
58
59 find_library(LOOKUP_FRAMEWORK Lookup HINTS /System/Library/PrivateFrameworks)
60 if (NOT LOOKUP_FRAMEWORK-NOTFOUND)
61     list(APPEND WebCore_LIBRARIES ${LOOKUP_FRAMEWORK})
62 endif ()
63
64 list(APPEND WebCore_INCLUDE_DIRECTORIES
65     "${FORWARDING_HEADERS_DIR}/JavaScriptCore"
66     "${THIRDPARTY_DIR}/ANGLE"
67     "${THIRDPARTY_DIR}/ANGLE/include/KHR"
68     "${WEBCORE_DIR}/accessibility/mac"
69     "${WEBCORE_DIR}/bridge/objc"
70     "${WEBCORE_DIR}/editing/cocoa"
71     "${WEBCORE_DIR}/editing/ios"
72     "${WEBCORE_DIR}/editing/mac"
73     "${WEBCORE_DIR}/ForwardingHeaders"
74     "${WEBCORE_DIR}/ForwardingHeaders/bindings"
75     "${WEBCORE_DIR}/ForwardingHeaders/bytecode"
76     "${WEBCORE_DIR}/ForwardingHeaders/domjit"
77     "${WEBCORE_DIR}/ForwardingHeaders/debugger"
78     "${WEBCORE_DIR}/ForwardingHeaders/heap"
79     "${WEBCORE_DIR}/ForwardingHeaders/inspector"
80     "${WEBCORE_DIR}/ForwardingHeaders/interpreter"
81     "${WEBCORE_DIR}/ForwardingHeaders/jit"
82     "${WEBCORE_DIR}/ForwardingHeaders/masm"
83     "${WEBCORE_DIR}/ForwardingHeaders/parser"
84     "${WEBCORE_DIR}/ForwardingHeaders/profiler"
85     "${WEBCORE_DIR}/ForwardingHeaders/replay"
86     "${WEBCORE_DIR}/ForwardingHeaders/runtime"
87     "${WEBCORE_DIR}/ForwardingHeaders/yarr"
88     "${WEBCORE_DIR}/icu"
89     "${WEBCORE_DIR}/loader/archive/cf"
90     "${WEBCORE_DIR}/loader/cf"
91     "${WEBCORE_DIR}/loader/mac"
92     "${WEBCORE_DIR}/page/cocoa"
93     "${WEBCORE_DIR}/page/mac"
94     "${WEBCORE_DIR}/page/scrolling/mac"
95     "${WEBCORE_DIR}/platform/audio/mac"
96     "${WEBCORE_DIR}/platform/cf"
97     "${WEBCORE_DIR}/platform/cocoa"
98     "${WEBCORE_DIR}/platform/graphics/avfoundation"
99     "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
100     "${WEBCORE_DIR}/platform/graphics/avfoundation/objc"
101     "${WEBCORE_DIR}/platform/graphics/ca"
102     "${WEBCORE_DIR}/platform/graphics/ca/cocoa"
103     "${WEBCORE_DIR}/platform/graphics/cocoa"
104     "${WEBCORE_DIR}/platform/graphics/cg"
105     "${WEBCORE_DIR}/platform/graphics/cv"
106     "${WEBCORE_DIR}/platform/graphics/gpu"
107     "${WEBCORE_DIR}/platform/graphics/egl"
108     "${WEBCORE_DIR}/platform/graphics/opentype"
109     "${WEBCORE_DIR}/platform/graphics/opengl"
110     "${WEBCORE_DIR}/platform/graphics/mac"
111     "${WEBCORE_DIR}/platform/mac"
112     "${WEBCORE_DIR}/platform/mediastream/mac"
113     "${WEBCORE_DIR}/platform/network/cocoa"
114     "${WEBCORE_DIR}/platform/network/cf"
115     "${WEBCORE_DIR}/platform/network/ios"
116     "${WEBCORE_DIR}/platform/network/mac"
117     "${WEBCORE_DIR}/platform/text/cf"
118     "${WEBCORE_DIR}/platform/text/mac"
119     "${WEBCORE_DIR}/platform/spi/cf"
120     "${WEBCORE_DIR}/platform/spi/cg"
121     "${WEBCORE_DIR}/platform/spi/cocoa"
122     "${WEBCORE_DIR}/platform/spi/ios"
123     "${WEBCORE_DIR}/platform/spi/mac"
124     "${WEBCORE_DIR}/plugins/mac"
125 )
126
127 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
128     ${WEBCORE_DIR}/html/shadow/mac/imageControlsMac.css
129     ${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.css
130 )
131
132 set(WebCore_USER_AGENT_SCRIPTS
133     ${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.js
134 )
135
136 #FIXME: Use ios-encodings.txt once we get CMake working for iOS.
137 add_custom_command(
138     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
139     MAIN_DEPENDENCY ${WEBCORE_DIR}/platform/text/mac/make-charset-table.pl
140     DEPENDS platform/text/mac/character-sets.txt
141     DEPENDS platform/text/mac/mac-encodings.txt
142     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/platform/text/mac/make-charset-table.pl ${WEBCORE_DIR}/platform/text/mac/character-sets.txt ${WEBCORE_DIR}/platform/text/mac/mac-encodings.txt kTextEncoding > ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
143     VERBATIM)
144
145 list(APPEND WebCore_DERIVED_SOURCES
146     ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
147 )
148
149 list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
150     "${CMAKE_OSX_SYSROOT}/usr/include/libxslt"
151     "${CMAKE_OSX_SYSROOT}/usr/include/libxml2"
152 )
153
154 list(APPEND WebCore_SOURCES
155     Modules/plugins/QuickTimePluginReplacement.mm
156     Modules/plugins/YouTubePluginReplacement.cpp
157
158     accessibility/mac/AXObjectCacheMac.mm
159     accessibility/mac/AccessibilityObjectMac.mm
160     accessibility/mac/WebAccessibilityObjectWrapperBase.mm
161     accessibility/mac/WebAccessibilityObjectWrapperMac.mm
162
163     bindings/js/ScriptControllerMac.mm
164
165     bridge/objc/ObjCRuntimeObject.mm
166     bridge/objc/WebScriptObject.mm
167     bridge/objc/objc_class.mm
168     bridge/objc/objc_instance.mm
169     bridge/objc/objc_runtime.mm
170     bridge/objc/objc_utility.mm
171
172     crypto/CommonCryptoUtilities.cpp
173
174     crypto/mac/CommonCryptoDERUtilities.cpp
175     crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
176     crypto/mac/CryptoAlgorithmAES_CFBMac.cpp
177     crypto/mac/CryptoAlgorithmAES_CTRMac.cpp
178     crypto/mac/CryptoAlgorithmAES_GCMMac.cpp
179     crypto/mac/CryptoAlgorithmAES_KWMac.cpp
180     crypto/mac/CryptoAlgorithmECDHMac.cpp
181     crypto/mac/CryptoAlgorithmECDSAMac.cpp
182     crypto/mac/CryptoAlgorithmHKDFMac.cpp
183     crypto/mac/CryptoAlgorithmHMACMac.cpp
184     crypto/mac/CryptoAlgorithmPBKDF2Mac.cpp
185     crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp
186     crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp
187     crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp
188     crypto/mac/CryptoAlgorithmRSA_PSSMac.cpp
189     crypto/mac/CryptoAlgorithmRegistryMac.cpp
190     crypto/mac/CryptoKeyECMac.cpp
191     crypto/mac/CryptoKeyMac.cpp
192     crypto/mac/CryptoKeyRSAMac.cpp
193     crypto/mac/SerializedCryptoKeyWrapMac.mm
194
195     dom/DataTransferMac.mm
196     dom/SlotAssignment.cpp
197
198     editing/SelectionRectGatherer.cpp
199     editing/SmartReplaceCF.cpp
200
201     editing/cocoa/DataDetection.mm
202     editing/cocoa/EditorCocoa.mm
203     editing/cocoa/HTMLConverter.mm
204     editing/cocoa/WebArchiveResourceFromNSAttributedString.mm
205     editing/cocoa/WebArchiveResourceWebResourceHandler.mm
206     editing/cocoa/WebContentReaderCocoa.mm
207
208     editing/ios/AutofillElements.cpp
209
210     editing/mac/AlternativeTextUIController.mm
211     editing/mac/DictionaryLookup.mm
212     editing/mac/EditorMac.mm
213     editing/mac/FrameSelectionMac.mm
214     editing/mac/TextAlternativeWithRange.mm
215     editing/mac/TextUndoInsertionMarkupMac.mm
216     editing/mac/WebContentReaderMac.mm
217
218     fileapi/FileCocoa.mm
219
220     html/HTMLSlotElement.cpp
221
222     html/shadow/ImageControlsRootElement.cpp
223     html/shadow/YouTubeEmbedShadowElement.cpp
224
225     html/shadow/mac/ImageControlsButtonElementMac.cpp
226     html/shadow/mac/ImageControlsRootElementMac.cpp
227
228     history/mac/HistoryItemMac.mm
229
230     loader/ResourceLoadInfo.cpp
231
232     loader/archive/cf/LegacyWebArchive.cpp
233     loader/archive/cf/LegacyWebArchiveMac.mm
234
235     loader/cocoa/DiskCacheMonitorCocoa.mm
236     loader/cocoa/SubresourceLoaderCocoa.mm
237
238     loader/cf/ResourceLoaderCFNet.cpp
239
240     loader/mac/DocumentLoaderMac.cpp
241     loader/mac/LoaderNSURLExtras.mm
242     loader/mac/ResourceLoaderMac.mm
243
244     page/CaptionUserPreferencesMediaAF.cpp
245     page/PageDebuggable.cpp
246
247     page/cocoa/MemoryReleaseCocoa.mm
248     page/cocoa/PerformanceLoggingCocoa.mm
249     page/cocoa/ResourceUsageOverlayCocoa.mm
250     page/cocoa/ResourceUsageThreadCocoa.mm
251     page/cocoa/SettingsCocoa.mm
252     page/cocoa/UserAgent.mm
253
254     page/mac/ChromeMac.mm
255     page/mac/DragControllerMac.mm
256     page/mac/EventHandlerMac.mm
257     page/mac/PageMac.mm
258     page/mac/ServicesOverlayController.mm
259     page/mac/TextIndicatorWindow.mm
260     page/mac/UserAgentMac.mm
261     page/mac/WheelEventDeltaFilterMac.mm
262
263     page/scrolling/AsyncScrollingCoordinator.cpp
264     page/scrolling/ScrollingMomentumCalculator.cpp
265
266     page/scrolling/cocoa/ScrollingStateNode.mm
267
268     page/scrolling/mac/ScrollingCoordinatorMac.mm
269     page/scrolling/mac/ScrollingMomentumCalculatorMac.mm
270     page/scrolling/mac/ScrollingStateFrameScrollingNodeMac.mm
271     page/scrolling/mac/ScrollingThreadMac.mm
272     page/scrolling/mac/ScrollingTreeFixedNode.mm
273     page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm
274     page/scrolling/mac/ScrollingTreeMac.cpp
275     page/scrolling/mac/ScrollingTreeStickyNode.mm
276
277     platform/CPUMonitor.cpp
278     platform/LocalizedStrings.cpp
279     platform/ScrollableArea.cpp
280
281     platform/audio/AudioSession.cpp
282
283     platform/audio/cocoa/MediaSessionManagerCocoa.cpp
284
285     platform/audio/mac/CAAudioStreamDescription.cpp
286
287     platform/audio/mac/AudioBusMac.mm
288     platform/audio/mac/AudioDestinationMac.cpp
289     platform/audio/mac/AudioFileReaderMac.cpp
290     platform/audio/mac/AudioHardwareListenerMac.cpp
291     platform/audio/mac/AudioSessionMac.cpp
292     platform/audio/mac/CARingBuffer.cpp
293     platform/audio/mac/FFTFrameMac.cpp
294     platform/audio/mac/MediaSessionManagerMac.mm
295
296     platform/cf/CFURLExtras.cpp
297     platform/cf/CoreMediaSoftLink.cpp
298     platform/cf/FileSystemCF.cpp
299     platform/cf/KeyedDecoderCF.cpp
300     platform/cf/KeyedEncoderCF.cpp
301     platform/cf/MainThreadSharedTimerCF.cpp
302     platform/cf/MediaAccessibilitySoftLink.cpp
303     platform/cf/RunLoopObserver.cpp
304     platform/cf/SharedBufferCF.cpp
305     platform/cf/URLCF.cpp
306
307     platform/cocoa/ContentFilterUnblockHandlerCocoa.mm
308     platform/cocoa/CoreVideoSoftLink.cpp
309     platform/cocoa/FileMonitorCocoa.mm
310     platform/cocoa/FileSystemCocoa.mm
311     platform/cocoa/KeyEventCocoa.mm
312     platform/cocoa/LocalizedStringsCocoa.mm
313     platform/cocoa/MIMETypeRegistryCocoa.mm
314     platform/cocoa/MachSendRight.cpp
315     platform/cocoa/NetworkExtensionContentFilter.mm
316     platform/cocoa/ParentalControlsContentFilter.mm
317     platform/cocoa/PasteboardCocoa.mm
318     platform/cocoa/RuntimeApplicationChecksCocoa.mm
319     platform/cocoa/ScrollController.mm
320     platform/cocoa/ScrollSnapAnimatorState.mm
321     platform/cocoa/SearchPopupMenuCocoa.mm
322     platform/cocoa/SharedBufferCocoa.mm
323     platform/cocoa/SystemVersion.mm
324     platform/cocoa/TelephoneNumberDetectorCocoa.cpp
325     platform/cocoa/ThemeCocoa.mm
326     platform/cocoa/VideoToolboxSoftLink.cpp
327     platform/cocoa/WebCoreNSErrorExtras.mm
328
329     platform/gamepad/mac/HIDGamepad.cpp
330     platform/gamepad/mac/HIDGamepadProvider.cpp
331
332     platform/graphics/DisplayRefreshMonitor.cpp
333     platform/graphics/DisplayRefreshMonitorManager.cpp
334     platform/graphics/FourCC.cpp
335
336     platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
337     platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
338     platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
339     platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
340     platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
341     platform/graphics/avfoundation/MediaPlaybackTargetMac.mm
342     platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
343     platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm
344
345     platform/graphics/avfoundation/objc/AVAssetTrackUtilities.mm
346     platform/graphics/avfoundation/objc/AVFoundationMIMETypeCache.mm
347     platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
348     platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
349     platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm
350     platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
351     platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm
352     platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
353     platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm
354     platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
355     platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm
356     platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
357     platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
358     platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm
359     platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
360     platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
361     platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
362     platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
363     platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm
364
365     platform/graphics/ca/GraphicsLayerCA.cpp
366     platform/graphics/ca/LayerFlushScheduler.cpp
367     platform/graphics/ca/LayerPool.cpp
368     platform/graphics/ca/PlatformCAAnimation.cpp
369     platform/graphics/ca/PlatformCALayer.cpp
370     platform/graphics/ca/TileController.cpp
371     platform/graphics/ca/TileCoverageMap.cpp
372     platform/graphics/ca/TileGrid.cpp
373     platform/graphics/ca/TransformationMatrixCA.cpp
374
375     platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp
376     platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm
377     platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm
378     platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
379     platform/graphics/ca/cocoa/WebSystemBackdropLayer.mm
380     platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
381
382     platform/graphics/cg/ColorCG.cpp
383     platform/graphics/cg/FloatPointCG.cpp
384     platform/graphics/cg/FloatRectCG.cpp
385     platform/graphics/cg/FloatSizeCG.cpp
386     platform/graphics/cg/GradientCG.cpp
387     platform/graphics/cg/GraphicsContext3DCG.cpp
388     platform/graphics/cg/GraphicsContextCG.cpp
389     platform/graphics/cg/IOSurfacePool.cpp
390     platform/graphics/cg/ImageBufferCG.cpp
391     platform/graphics/cg/ImageBufferDataCG.cpp
392     platform/graphics/cg/ImageCG.cpp
393     platform/graphics/cg/ImageDecoderCG.cpp
394     platform/graphics/cg/ImageSourceCGMac.mm
395     platform/graphics/cg/IntPointCG.cpp
396     platform/graphics/cg/IntRectCG.cpp
397     platform/graphics/cg/IntSizeCG.cpp
398     platform/graphics/cg/NativeImageCG.cpp
399     platform/graphics/cg/PDFDocumentImage.cpp
400     platform/graphics/cg/PathCG.cpp
401     platform/graphics/cg/PatternCG.cpp
402     platform/graphics/cg/SubimageCacheWithTimer.cpp
403     platform/graphics/cg/TransformationMatrixCG.cpp
404     platform/graphics/cg/UTIRegistry.cpp
405
406     platform/graphics/cocoa/GPUBufferMetal.mm
407     platform/graphics/cocoa/GPUCommandBufferMetal.mm
408     platform/graphics/cocoa/GPUCommandQueueMetal.mm
409     platform/graphics/cocoa/GPUComputeCommandEncoderMetal.mm
410     platform/graphics/cocoa/GPUComputePipelineStateMetal.mm
411     platform/graphics/cocoa/GPUDepthStencilDescriptorMetal.mm
412     platform/graphics/cocoa/GPUDepthStencilStateMetal.mm
413     platform/graphics/cocoa/GPUDeviceMetal.mm
414     platform/graphics/cocoa/GPUDrawableMetal.mm
415     platform/graphics/cocoa/GPUFunctionMetal.mm
416     platform/graphics/cocoa/GPULibraryMetal.mm
417     platform/graphics/cocoa/GPURenderCommandEncoderMetal.mm
418     platform/graphics/cocoa/GPURenderPassAttachmentDescriptorMetal.mm
419     platform/graphics/cocoa/GPURenderPassColorAttachmentDescriptorMetal.mm
420     platform/graphics/cocoa/GPURenderPassDepthAttachmentDescriptorMetal.mm
421     platform/graphics/cocoa/GPURenderPassDescriptorMetal.mm
422     platform/graphics/cocoa/GPURenderPipelineColorAttachmentDescriptorMetal.mm
423     platform/graphics/cocoa/GPURenderPipelineDescriptorMetal.mm
424     platform/graphics/cocoa/GPURenderPipelineStateMetal.mm
425     platform/graphics/cocoa/GPUTextureDescriptorMetal.mm
426     platform/graphics/cocoa/GPUTextureMetal.mm
427     platform/graphics/cocoa/GraphicsContext3DCocoa.mm
428     platform/graphics/cocoa/GraphicsContextCocoa.mm
429     platform/graphics/cocoa/FontCacheCoreText.cpp
430     platform/graphics/cocoa/FontCascadeCocoa.mm
431     platform/graphics/cocoa/FontCocoa.mm
432     platform/graphics/cocoa/FontDescriptionCocoa.cpp
433     platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp
434     platform/graphics/cocoa/FontPlatformDataCocoa.mm
435     platform/graphics/cocoa/IOSurface.mm
436     platform/graphics/cocoa/IOSurfacePoolCocoa.mm
437     platform/graphics/cocoa/WebActionDisablingCALayerDelegate.mm
438     platform/graphics/cocoa/WebCoreCALayerExtras.mm
439     platform/graphics/cocoa/WebCoreDecompressionSession.mm
440     platform/graphics/cocoa/WebGLLayer.mm
441     platform/graphics/cocoa/WebGPULayer.mm
442
443     platform/graphics/cv/PixelBufferConformerCV.cpp
444     platform/graphics/cv/TextureCacheCV.mm
445     platform/graphics/cv/VideoTextureCopierCV.cpp
446
447     platform/graphics/gpu/Texture.cpp
448     platform/graphics/gpu/TilingData.cpp
449
450     platform/graphics/mac/ColorMac.mm
451     platform/graphics/mac/ComplexTextControllerCoreText.mm
452     platform/graphics/mac/DisplayRefreshMonitorMac.cpp
453     platform/graphics/mac/FloatPointMac.mm
454     platform/graphics/mac/FloatRectMac.mm
455     platform/graphics/mac/FloatSizeMac.mm
456     platform/graphics/mac/FontCacheMac.mm
457     platform/graphics/mac/FontCustomPlatformData.cpp
458     platform/graphics/mac/GlyphPageMac.cpp
459     platform/graphics/mac/IconMac.mm
460     platform/graphics/mac/ImageMac.mm
461     platform/graphics/mac/IntPointMac.mm
462     platform/graphics/mac/IntRectMac.mm
463     platform/graphics/mac/IntSizeMac.mm
464     platform/graphics/mac/MediaPlayerPrivateQTKit.mm
465     platform/graphics/mac/MediaTimeQTKit.mm
466     platform/graphics/mac/PDFDocumentImageMac.mm
467     platform/graphics/mac/SimpleFontDataCoreText.cpp
468     platform/graphics/mac/WebLayer.mm
469
470     platform/graphics/opengl/Extensions3DOpenGL.cpp
471     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
472     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
473     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
474     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
475
476     platform/graphics/opentype/OpenTypeCG.cpp
477     platform/graphics/opentype/OpenTypeMathData.cpp
478
479     platform/mac/BlacklistUpdater.mm
480     platform/mac/CursorMac.mm
481     platform/mac/DragDataMac.mm
482     platform/mac/DragImageMac.mm
483     platform/mac/EventLoopMac.mm
484     platform/mac/FileSystemMac.mm
485     platform/mac/KeyEventMac.mm
486     platform/mac/LocalCurrentGraphicsContext.mm
487     platform/mac/LoggingMac.mm
488     platform/mac/MediaRemoteSoftLink.cpp
489     platform/mac/NSScrollerImpDetails.mm
490     platform/mac/PasteboardMac.mm
491     platform/mac/PasteboardWriter.mm
492     platform/mac/PlatformEventFactoryMac.mm
493     platform/mac/PlatformPasteboardMac.mm
494     platform/mac/PlatformScreenMac.mm
495     platform/mac/PlatformSpeechSynthesizerMac.mm
496     platform/mac/PluginBlacklist.mm
497     platform/mac/PowerObserverMac.cpp
498     platform/mac/PublicSuffixMac.mm
499     platform/mac/RemoteCommandListenerMac.mm
500     platform/mac/SSLKeyGeneratorMac.mm
501     platform/mac/ScrollAnimatorMac.mm
502     platform/mac/ScrollViewMac.mm
503     platform/mac/ScrollbarThemeMac.mm
504     platform/mac/SerializedPlatformRepresentationMac.mm
505     platform/mac/StringUtilities.mm
506     platform/mac/SuddenTermination.mm
507     platform/mac/ThemeMac.mm
508     platform/mac/ThreadCheck.mm
509     platform/mac/URLMac.mm
510     platform/mac/UserActivityMac.mm
511     platform/mac/ValidationBubbleMac.mm
512     platform/mac/WebCoreFullScreenPlaceholderView.mm
513     platform/mac/WebCoreFullScreenWarningView.mm
514     platform/mac/WebCoreFullScreenWindow.mm
515     platform/mac/WebCoreNSStringExtras.mm
516     platform/mac/WebCoreNSURLExtras.mm
517     platform/mac/WebCoreObjCExtras.mm
518     platform/mac/WebGLBlacklist.mm
519     platform/mac/WebNSAttributedStringExtras.mm
520     platform/mac/WebVideoFullscreenController.mm
521     platform/mac/WebVideoFullscreenHUDWindowController.mm
522     platform/mac/WebWindowAnimation.mm
523     platform/mac/WidgetMac.mm
524
525     platform/mediastream/mac/MockRealtimeVideoSourceMac.mm
526
527     platform/network/cf/AuthenticationCF.cpp
528     platform/network/cf/CookieJarCFNet.cpp
529     platform/network/cf/CookieStorageCFNet.cpp
530     platform/network/cf/CredentialStorageCFNet.cpp
531     platform/network/cf/DNSCFNet.cpp
532     platform/network/cf/FormDataStreamCFNet.cpp
533     platform/network/cf/LoaderRunLoopCF.cpp
534     platform/network/cf/NetworkStorageSessionCFNet.cpp
535     platform/network/cf/ProxyServerCFNet.cpp
536     platform/network/cf/ResourceErrorCF.cpp
537     platform/network/cf/ResourceRequestCFNet.cpp
538     platform/network/cf/ResourceResponseCFNet.cpp
539     platform/network/cf/SocketStreamHandleImplCFNet.cpp
540     platform/network/cf/SynchronousLoaderClientCFNet.cpp
541     platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
542
543     platform/network/cocoa/CookieCocoa.mm
544     platform/network/cocoa/CookieStorageObserver.mm
545     platform/network/cocoa/CredentialCocoa.mm
546     platform/network/cocoa/NetworkLoadMetrics.mm
547     platform/network/cocoa/NetworkStorageSessionCocoa.mm
548     platform/network/cocoa/ProtectionSpaceCocoa.mm
549     platform/network/cocoa/ResourceRequestCocoa.mm
550     platform/network/cocoa/ResourceResponseCocoa.mm
551     platform/network/cocoa/WebCoreNSURLSession.mm
552
553     platform/network/mac/AuthenticationMac.mm
554     platform/network/mac/BlobDataFileReferenceMac.mm
555     platform/network/mac/CertificateInfoMac.mm
556     platform/network/mac/CookieJarMac.mm
557     platform/network/mac/CookieStorageMac.mm
558     platform/network/mac/CredentialStorageMac.mm
559     platform/network/mac/FormDataStreamMac.mm
560     platform/network/mac/NetworkStateNotifierMac.cpp
561     platform/network/mac/ResourceErrorMac.mm
562     platform/network/mac/ResourceHandleMac.mm
563     platform/network/mac/SynchronousLoaderClient.mm
564     platform/network/mac/UTIUtilities.mm
565     platform/network/mac/WebCoreResourceHandleAsDelegate.mm
566     platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
567     platform/network/mac/WebCoreURLResponse.mm
568
569     platform/posix/FileSystemPOSIX.cpp
570
571     platform/text/cf/HyphenationCF.cpp
572
573     platform/text/mac/LocaleMac.mm
574     platform/text/mac/TextBoundaries.mm
575     platform/text/mac/TextCodecMac.cpp
576     platform/text/mac/TextEncodingRegistryMac.mm
577
578     rendering/RenderThemeCocoa.mm
579     rendering/RenderThemeMac.mm
580     rendering/TextAutoSizing.cpp
581 )
582
583 # FIXME: We do not need everything from all of these directories.
584 # Move some to WebCore_FORWARDING_HEADERS_FILES once people start actually maintaining this.
585 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
586     accessibility
587     bridge
588     contentextensions
589     crypto
590     css
591     dom
592     editing
593     fileapi
594     history
595     html
596     inspector
597     loader
598     page
599     platform
600     plugins
601     rendering
602     replay
603     storage
604     style
605     svg
606     workers
607
608     Modules/applepay
609     Modules/cache
610     Modules/geolocation
611     Modules/indexeddb
612     Modules/mediastream
613     Modules/notifications
614     Modules/webdatabase
615     Modules/websockets
616
617     Modules/indexeddb/client
618     Modules/indexeddb/shared
619     Modules/indexeddb/server
620
621     bindings/js
622
623     bridge/objc
624     bridge/jsc
625
626     css/parser
627
628     editing/cocoa
629     editing/mac
630     editing/ios
631
632     html/canvas
633     html/forms
634     html/parser
635     html/shadow
636
637     loader/appcache
638     loader/archive
639     loader/cache
640     loader/cocoa
641
642     loader/archive/cf
643
644     page/animation
645     page/cocoa
646     page/csp
647     page/mac
648     page/scrolling
649
650     page/scrolling/mac
651
652     platform/animation
653     platform/audio
654     platform/cf
655     platform/cocoa
656     platform/graphics
657     platform/mac
658     platform/mediastream
659     platform/mock
660     platform/network
661     platform/sql
662     platform/text
663
664     platform/audio/cocoa
665
666     platform/gamepad/cocoa
667     platform/gamepad/mac
668
669     platform/graphics/ca
670     platform/graphics/cocoa
671     platform/graphics/cg
672     platform/graphics/filters
673     platform/graphics/opentype
674     platform/graphics/mac
675     platform/graphics/transforms
676
677     platform/graphics/ca/cocoa
678
679     platform/mediastream/libwebrtc
680
681     platform/network/cf
682     platform/network/cocoa
683     platform/network/mac
684
685     platform/spi/cf
686     platform/spi/cg
687     platform/spi/cocoa
688     platform/spi/mac
689
690     rendering/line
691     rendering/style
692
693     svg/graphics
694     svg/properties
695
696     workers/service
697
698     workers/service/server
699
700     xml
701 )
702
703 set(WebCore_FORWARDING_HEADERS_FILES
704     Modules/webdatabase/DatabaseDetails.h
705
706     bridge/IdentifierRep.h
707     bridge/npruntime_impl.h
708     bridge/npruntime_internal.h
709
710     contentextensions/CompiledContentExtension.h
711
712     editing/EditAction.h
713     editing/EditingBehaviorTypes.h
714     editing/EditingBoundary.h
715     editing/FindOptions.h
716     editing/FrameSelection.h
717     editing/TextAffinity.h
718
719     editing/mac/TextAlternativeWithRange.h
720
721     history/HistoryItem.h
722     history/PageCache.h
723
724     html/HTMLMediaElement.h
725
726     loader/appcache/ApplicationCacheStorage.h
727
728     loader/icon/IconDatabase.h
729     loader/icon/IconDatabaseBase.h
730     loader/icon/IconDatabaseClient.h
731
732     loader/mac/LoaderNSURLExtras.h
733
734     platform/PlatformExportMacros.h
735
736     platform/audio/AudioHardwareListener.h
737
738     platform/cf/RunLoopObserver.h
739
740     platform/cocoa/MachSendRight.h
741     platform/cocoa/SoftLinking.h
742
743     platform/graphics/cocoa/IOSurface.h
744
745     platform/graphics/transforms/AffineTransform.h
746
747     platform/network/cf/CertificateInfo.h
748     platform/network/cf/ResourceResponse.h
749
750     platform/network/mac/AuthenticationMac.h
751
752     platform/sql/SQLiteDatabase.h
753
754     rendering/style/RenderStyleConstants.h
755 )
756
757 list(APPEND WebCore_IDL_FILES
758     Modules/plugins/QuickTimePluginReplacement.idl
759 )
760
761 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebCore_FORWARDING_HEADERS_FILES})
762
763 set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
764 set(ADDITIONAL_BINDINGS_DEPENDENCIES
765     ${WINDOW_CONSTRUCTORS_FILE}
766     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
767     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
768 )
769
770 list(APPEND WebCoreTestSupport_LIBRARIES PRIVATE WebCore)
771 list(APPEND WebCoreTestSupport_SOURCES
772     testing/Internals.mm
773     testing/MockContentFilter.cpp
774     testing/MockContentFilterSettings.cpp
775     testing/MockPreviewLoaderClient.cpp
776
777     testing/cocoa/WebArchiveDumpSupport.mm
778 )
779
780 set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")