[cmake] Include WTF, JSC, and WebCore headers automatically to targers using them
[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/opentype"
111     "${WEBCORE_DIR}/platform/graphics/opengl"
112     "${WEBCORE_DIR}/platform/graphics/mac"
113     "${WEBCORE_DIR}/platform/mac"
114     "${WEBCORE_DIR}/platform/mediastream/mac"
115     "${WEBCORE_DIR}/platform/network/cocoa"
116     "${WEBCORE_DIR}/platform/network/cf"
117     "${WEBCORE_DIR}/platform/network/mac"
118     "${WEBCORE_DIR}/platform/text/cf"
119     "${WEBCORE_DIR}/platform/text/mac"
120     "${WEBCORE_DIR}/platform/spi/cf"
121     "${WEBCORE_DIR}/platform/spi/cg"
122     "${WEBCORE_DIR}/platform/spi/cocoa"
123     "${WEBCORE_DIR}/platform/spi/ios"
124     "${WEBCORE_DIR}/platform/spi/mac"
125     "${WEBCORE_DIR}/plugins/mac"
126 )
127
128 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
129     ${WEBCORE_DIR}/html/shadow/mac/imageControlsMac.css
130     ${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.css
131 )
132
133 set(WebCore_USER_AGENT_SCRIPTS
134     ${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.js
135 )
136
137 #FIXME: Use ios-encodings.txt once we get CMake working for iOS.
138 add_custom_command(
139     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
140     MAIN_DEPENDENCY ${WEBCORE_DIR}/platform/text/mac/make-charset-table.pl
141     DEPENDS platform/text/mac/character-sets.txt
142     DEPENDS platform/text/mac/mac-encodings.txt
143     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
144     VERBATIM)
145
146 list(APPEND WebCore_DERIVED_SOURCES
147     ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
148 )
149
150 list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
151     "${CMAKE_OSX_SYSROOT}/usr/include/libxslt"
152     "${CMAKE_OSX_SYSROOT}/usr/include/libxml2"
153 )
154
155 list(APPEND WebCore_SOURCES
156     Modules/indieui/UIRequestEvent.cpp
157
158     Modules/plugins/QuickTimePluginReplacement.mm
159     Modules/plugins/YouTubePluginReplacement.cpp
160
161     accessibility/mac/AXObjectCacheMac.mm
162     accessibility/mac/AccessibilityObjectMac.mm
163     accessibility/mac/WebAccessibilityObjectWrapperBase.mm
164     accessibility/mac/WebAccessibilityObjectWrapperMac.mm
165
166     bindings/js/ScriptControllerMac.mm
167
168     bridge/objc/ObjCRuntimeObject.mm
169     bridge/objc/WebScriptObject.mm
170     bridge/objc/objc_class.mm
171     bridge/objc/objc_instance.mm
172     bridge/objc/objc_runtime.mm
173     bridge/objc/objc_utility.mm
174
175     crypto/CommonCryptoUtilities.cpp
176     crypto/CryptoAlgorithm.cpp
177     crypto/CryptoAlgorithmRegistry.cpp
178     crypto/CryptoKey.cpp
179     crypto/SubtleCrypto.cpp
180     crypto/WebKitSubtleCrypto.cpp
181
182     crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
183     crypto/algorithms/CryptoAlgorithmAES_KW.cpp
184     crypto/algorithms/CryptoAlgorithmHMAC.cpp
185     crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
186     crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
187     crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
188     crypto/algorithms/CryptoAlgorithmSHA1.cpp
189     crypto/algorithms/CryptoAlgorithmSHA224.cpp
190     crypto/algorithms/CryptoAlgorithmSHA256.cpp
191     crypto/algorithms/CryptoAlgorithmSHA384.cpp
192     crypto/algorithms/CryptoAlgorithmSHA512.cpp
193
194     crypto/keys/CryptoKeyAES.cpp
195     crypto/keys/CryptoKeyDataOctetSequence.cpp
196     crypto/keys/CryptoKeyDataRSAComponents.cpp
197     crypto/keys/CryptoKeyHMAC.cpp
198     crypto/keys/CryptoKeyRSA.cpp
199     crypto/keys/CryptoKeySerializationRaw.cpp
200
201     crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
202     crypto/mac/CryptoAlgorithmAES_KWMac.cpp
203     crypto/mac/CryptoAlgorithmHMACMac.cpp
204     crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp
205     crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp
206     crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp
207     crypto/mac/CryptoAlgorithmRegistryMac.cpp
208     crypto/mac/CryptoKeyMac.cpp
209     crypto/mac/CryptoKeyRSAMac.cpp
210     crypto/mac/SerializedCryptoKeyWrapMac.mm
211
212     dom/DataTransferMac.mm
213     dom/SlotAssignment.cpp
214
215     editing/SelectionRectGatherer.cpp
216     editing/SmartReplaceCF.cpp
217
218     editing/cocoa/DataDetection.mm
219     editing/cocoa/EditorCocoa.mm
220     editing/cocoa/HTMLConverter.mm
221
222     editing/mac/AlternativeTextUIController.mm
223     editing/mac/DictionaryLookup.mm
224     editing/mac/EditorMac.mm
225     editing/mac/FrameSelectionMac.mm
226     editing/mac/TextAlternativeWithRange.mm
227     editing/mac/TextUndoInsertionMarkupMac.mm
228
229     fileapi/FileMac.mm
230
231     html/HTMLSlotElement.cpp
232
233     html/shadow/ImageControlsRootElement.cpp
234     html/shadow/YouTubeEmbedShadowElement.cpp
235
236     html/shadow/mac/ImageControlsButtonElementMac.cpp
237     html/shadow/mac/ImageControlsRootElementMac.cpp
238
239     history/mac/HistoryItemMac.mm
240
241     loader/ResourceLoadInfo.cpp
242
243     loader/archive/cf/LegacyWebArchive.cpp
244     loader/archive/cf/LegacyWebArchiveMac.mm
245
246     loader/cocoa/DiskCacheMonitorCocoa.mm
247     loader/cocoa/SubresourceLoaderCocoa.mm
248
249     loader/cf/ResourceLoaderCFNet.cpp
250     loader/cf/SubresourceLoaderCF.cpp
251
252     loader/mac/DocumentLoaderMac.cpp
253     loader/mac/LoaderNSURLExtras.mm
254     loader/mac/ResourceLoaderMac.mm
255
256     page/CaptionUserPreferencesMediaAF.cpp
257     page/PageDebuggable.cpp
258
259     page/cocoa/MemoryReleaseCocoa.mm
260     page/cocoa/PerformanceLoggingCocoa.mm
261     page/cocoa/ResourceUsageOverlayCocoa.mm
262     page/cocoa/ResourceUsageThreadCocoa.mm
263     page/cocoa/SettingsCocoa.mm
264     page/cocoa/UserAgent.mm
265
266     page/mac/ChromeMac.mm
267     page/mac/DragControllerMac.mm
268     page/mac/EventHandlerMac.mm
269     page/mac/PageMac.mm
270     page/mac/ServicesOverlayController.mm
271     page/mac/TextIndicatorWindow.mm
272     page/mac/UserAgentMac.mm
273     page/mac/WheelEventDeltaFilterMac.mm
274
275     page/scrolling/AsyncScrollingCoordinator.cpp
276     page/scrolling/ScrollingMomentumCalculator.cpp
277
278     page/scrolling/cocoa/ScrollingStateNode.mm
279
280     page/scrolling/mac/ScrollingCoordinatorMac.mm
281     page/scrolling/mac/ScrollingMomentumCalculatorMac.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/ValidationBubbleMac.mm
496     platform/mac/WebCoreFullScreenPlaceholderView.mm
497     platform/mac/WebCoreFullScreenWarningView.mm
498     platform/mac/WebCoreFullScreenWindow.mm
499     platform/mac/WebCoreNSStringExtras.mm
500     platform/mac/WebCoreNSURLExtras.mm
501     platform/mac/WebCoreObjCExtras.mm
502     platform/mac/WebCoreSystemInterface.mm
503     platform/mac/WebGLBlacklist.mm
504     platform/mac/WebNSAttributedStringExtras.mm
505     platform/mac/WebVideoFullscreenController.mm
506     platform/mac/WebVideoFullscreenHUDWindowController.mm
507     platform/mac/WebWindowAnimation.mm
508     platform/mac/WidgetMac.mm
509
510     platform/mediastream/mac/MockRealtimeVideoSourceMac.mm
511
512     platform/network/cf/AuthenticationCF.cpp
513     platform/network/cf/CookieJarCFNet.cpp
514     platform/network/cf/CookieStorageCFNet.cpp
515     platform/network/cf/CredentialStorageCFNet.cpp
516     platform/network/cf/DNSCFNet.cpp
517     platform/network/cf/FormDataStreamCFNet.cpp
518     platform/network/cf/LoaderRunLoopCF.cpp
519     platform/network/cf/NetworkStorageSessionCFNet.cpp
520     platform/network/cf/ProxyServerCFNet.cpp
521     platform/network/cf/ResourceErrorCF.cpp
522     platform/network/cf/ResourceRequestCFNet.cpp
523     platform/network/cf/ResourceResponseCFNet.cpp
524     platform/network/cf/SocketStreamHandleImplCFNet.cpp
525     platform/network/cf/SynchronousLoaderClientCFNet.cpp
526     platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
527
528     platform/network/cocoa/CredentialCocoa.mm
529     platform/network/cocoa/NetworkLoadTiming.mm
530     platform/network/cocoa/ProtectionSpaceCocoa.mm
531     platform/network/cocoa/ResourceRequestCocoa.mm
532     platform/network/cocoa/ResourceResponseCocoa.mm
533     platform/network/cocoa/WebCoreNSURLSession.mm
534
535     platform/network/mac/AuthenticationMac.mm
536     platform/network/mac/BlobDataFileReferenceMac.mm
537     platform/network/mac/CertificateInfoMac.mm
538     platform/network/mac/CookieJarMac.mm
539     platform/network/mac/CookieStorageMac.mm
540     platform/network/mac/CredentialStorageMac.mm
541     platform/network/mac/FormDataStreamMac.mm
542     platform/network/mac/NetworkStateNotifierMac.cpp
543     platform/network/mac/ResourceErrorMac.mm
544     platform/network/mac/ResourceHandleMac.mm
545     platform/network/mac/SynchronousLoaderClient.mm
546     platform/network/mac/UTIUtilities.mm
547     platform/network/mac/WebCoreResourceHandleAsDelegate.mm
548     platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
549     platform/network/mac/WebCoreURLResponse.mm
550
551     platform/posix/FileSystemPOSIX.cpp
552
553     platform/text/cf/HyphenationCF.cpp
554
555     platform/text/mac/LocaleMac.mm
556     platform/text/mac/TextBoundaries.mm
557     platform/text/mac/TextCodecMac.cpp
558
559     rendering/RenderThemeMac.mm
560     rendering/TextAutoSizing.cpp
561 )
562
563 # FIXME: We do not need everything from all of these directories.
564 # Move some to WebCore_FORWARDING_HEADERS_FILES once people start actually maintaining this.
565 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
566     accessibility
567     bridge
568     contentextensions
569     crypto
570     css
571     dom
572     editing
573     fileapi
574     history
575     html
576     inspector
577     loader
578     page
579     platform
580     plugins
581     rendering
582     replay
583     storage
584     style
585     svg
586     workers
587
588     Modules/applepay
589     Modules/geolocation
590     Modules/indexeddb
591     Modules/mediastream
592     Modules/notifications
593     Modules/webdatabase
594     Modules/websockets
595
596     Modules/indexeddb/client
597     Modules/indexeddb/shared
598     Modules/indexeddb/server
599
600     bindings/generic
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/network/cf
659     platform/network/cocoa
660     platform/network/mac
661
662     platform/spi/cf
663     platform/spi/cg
664     platform/spi/cocoa
665     platform/spi/mac
666
667     rendering/line
668     rendering/style
669
670     svg/graphics
671     svg/properties
672
673     xml
674 )
675
676 set(WebCore_FORWARDING_HEADERS_FILES
677     Modules/webdatabase/DatabaseDetails.h
678
679     bridge/IdentifierRep.h
680     bridge/npruntime_impl.h
681     bridge/npruntime_internal.h
682
683     contentextensions/CompiledContentExtension.h
684
685     editing/EditAction.h
686     editing/EditingBehaviorTypes.h
687     editing/EditingBoundary.h
688     editing/FindOptions.h
689     editing/FrameSelection.h
690     editing/TextAffinity.h
691
692     editing/mac/TextAlternativeWithRange.h
693
694     history/HistoryItem.h
695     history/PageCache.h
696
697     html/HTMLMediaElement.h
698
699     loader/appcache/ApplicationCacheStorage.h
700
701     loader/icon/IconDatabase.h
702     loader/icon/IconDatabaseBase.h
703     loader/icon/IconDatabaseClient.h
704
705     loader/mac/LoaderNSURLExtras.h
706
707     platform/DisplaySleepDisabler.h
708     platform/PlatformExportMacros.h
709
710     platform/audio/AudioHardwareListener.h
711
712     platform/cf/RunLoopObserver.h
713
714     platform/cocoa/MachSendRight.h
715     platform/cocoa/SoftLinking.h
716
717     platform/graphics/cocoa/IOSurface.h
718
719     platform/graphics/transforms/AffineTransform.h
720
721     platform/mac/WebCoreSystemInterface.h
722
723     platform/network/cf/CertificateInfo.h
724     platform/network/cf/ResourceResponse.h
725
726     platform/network/mac/AuthenticationMac.h
727
728     platform/sql/SQLiteDatabase.h
729
730     rendering/style/RenderStyleConstants.h
731 )
732
733 list(APPEND WebCore_IDL_FILES
734     Modules/plugins/QuickTimePluginReplacement.idl
735 )
736
737 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebCore_FORWARDING_HEADERS_FILES})
738
739 set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
740 set(ADDITIONAL_BINDINGS_DEPENDENCIES
741     ${WINDOW_CONSTRUCTORS_FILE}
742     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
743     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
744 )
745
746 set(WebCoreTestSupport_LIBRARY_TYPE SHARED)
747 list(APPEND WebCoreTestSupport_LIBRARIES PRIVATE WebCore)
748 list(APPEND WebCoreTestSupport_SOURCES
749     bindings/js/JSMockContentFilterSettingsCustom.cpp
750
751     testing/Internals.mm
752     testing/MockContentFilter.cpp
753     testing/MockContentFilterSettings.cpp
754 )
755
756 set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")