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