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