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