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