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