Fix Mac CMake build
[WebKit-https.git] / Source / WebCore / PlatformMac.cmake
1 find_library(QUARTZ_FRAMEWORK Quartz)
2 add_definitions(-iframework ${QUARTZ_FRAMEWORK}/Frameworks)
3
4 find_library(DATADETECTORSCORE_FRAMEWORK DataDetectorsCore HINTS /System/Library/PrivateFrameworks)
5 if (NOT DATADETECTORSCORE_FRAMEWORK-NOTFOUND)
6     list(APPEND WebCore_LIBRARIES ${DATADETECTORSCORE_FRAMEWORK})
7 endif ()
8
9 find_library(LOOKUP_FRAMEWORK Lookup HINTS /System/Library/PrivateFrameworks)
10 if (NOT LOOKUP_FRAMEWORK-NOTFOUND)
11     list(APPEND WebCore_LIBRARIES ${LOOKUP_FRAMEWORK})
12 endif ()
13
14 list(APPEND WebCore_INCLUDE_DIRECTORIES
15     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
16     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
17     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector"
18     "${JAVASCRIPTCORE_DIR}/replay"
19     "${THIRDPARTY_DIR}/ANGLE"
20     "${THIRDPARTY_DIR}/ANGLE/include/KHR"
21     "${WEBCORE_DIR}/accessibility/mac"
22     "${WEBCORE_DIR}/bindings/objc"
23     "${WEBCORE_DIR}/bridge/objc"
24     "${WEBCORE_DIR}/editing/cocoa"
25     "${WEBCORE_DIR}/editing/mac"
26     "${WEBCORE_DIR}/ForwardingHeaders"
27     "${WEBCORE_DIR}/ForwardingHeaders/bindings"
28     "${WEBCORE_DIR}/ForwardingHeaders/bytecode"
29     "${WEBCORE_DIR}/ForwardingHeaders/debugger"
30     "${WEBCORE_DIR}/ForwardingHeaders/heap"
31     "${WEBCORE_DIR}/ForwardingHeaders/inspector"
32     "${WEBCORE_DIR}/ForwardingHeaders/interpreter"
33     "${WEBCORE_DIR}/ForwardingHeaders/jit"
34     "${WEBCORE_DIR}/ForwardingHeaders/masm"
35     "${WEBCORE_DIR}/ForwardingHeaders/parser"
36     "${WEBCORE_DIR}/ForwardingHeaders/profiler"
37     "${WEBCORE_DIR}/ForwardingHeaders/replay"
38     "${WEBCORE_DIR}/ForwardingHeaders/runtime"
39     "${WEBCORE_DIR}/ForwardingHeaders/yarr"
40     "${WEBCORE_DIR}/icu"
41     "${WEBCORE_DIR}/loader/archive/cf"
42     "${WEBCORE_DIR}/loader/cf"
43     "${WEBCORE_DIR}/loader/mac"
44     "${WEBCORE_DIR}/page/cocoa"
45     "${WEBCORE_DIR}/page/mac"
46     "${WEBCORE_DIR}/page/scrolling/mac"
47     "${WEBCORE_DIR}/platform/audio/mac"
48     "${WEBCORE_DIR}/platform/cf"
49     "${WEBCORE_DIR}/platform/cocoa"
50     "${WEBCORE_DIR}/platform/graphics/avfoundation"
51     "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
52     "${WEBCORE_DIR}/platform/graphics/avfoundation/objc"
53     "${WEBCORE_DIR}/platform/graphics/ca"
54     "${WEBCORE_DIR}/platform/graphics/ca/cocoa"
55     "${WEBCORE_DIR}/platform/graphics/cocoa"
56     "${WEBCORE_DIR}/platform/graphics/cg"
57     "${WEBCORE_DIR}/platform/graphics/opentype"
58     "${WEBCORE_DIR}/platform/graphics/opengl"
59     "${WEBCORE_DIR}/platform/graphics/mac"
60     "${WEBCORE_DIR}/platform/mac"
61     "${WEBCORE_DIR}/platform/network/cocoa"
62     "${WEBCORE_DIR}/platform/network/cf"
63     "${WEBCORE_DIR}/platform/network/mac"
64     "${WEBCORE_DIR}/platform/text/cf"
65     "${WEBCORE_DIR}/platform/text/mac"
66     "${WEBCORE_DIR}/platform/spi/cf"
67     "${WEBCORE_DIR}/platform/spi/cg"
68     "${WEBCORE_DIR}/platform/spi/cocoa"
69     "${WEBCORE_DIR}/platform/spi/ios"
70     "${WEBCORE_DIR}/platform/spi/mac"
71     "${WEBCORE_DIR}/plugins/mac"
72     "${WTF_DIR}"
73 )
74
75 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
76     ${WEBCORE_DIR}/html/shadow/mac/imageControlsMac.css
77     ${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.css
78 )
79
80 set(WebCore_USER_AGENT_SCRIPTS
81     ${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.js
82 )
83
84 #FIXME: Use ios-encodings.txt once we get CMake working for iOS.
85 add_custom_command(
86     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
87     MAIN_DEPENDENCY ${WEBCORE_DIR}/platform/text/mac/make-charset-table.pl
88     DEPENDS platform/text/mac/character-sets.txt
89     DEPENDS platform/text/mac/mac-encodings.txt
90     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
91     VERBATIM)
92
93 list(APPEND WebCore_SOURCES
94     ${DERIVED_SOURCES_WEBCORE_DIR}/CharsetData.cpp
95 )
96
97 list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
98     "${CMAKE_OSX_SYSROOT}/usr/include/libxslt"
99     "${CMAKE_OSX_SYSROOT}/usr/include/libxml2"
100 )
101
102 list(APPEND WebCore_SOURCES
103     Modules/indieui/UIRequestEvent.cpp
104
105     Modules/plugins/QuickTimePluginReplacement.mm
106     Modules/plugins/YouTubePluginReplacement.cpp
107
108     accessibility/mac/AXObjectCacheMac.mm
109     accessibility/mac/AccessibilityObjectMac.mm
110     accessibility/mac/WebAccessibilityObjectWrapperBase.mm
111     accessibility/mac/WebAccessibilityObjectWrapperMac.mm
112
113     bindings/js/ScriptControllerMac.mm
114
115     bindings/objc/DOM.mm
116     bindings/objc/DOMAbstractView.mm
117     bindings/objc/DOMCSS.mm
118     bindings/objc/DOMCustomXPathNSResolver.mm
119     bindings/objc/DOMEvents.mm
120     bindings/objc/DOMHTML.mm
121     bindings/objc/DOMInternal.mm
122     bindings/objc/DOMObject.mm
123     bindings/objc/DOMUIKitExtensions.mm
124     bindings/objc/DOMUtility.mm
125     bindings/objc/DOMXPath.mm
126     bindings/objc/ExceptionHandlers.mm
127     bindings/objc/ObjCEventListener.mm
128     bindings/objc/ObjCNodeFilterCondition.mm
129     bindings/objc/WebScriptObject.mm
130
131     bridge/objc/ObjCRuntimeObject.mm
132     bridge/objc/objc_class.mm
133     bridge/objc/objc_instance.mm
134     bridge/objc/objc_runtime.mm
135     bridge/objc/objc_utility.mm
136
137     crypto/CommonCryptoUtilities.cpp
138     crypto/CryptoAlgorithm.cpp
139     crypto/CryptoAlgorithmDescriptionBuilder.cpp
140     crypto/CryptoAlgorithmRegistry.cpp
141     crypto/CryptoKey.cpp
142     crypto/CryptoKeyPair.cpp
143     crypto/SubtleCrypto.cpp
144
145     crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
146     crypto/algorithms/CryptoAlgorithmAES_KW.cpp
147     crypto/algorithms/CryptoAlgorithmHMAC.cpp
148     crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
149     crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
150     crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
151     crypto/algorithms/CryptoAlgorithmSHA1.cpp
152     crypto/algorithms/CryptoAlgorithmSHA224.cpp
153     crypto/algorithms/CryptoAlgorithmSHA256.cpp
154     crypto/algorithms/CryptoAlgorithmSHA384.cpp
155     crypto/algorithms/CryptoAlgorithmSHA512.cpp
156
157     crypto/keys/CryptoKeyAES.cpp
158     crypto/keys/CryptoKeyDataOctetSequence.cpp
159     crypto/keys/CryptoKeyDataRSAComponents.cpp
160     crypto/keys/CryptoKeyHMAC.cpp
161     crypto/keys/CryptoKeySerializationRaw.cpp
162
163     crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
164     crypto/mac/CryptoAlgorithmAES_KWMac.cpp
165     crypto/mac/CryptoAlgorithmHMACMac.cpp
166     crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp
167     crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp
168     crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp
169     crypto/mac/CryptoAlgorithmRegistryMac.cpp
170     crypto/mac/CryptoDigestMac.cpp
171     crypto/mac/CryptoKeyMac.cpp
172     crypto/mac/CryptoKeyRSAMac.cpp
173     crypto/mac/SerializedCryptoKeyWrapMac.mm
174
175     dom/DataTransferMac.mm
176     dom/SlotAssignment.cpp
177
178     editing/SelectionRectGatherer.cpp
179     editing/SmartReplaceCF.cpp
180
181     editing/cocoa/EditorCocoa.mm
182     editing/cocoa/HTMLConverter.mm
183
184     editing/mac/AlternativeTextUIController.mm
185     editing/mac/DataDetection.mm
186     editing/mac/DictionaryLookup.mm
187     editing/mac/EditorMac.mm
188     editing/mac/FrameSelectionMac.mm
189     editing/mac/TextAlternativeWithRange.mm
190     editing/mac/TextUndoInsertionMarkupMac.mm
191
192     fileapi/FileMac.mm
193
194     html/HTMLSlotElement.cpp
195
196     html/shadow/ImageControlsRootElement.cpp
197     html/shadow/YouTubeEmbedShadowElement.cpp
198
199     html/shadow/mac/ImageControlsButtonElementMac.cpp
200     html/shadow/mac/ImageControlsRootElementMac.cpp
201
202     history/mac/HistoryItemMac.mm
203
204     loader/ResourceLoadInfo.cpp
205
206     loader/archive/cf/LegacyWebArchive.cpp
207     loader/archive/cf/LegacyWebArchiveMac.mm
208
209     loader/cocoa/DiskCacheMonitorCocoa.mm
210     loader/cocoa/SubresourceLoaderCocoa.mm
211
212     loader/cf/ResourceLoaderCFNet.cpp
213     loader/cf/SubresourceLoaderCF.cpp
214
215     loader/mac/DocumentLoaderMac.cpp
216     loader/mac/LoaderNSURLExtras.mm
217     loader/mac/ResourceLoaderMac.mm
218
219     page/CaptionUserPreferencesMediaAF.cpp
220     page/PageDebuggable.cpp
221
222     page/cocoa/UserAgent.mm
223
224     page/mac/ChromeMac.mm
225     page/mac/DragControllerMac.mm
226     page/mac/EventHandlerMac.mm
227     page/mac/PageMac.mm
228     page/mac/ServicesOverlayController.mm
229     page/mac/SettingsMac.mm
230     page/mac/TextIndicatorWindow.mm
231     page/mac/UserAgentMac.mm
232     page/mac/WheelEventDeltaFilterMac.mm
233
234     page/scrolling/AsyncScrollingCoordinator.cpp
235
236     page/scrolling/cocoa/ScrollingStateNode.mm
237
238     page/scrolling/mac/ScrollingCoordinatorMac.mm
239     page/scrolling/mac/ScrollingStateFrameScrollingNodeMac.mm
240     page/scrolling/mac/ScrollingThreadMac.mm
241     page/scrolling/mac/ScrollingTreeFixedNode.mm
242     page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm
243     page/scrolling/mac/ScrollingTreeMac.cpp
244     page/scrolling/mac/ScrollingTreeStickyNode.mm
245
246     platform/LocalizedStrings.cpp
247     platform/ScrollableArea.cpp
248     platform/VNodeTracker.cpp
249
250     platform/audio/AudioSession.cpp
251
252     platform/audio/mac/AudioBusMac.mm
253     platform/audio/mac/AudioDestinationMac.cpp
254     platform/audio/mac/AudioFileReaderMac.cpp
255     platform/audio/mac/AudioHardwareListenerMac.cpp
256     platform/audio/mac/AudioSessionMac.cpp
257     platform/audio/mac/CARingBuffer.cpp
258     platform/audio/mac/FFTFrameMac.cpp
259     platform/audio/mac/MediaSessionManagerMac.cpp
260
261     platform/cf/CFURLExtras.cpp
262     platform/cf/CoreMediaSoftLink.cpp
263     platform/cf/FileSystemCF.cpp
264     platform/cf/KeyedDecoderCF.cpp
265     platform/cf/KeyedEncoderCF.cpp
266     platform/cf/MediaAccessibilitySoftLink.cpp
267     platform/cf/RunLoopObserver.cpp
268     platform/cf/SharedBufferCF.cpp
269     platform/cf/SharedTimerCF.cpp
270     platform/cf/URLCF.cpp
271
272     platform/cocoa/ContentFilterUnblockHandlerCocoa.mm
273     platform/cocoa/DisplaySleepDisablerCocoa.cpp
274     platform/cocoa/KeyEventCocoa.mm
275     platform/cocoa/LocalizedStringsCocoa.mm
276     platform/cocoa/MachSendRight.cpp
277     platform/cocoa/MemoryPressureHandlerCocoa.mm
278     platform/cocoa/NetworkExtensionContentFilter.mm
279     platform/cocoa/ParentalControlsContentFilter.mm
280     platform/cocoa/ScrollController.mm
281     platform/cocoa/ScrollSnapAnimatorState.mm
282     platform/cocoa/SearchPopupMenuCocoa.mm
283     platform/cocoa/SystemVersion.mm
284     platform/cocoa/TelephoneNumberDetectorCocoa.cpp
285     platform/cocoa/ThemeCocoa.cpp
286     platform/cocoa/VNodeTrackerCocoa.cpp
287
288     platform/graphics/DisplayRefreshMonitor.cpp
289     platform/graphics/DisplayRefreshMonitorManager.cpp
290     platform/graphics/FontPlatformData.cpp
291
292     platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
293     platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
294     platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
295     platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
296     platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
297     platform/graphics/avfoundation/MediaPlaybackTargetMac.mm
298     platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
299     platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm
300     platform/graphics/avfoundation/MediaTimeAVFoundation.cpp
301
302     platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
303     platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
304     platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
305     platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
306     platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
307     platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm
308     platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
309     platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
310     platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
311     platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
312     platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
313     platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
314     platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm
315
316     platform/graphics/ca/GraphicsLayerCA.cpp
317     platform/graphics/ca/LayerFlushScheduler.cpp
318     platform/graphics/ca/LayerPool.cpp
319     platform/graphics/ca/PlatformCAAnimation.cpp
320     platform/graphics/ca/PlatformCALayer.cpp
321     platform/graphics/ca/TileController.cpp
322     platform/graphics/ca/TileCoverageMap.cpp
323     platform/graphics/ca/TileGrid.cpp
324     platform/graphics/ca/TransformationMatrixCA.cpp
325
326     platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp
327     platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm
328     platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm
329     platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
330     platform/graphics/ca/cocoa/WebSystemBackdropLayer.mm
331     platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
332
333     platform/graphics/cg/BitmapImageCG.cpp
334     platform/graphics/cg/ColorCG.cpp
335     platform/graphics/cg/FloatPointCG.cpp
336     platform/graphics/cg/FloatRectCG.cpp
337     platform/graphics/cg/FloatSizeCG.cpp
338     platform/graphics/cg/GradientCG.cpp
339     platform/graphics/cg/GraphicsContext3DCG.cpp
340     platform/graphics/cg/GraphicsContextCG.cpp
341     platform/graphics/cg/IOSurfacePool.cpp
342     platform/graphics/cg/ImageBufferCG.cpp
343     platform/graphics/cg/ImageBufferDataCG.cpp
344     platform/graphics/cg/ImageCG.cpp
345     platform/graphics/cg/ImageSourceCG.cpp
346     platform/graphics/cg/ImageSourceCGMac.mm
347     platform/graphics/cg/ImageSourceCGWin.cpp
348     platform/graphics/cg/IntPointCG.cpp
349     platform/graphics/cg/IntRectCG.cpp
350     platform/graphics/cg/IntSizeCG.cpp
351     platform/graphics/cg/PDFDocumentImage.cpp
352     platform/graphics/cg/PathCG.cpp
353     platform/graphics/cg/PatternCG.cpp
354     platform/graphics/cg/SubimageCacheWithTimer.cpp
355     platform/graphics/cg/TransformationMatrixCG.cpp
356
357     platform/graphics/cocoa/FontCacheCoreText.cpp
358     platform/graphics/cocoa/FontCascadeCocoa.mm
359     platform/graphics/cocoa/FontCocoa.mm
360     platform/graphics/cocoa/FontPlatformDataCocoa.mm
361     platform/graphics/cocoa/IOSurface.mm
362     platform/graphics/cocoa/IOSurfacePoolCocoa.mm
363     platform/graphics/cocoa/WebActionDisablingCALayerDelegate.mm
364     platform/graphics/cocoa/WebCoreCALayerExtras.mm
365
366     platform/graphics/mac/ColorMac.mm
367     platform/graphics/mac/ComplexTextController.cpp
368     platform/graphics/mac/ComplexTextControllerCoreText.mm
369     platform/graphics/mac/DisplayRefreshMonitorMac.cpp
370     platform/graphics/mac/FloatPointMac.mm
371     platform/graphics/mac/FloatRectMac.mm
372     platform/graphics/mac/FloatSizeMac.mm
373     platform/graphics/mac/FontCacheMac.mm
374     platform/graphics/mac/FontCustomPlatformData.cpp
375     platform/graphics/mac/GlyphPageMac.cpp
376     platform/graphics/mac/GraphicsContext3DMac.mm
377     platform/graphics/mac/GraphicsContextMac.mm
378     platform/graphics/mac/IconMac.mm
379     platform/graphics/mac/ImageMac.mm
380     platform/graphics/mac/IntPointMac.mm
381     platform/graphics/mac/IntRectMac.mm
382     platform/graphics/mac/IntSizeMac.mm
383     platform/graphics/mac/MediaPlayerPrivateQTKit.mm
384     platform/graphics/mac/MediaTimeQTKit.mm
385     platform/graphics/mac/PDFDocumentImageMac.mm
386     platform/graphics/mac/SimpleFontDataCoreText.cpp
387     platform/graphics/mac/WebGLLayer.mm
388     platform/graphics/mac/WebLayer.mm
389
390     platform/graphics/opengl/Extensions3DOpenGL.cpp
391     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
392     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
393     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
394     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
395
396     platform/graphics/opentype/OpenTypeMathData.cpp
397
398     platform/mac/BlockExceptions.mm
399     platform/mac/ContextMenuItemMac.mm
400     platform/mac/ContextMenuMac.mm
401     platform/mac/CursorMac.mm
402     platform/mac/DragDataMac.mm
403     platform/mac/DragImageMac.mm
404     platform/mac/EventLoopMac.mm
405     platform/mac/FileSystemMac.mm
406     platform/mac/HIDGamepad.cpp
407     platform/mac/HIDGamepadProvider.cpp
408     platform/mac/KeyEventMac.mm
409     platform/mac/KillRingMac.mm
410     platform/mac/Language.mm
411     platform/mac/LocalCurrentGraphicsContext.mm
412     platform/mac/LoggingMac.mm
413     platform/mac/MIMETypeRegistryMac.mm
414     platform/mac/NSScrollerImpDetails.mm
415     platform/mac/PasteboardMac.mm
416     platform/mac/PlatformClockCA.cpp
417     platform/mac/PlatformClockCM.mm
418     platform/mac/PlatformEventFactoryMac.mm
419     platform/mac/PlatformPasteboardMac.mm
420     platform/mac/PlatformScreenMac.mm
421     platform/mac/PlatformSpeechSynthesizerMac.mm
422     platform/mac/PowerObserverMac.cpp
423     platform/mac/PublicSuffixMac.mm
424     platform/mac/SSLKeyGeneratorMac.cpp
425     platform/mac/ScrollAnimatorMac.mm
426     platform/mac/ScrollViewMac.mm
427     platform/mac/ScrollbarThemeMac.mm
428     platform/mac/SerializedPlatformRepresentationMac.mm
429     platform/mac/SharedBufferMac.mm
430     platform/mac/SoundMac.mm
431     platform/mac/SuddenTermination.mm
432     platform/mac/SystemSleepListenerMac.mm
433     platform/mac/ThemeMac.mm
434     platform/mac/ThreadCheck.mm
435     platform/mac/URLMac.mm
436     platform/mac/UserActivityMac.mm
437     platform/mac/WebCoreFullScreenPlaceholderView.mm
438     platform/mac/WebCoreFullScreenWarningView.mm
439     platform/mac/WebCoreFullScreenWindow.mm
440     platform/mac/WebCoreNSStringExtras.mm
441     platform/mac/WebCoreNSURLExtras.mm
442     platform/mac/WebCoreObjCExtras.mm
443     platform/mac/WebCoreSystemInterface.mm
444     platform/mac/WebNSAttributedStringExtras.mm
445     platform/mac/WebVideoFullscreenController.mm
446     platform/mac/WebVideoFullscreenHUDWindowController.mm
447     platform/mac/WebWindowAnimation.mm
448     platform/mac/WidgetMac.mm
449
450     platform/network/cf/AuthenticationCF.cpp
451     platform/network/cf/CookieJarCFNet.cpp
452     platform/network/cf/CookieStorageCFNet.cpp
453     platform/network/cf/CredentialStorageCFNet.cpp
454     platform/network/cf/DNSCFNet.cpp
455     platform/network/cf/FormDataStreamCFNet.cpp
456     platform/network/cf/LoaderRunLoopCF.cpp
457     platform/network/cf/NetworkStorageSessionCFNet.cpp
458     platform/network/cf/ProxyServerCFNet.cpp
459     platform/network/cf/ResourceErrorCF.cpp
460     platform/network/cf/ResourceHandleCFNet.cpp
461     platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp
462     platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
463     platform/network/cf/ResourceRequestCFNet.cpp
464     platform/network/cf/ResourceResponseCFNet.cpp
465     platform/network/cf/SocketStreamHandleCFNet.cpp
466     platform/network/cf/SynchronousLoaderClientCFNet.cpp
467     platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
468
469     platform/network/cocoa/CredentialCocoa.mm
470     platform/network/cocoa/ProtectionSpaceCocoa.mm
471     platform/network/cocoa/ResourceRequestCocoa.mm
472
473     platform/network/mac/AuthenticationMac.mm
474     platform/network/mac/BlobDataFileReferenceMac.mm
475     platform/network/mac/CertificateInfoMac.mm
476     platform/network/mac/CookieJarMac.mm
477     platform/network/mac/CookieStorageMac.mm
478     platform/network/mac/CredentialStorageMac.mm
479     platform/network/mac/FormDataStreamMac.mm
480     platform/network/mac/NetworkStateNotifierMac.cpp
481     platform/network/mac/ResourceErrorMac.mm
482     platform/network/mac/ResourceHandleMac.mm
483     platform/network/mac/ResourceRequestMac.mm
484     platform/network/mac/ResourceResponseMac.mm
485     platform/network/mac/SynchronousLoaderClient.mm
486     platform/network/mac/UTIUtilities.mm
487     platform/network/mac/WebCoreResourceHandleAsDelegate.mm
488     platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
489     platform/network/mac/WebCoreURLResponse.mm
490
491     platform/posix/FileSystemPOSIX.cpp
492     platform/posix/SharedBufferPOSIX.cpp
493
494     platform/text/cf/HyphenationCF.cpp
495
496     platform/text/mac/LocaleMac.mm
497     platform/text/mac/TextBoundaries.mm
498     platform/text/mac/TextBreakIteratorInternalICUMac.mm
499     platform/text/mac/TextCodecMac.cpp
500
501     rendering/RenderThemeMac.mm
502     rendering/TextAutoSizing.cpp
503 )
504
505 # FIXME: We do not need everything from all of these directories.
506 # Move some to WebCore_FORWARDING_HEADERS_FILES once people start actually maintaining this.
507 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
508     accessibility
509     bridge
510     contentextensions
511     crypto
512     css
513     dom
514     editing
515     fileapi
516     history
517     html
518     inspector
519     loader
520     page
521     platform
522     plugins
523     rendering
524     replay
525     storage
526     style
527     svg
528
529     Modules/geolocation
530     Modules/indexeddb
531     Modules/notifications
532     Modules/webdatabase
533
534     Modules/indexeddb/legacy
535
536     bindings/generic
537     bindings/js
538     bindings/objc
539
540     bridge/jsc
541
542     editing/cocoa
543     editing/mac
544
545     html/forms
546     html/parser
547     html/shadow
548
549     loader/appcache
550     loader/archive
551     loader/cache
552     loader/cocoa
553
554     loader/archive/cf
555
556     page/animation
557     page/cocoa
558     page/mac
559     page/scrolling
560
561     page/scrolling/mac
562
563     platform/animation
564     platform/audio
565     platform/cf
566     platform/cocoa
567     platform/graphics
568     platform/mac
569     platform/mediastream
570     platform/mock
571     platform/network
572     platform/sql
573     platform/text
574
575     platform/graphics/ca
576     platform/graphics/cocoa
577     platform/graphics/cg
578     platform/graphics/filters
579     platform/graphics/mac
580     platform/graphics/transforms
581
582     platform/graphics/ca/cocoa
583
584     platform/network/cf
585     platform/network/cocoa
586     platform/network/mac
587
588     platform/spi/cf
589     platform/spi/cg
590     platform/spi/cocoa
591     platform/spi/mac
592
593     rendering/line
594     rendering/style
595
596     svg/graphics
597     svg/properties
598 )
599
600 set(WebCore_FORWARDING_HEADERS_FILES
601     Modules/webdatabase/DatabaseDetails.h
602
603     bridge/IdentifierRep.h
604     bridge/npruntime_impl.h
605     bridge/npruntime_internal.h
606
607     contentextensions/CompiledContentExtension.h
608
609     editing/EditAction.h
610     editing/EditingBehaviorTypes.h
611     editing/EditingBoundary.h
612     editing/FindOptions.h
613     editing/FrameSelection.h
614     editing/TextAffinity.h
615
616     editing/mac/TextAlternativeWithRange.h
617
618     history/BackForwardList.h
619     history/HistoryItem.h
620     history/PageCache.h
621
622     html/HTMLMediaElement.h
623
624     loader/appcache/ApplicationCacheStorage.h
625
626     loader/icon/IconDatabase.h
627     loader/icon/IconDatabaseBase.h
628     loader/icon/IconDatabaseClient.h
629
630     loader/mac/LoaderNSURLExtras.h
631
632     platform/DisplaySleepDisabler.h
633     platform/PlatformExportMacros.h
634
635     platform/audio/AudioHardwareListener.h
636
637     platform/cf/RunLoopObserver.h
638
639     platform/cocoa/MachSendRight.h
640
641     platform/graphics/cocoa/IOSurface.h
642
643     platform/graphics/transforms/AffineTransform.h
644
645     platform/mac/SoftLinking.h
646     platform/mac/WebCoreSystemInterface.h
647
648     platform/network/cf/CertificateInfo.h
649     platform/network/cf/ResourceResponse.h
650
651     platform/network/mac/AuthenticationMac.h
652
653     platform/sql/SQLiteDatabase.h
654
655     rendering/style/RenderStyleConstants.h
656 )
657
658 list(APPEND WebCore_IDL_FILES
659     Modules/plugins/QuickTimePluginReplacement.idl
660 )
661
662 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebCore_FORWARDING_HEADERS_FILES})
663
664 set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
665 set(ADDITIONAL_BINDINGS_DEPENDENCIES
666     ${WINDOW_CONSTRUCTORS_FILE}
667     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
668     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
669 )
670
671 set(ObjC_Bindings_IDL_FILES
672     css/CSSCharsetRule.idl
673     css/CSSFontFaceRule.idl
674     css/CSSImportRule.idl
675     css/CSSKeyframeRule.idl
676     css/CSSKeyframesRule.idl
677     css/CSSMediaRule.idl
678     css/CSSPageRule.idl
679     css/CSSPrimitiveValue.idl
680     css/CSSRule.idl
681     css/CSSRuleList.idl
682     css/CSSStyleDeclaration.idl
683     css/CSSStyleRule.idl
684     css/CSSStyleSheet.idl
685     css/CSSSupportsRule.idl
686     css/CSSUnknownRule.idl
687     css/CSSValue.idl
688     css/CSSValueList.idl
689     css/Counter.idl
690     css/MediaList.idl
691     css/RGBColor.idl
692     css/Rect.idl
693     css/StyleSheet.idl
694     css/StyleSheetList.idl
695     css/WebKitCSSFilterValue.idl
696     css/WebKitCSSRegionRule.idl
697     css/WebKitCSSTransformValue.idl
698
699     dom/Attr.idl
700     dom/BeforeLoadEvent.idl
701     dom/CDATASection.idl
702     dom/CharacterData.idl
703     dom/Comment.idl
704     dom/DOMImplementation.idl
705     dom/DOMNamedFlowCollection.idl
706     dom/Document.idl
707     dom/DocumentFragment.idl
708     dom/DocumentType.idl
709     dom/Element.idl
710     dom/Entity.idl
711     dom/EntityReference.idl
712     dom/Event.idl
713     dom/EventListener.idl
714     dom/EventTarget.idl
715     dom/KeyboardEvent.idl
716     dom/MessageEvent.idl
717     dom/MessagePort.idl
718     dom/MouseEvent.idl
719     dom/MutationEvent.idl
720     dom/NamedNodeMap.idl
721     dom/Node.idl
722     dom/NodeFilter.idl
723     dom/NodeIterator.idl
724     dom/NodeList.idl
725     dom/OverflowEvent.idl
726     dom/ProcessingInstruction.idl
727     dom/ProgressEvent.idl
728     dom/Range.idl
729     dom/Text.idl
730     dom/TextEvent.idl
731     dom/TreeWalker.idl
732     dom/UIEvent.idl
733     dom/WebKitNamedFlow.idl
734     dom/WheelEvent.idl
735
736     fileapi/Blob.idl
737     fileapi/File.idl
738     fileapi/FileList.idl
739
740     html/DOMTokenList.idl
741     html/HTMLAnchorElement.idl
742     html/HTMLAppletElement.idl
743     html/HTMLAreaElement.idl
744     html/HTMLBRElement.idl
745     html/HTMLBaseElement.idl
746     html/HTMLBaseFontElement.idl
747     html/HTMLBodyElement.idl
748     html/HTMLButtonElement.idl
749     html/HTMLCanvasElement.idl
750     html/HTMLCollection.idl
751     html/HTMLDListElement.idl
752     html/HTMLDirectoryElement.idl
753     html/HTMLDivElement.idl
754     html/HTMLDocument.idl
755     html/HTMLElement.idl
756     html/HTMLEmbedElement.idl
757     html/HTMLFieldSetElement.idl
758     html/HTMLFontElement.idl
759     html/HTMLFormElement.idl
760     html/HTMLFrameElement.idl
761     html/HTMLFrameSetElement.idl
762     html/HTMLHRElement.idl
763     html/HTMLHeadElement.idl
764     html/HTMLHeadingElement.idl
765     html/HTMLHtmlElement.idl
766     html/HTMLIFrameElement.idl
767     html/HTMLImageElement.idl
768     html/HTMLInputElement.idl
769     html/HTMLLIElement.idl
770     html/HTMLLabelElement.idl
771     html/HTMLLegendElement.idl
772     html/HTMLLinkElement.idl
773     html/HTMLMapElement.idl
774     html/HTMLMarqueeElement.idl
775     html/HTMLMenuElement.idl
776     html/HTMLMetaElement.idl
777     html/HTMLModElement.idl
778     html/HTMLOListElement.idl
779     html/HTMLObjectElement.idl
780     html/HTMLOptGroupElement.idl
781     html/HTMLOptionElement.idl
782     html/HTMLOptionsCollection.idl
783     html/HTMLParagraphElement.idl
784     html/HTMLParamElement.idl
785     html/HTMLPreElement.idl
786     html/HTMLQuoteElement.idl
787     html/HTMLScriptElement.idl
788     html/HTMLSelectElement.idl
789     html/HTMLStyleElement.idl
790     html/HTMLTableCaptionElement.idl
791     html/HTMLTableCellElement.idl
792     html/HTMLTableColElement.idl
793     html/HTMLTableElement.idl
794     html/HTMLTableRowElement.idl
795     html/HTMLTableSectionElement.idl
796     html/HTMLTextAreaElement.idl
797     html/HTMLTitleElement.idl
798     html/HTMLUListElement.idl
799     html/ValidityState.idl
800
801     page/AbstractView.idl
802     page/DOMSecurityPolicy.idl
803
804     xml/XPathExpression.idl
805     xml/XPathNSResolver.idl
806     xml/XPathResult.idl
807 )
808
809 set(ObjC_BINDINGS_NO_MM
810     AbstractView
811     AbstractWorker
812     ChildNode
813     DOMURLMediaSource
814     DOMURLMediaStream
815     DOMWindowIndexedDatabase
816     DOMWindowNotifications
817     DOMWindowSpeechSynthesis
818     DOMWindowWebDatabase
819     EventListener
820     EventTarget
821     GlobalEventHandlers
822     HTMLMediaElementMediaSession
823     HTMLMediaElementMediaStream
824     NavigatorBattery
825     NavigatorContentUtils
826     NavigatorGamepad
827     NavigatorGeolocation
828     NavigatorMediaDevices
829     NavigatorUserMedia
830     NavigatorVibration
831     NodeFilter
832     NonDocumentTypeChildNode
833     NonElementParentNode
834     ParentNode
835     URLUtils
836     WindowBase64
837     WindowEventHandlers
838     WindowTimers
839     WorkerGlobalScopeIndexedDatabase
840     WorkerGlobalScopeNotifications
841     XPathNSResolver
842 )
843
844 GENERATE_BINDINGS(WebCore_SOURCES
845     "${ObjC_Bindings_IDL_FILES}"
846     "${WEBCORE_DIR}"
847     "${IDL_INCLUDES}"
848     "${FEATURE_DEFINES_OBJECTIVE_C}"
849     ${DERIVED_SOURCES_WEBCORE_DIR} DOM ObjC mm
850     ${IDL_ATTRIBUTES_FILE}
851     ${SUPPLEMENTAL_DEPENDENCY_FILE}
852     ${ADDITIONAL_BINDINGS_DEPENDENCIES})