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