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