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