Fix Mac CMake build after r191433.
[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.cpp
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/MediaAccessibilitySoftLink.cpp
265     platform/cf/RunLoopObserver.cpp
266     platform/cf/SharedBufferCF.cpp
267     platform/cf/SharedTimerCF.cpp
268     platform/cf/URLCF.cpp
269
270     platform/cocoa/ContentFilterUnblockHandlerCocoa.mm
271     platform/cocoa/DisplaySleepDisablerCocoa.cpp
272     platform/cocoa/KeyEventCocoa.mm
273     platform/cocoa/LocalizedStringsCocoa.mm
274     platform/cocoa/MachSendRight.cpp
275     platform/cocoa/MemoryPressureHandlerCocoa.mm
276     platform/cocoa/NetworkExtensionContentFilter.mm
277     platform/cocoa/ParentalControlsContentFilter.mm
278     platform/cocoa/ScrollController.mm
279     platform/cocoa/ScrollSnapAnimatorState.mm
280     platform/cocoa/SearchPopupMenuCocoa.mm
281     platform/cocoa/SystemVersion.mm
282     platform/cocoa/TelephoneNumberDetectorCocoa.cpp
283     platform/cocoa/ThemeCocoa.cpp
284     platform/cocoa/VNodeTrackerCocoa.cpp
285
286     platform/graphics/DisplayRefreshMonitor.cpp
287     platform/graphics/DisplayRefreshMonitorManager.cpp
288     platform/graphics/FontPlatformData.cpp
289
290     platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
291     platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
292     platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
293     platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
294     platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
295     platform/graphics/avfoundation/MediaPlaybackTargetMac.mm
296     platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
297     platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm
298     platform/graphics/avfoundation/MediaTimeAVFoundation.cpp
299
300     platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
301     platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
302     platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
303     platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
304     platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
305     platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm
306     platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
307     platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
308     platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
309     platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
310     platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
311     platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
312     platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm
313
314     platform/graphics/ca/GraphicsLayerCA.cpp
315     platform/graphics/ca/LayerFlushScheduler.cpp
316     platform/graphics/ca/LayerPool.cpp
317     platform/graphics/ca/PlatformCALayer.cpp
318     platform/graphics/ca/TileController.cpp
319     platform/graphics/ca/TileCoverageMap.cpp
320     platform/graphics/ca/TileGrid.cpp
321     platform/graphics/ca/TransformationMatrixCA.cpp
322
323     platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp
324     platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm
325     platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm
326     platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
327     platform/graphics/ca/cocoa/WebSystemBackdropLayer.mm
328     platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
329
330     platform/graphics/cg/BitmapImageCG.cpp
331     platform/graphics/cg/ColorCG.cpp
332     platform/graphics/cg/FloatPointCG.cpp
333     platform/graphics/cg/FloatRectCG.cpp
334     platform/graphics/cg/FloatSizeCG.cpp
335     platform/graphics/cg/GradientCG.cpp
336     platform/graphics/cg/GraphicsContext3DCG.cpp
337     platform/graphics/cg/GraphicsContextCG.cpp
338     platform/graphics/cg/IOSurfacePool.cpp
339     platform/graphics/cg/ImageBufferCG.cpp
340     platform/graphics/cg/ImageBufferDataCG.cpp
341     platform/graphics/cg/ImageCG.cpp
342     platform/graphics/cg/ImageSourceCG.cpp
343     platform/graphics/cg/ImageSourceCGMac.mm
344     platform/graphics/cg/ImageSourceCGWin.cpp
345     platform/graphics/cg/IntPointCG.cpp
346     platform/graphics/cg/IntRectCG.cpp
347     platform/graphics/cg/IntSizeCG.cpp
348     platform/graphics/cg/PDFDocumentImage.cpp
349     platform/graphics/cg/PathCG.cpp
350     platform/graphics/cg/PatternCG.cpp
351     platform/graphics/cg/SubimageCacheWithTimer.cpp
352     platform/graphics/cg/TransformationMatrixCG.cpp
353
354     platform/graphics/cocoa/FontCacheCoreText.cpp
355     platform/graphics/cocoa/FontCascadeCocoa.mm
356     platform/graphics/cocoa/FontCocoa.mm
357     platform/graphics/cocoa/FontPlatformDataCocoa.mm
358     platform/graphics/cocoa/IOSurface.mm
359     platform/graphics/cocoa/IOSurfacePoolCocoa.mm
360     platform/graphics/cocoa/WebActionDisablingCALayerDelegate.mm
361     platform/graphics/cocoa/WebCoreCALayerExtras.mm
362
363     platform/graphics/mac/ColorMac.mm
364     platform/graphics/mac/ComplexTextController.cpp
365     platform/graphics/mac/ComplexTextControllerCoreText.mm
366     platform/graphics/mac/DisplayRefreshMonitorMac.cpp
367     platform/graphics/mac/FloatPointMac.mm
368     platform/graphics/mac/FloatRectMac.mm
369     platform/graphics/mac/FloatSizeMac.mm
370     platform/graphics/mac/FontCacheMac.mm
371     platform/graphics/mac/FontCustomPlatformData.cpp
372     platform/graphics/mac/GlyphPageMac.cpp
373     platform/graphics/mac/GraphicsContext3DMac.mm
374     platform/graphics/mac/GraphicsContextMac.mm
375     platform/graphics/mac/IconMac.mm
376     platform/graphics/mac/ImageMac.mm
377     platform/graphics/mac/IntPointMac.mm
378     platform/graphics/mac/IntRectMac.mm
379     platform/graphics/mac/IntSizeMac.mm
380     platform/graphics/mac/MediaPlayerPrivateQTKit.mm
381     platform/graphics/mac/MediaTimeQTKit.mm
382     platform/graphics/mac/PDFDocumentImageMac.mm
383     platform/graphics/mac/SimpleFontDataCoreText.cpp
384     platform/graphics/mac/WebGLLayer.mm
385     platform/graphics/mac/WebLayer.mm
386
387     platform/graphics/opengl/Extensions3DOpenGL.cpp
388     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
389     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
390     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
391     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
392
393     platform/graphics/opentype/OpenTypeMathData.cpp
394
395     platform/mac/BlockExceptions.mm
396     platform/mac/ContextMenuItemMac.mm
397     platform/mac/ContextMenuMac.mm
398     platform/mac/CursorMac.mm
399     platform/mac/DragDataMac.mm
400     platform/mac/DragImageMac.mm
401     platform/mac/EventLoopMac.mm
402     platform/mac/FileSystemMac.mm
403     platform/mac/HIDGamepad.cpp
404     platform/mac/HIDGamepadProvider.cpp
405     platform/mac/KeyEventMac.mm
406     platform/mac/KillRingMac.mm
407     platform/mac/Language.mm
408     platform/mac/LocalCurrentGraphicsContext.mm
409     platform/mac/LoggingMac.mm
410     platform/mac/MIMETypeRegistryMac.mm
411     platform/mac/NSScrollerImpDetails.mm
412     platform/mac/PasteboardMac.mm
413     platform/mac/PlatformClockCA.cpp
414     platform/mac/PlatformClockCM.mm
415     platform/mac/PlatformEventFactoryMac.mm
416     platform/mac/PlatformPasteboardMac.mm
417     platform/mac/PlatformScreenMac.mm
418     platform/mac/PlatformSpeechSynthesizerMac.mm
419     platform/mac/PowerObserverMac.cpp
420     platform/mac/PublicSuffixMac.mm
421     platform/mac/SSLKeyGeneratorMac.cpp
422     platform/mac/ScrollAnimatorMac.mm
423     platform/mac/ScrollViewMac.mm
424     platform/mac/ScrollbarThemeMac.mm
425     platform/mac/SerializedPlatformRepresentationMac.mm
426     platform/mac/SharedBufferMac.mm
427     platform/mac/SoundMac.mm
428     platform/mac/SuddenTermination.mm
429     platform/mac/SystemSleepListenerMac.mm
430     platform/mac/ThemeMac.mm
431     platform/mac/ThreadCheck.mm
432     platform/mac/URLMac.mm
433     platform/mac/UserActivityMac.mm
434     platform/mac/WebCoreFullScreenPlaceholderView.mm
435     platform/mac/WebCoreFullScreenWarningView.mm
436     platform/mac/WebCoreFullScreenWindow.mm
437     platform/mac/WebCoreNSStringExtras.mm
438     platform/mac/WebCoreNSURLExtras.mm
439     platform/mac/WebCoreObjCExtras.mm
440     platform/mac/WebCoreSystemInterface.mm
441     platform/mac/WebNSAttributedStringExtras.mm
442     platform/mac/WebVideoFullscreenController.mm
443     platform/mac/WebVideoFullscreenHUDWindowController.mm
444     platform/mac/WebWindowAnimation.mm
445     platform/mac/WidgetMac.mm
446
447     platform/network/cf/AuthenticationCF.cpp
448     platform/network/cf/CookieJarCFNet.cpp
449     platform/network/cf/CookieStorageCFNet.cpp
450     platform/network/cf/CredentialStorageCFNet.cpp
451     platform/network/cf/DNSCFNet.cpp
452     platform/network/cf/FormDataStreamCFNet.cpp
453     platform/network/cf/LoaderRunLoopCF.cpp
454     platform/network/cf/NetworkStorageSessionCFNet.cpp
455     platform/network/cf/ProxyServerCFNet.cpp
456     platform/network/cf/ResourceErrorCF.cpp
457     platform/network/cf/ResourceHandleCFNet.cpp
458     platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp
459     platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
460     platform/network/cf/ResourceRequestCFNet.cpp
461     platform/network/cf/ResourceResponseCFNet.cpp
462     platform/network/cf/SocketStreamHandleCFNet.cpp
463     platform/network/cf/SynchronousLoaderClientCFNet.cpp
464     platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
465
466     platform/network/cocoa/CredentialCocoa.mm
467     platform/network/cocoa/ProtectionSpaceCocoa.mm
468     platform/network/cocoa/ResourceRequestCocoa.mm
469
470     platform/network/mac/AuthenticationMac.mm
471     platform/network/mac/BlobDataFileReferenceMac.mm
472     platform/network/mac/CertificateInfoMac.mm
473     platform/network/mac/CookieJarMac.mm
474     platform/network/mac/CookieStorageMac.mm
475     platform/network/mac/CredentialStorageMac.mm
476     platform/network/mac/FormDataStreamMac.mm
477     platform/network/mac/NetworkStateNotifierMac.cpp
478     platform/network/mac/ResourceErrorMac.mm
479     platform/network/mac/ResourceHandleMac.mm
480     platform/network/mac/ResourceRequestMac.mm
481     platform/network/mac/ResourceResponseMac.mm
482     platform/network/mac/SynchronousLoaderClient.mm
483     platform/network/mac/UTIUtilities.mm
484     platform/network/mac/WebCoreResourceHandleAsDelegate.mm
485     platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
486     platform/network/mac/WebCoreURLResponse.mm
487
488     platform/posix/FileSystemPOSIX.cpp
489     platform/posix/SharedBufferPOSIX.cpp
490
491     platform/text/cf/HyphenationCF.cpp
492
493     platform/text/mac/LocaleMac.mm
494     platform/text/mac/TextBoundaries.mm
495     platform/text/mac/TextBreakIteratorInternalICUMac.mm
496     platform/text/mac/TextCodecMac.cpp
497
498     rendering/RenderThemeMac.mm
499     rendering/TextAutoSizing.cpp
500 )
501
502 # FIXME: We do not need everything from all of these directories.
503 # Move some to WebCore_FORWARDING_HEADERS_FILES once people start actually maintaining this.
504 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
505     accessibility
506     bridge
507     contentextensions
508     crypto
509     css
510     dom
511     editing
512     fileapi
513     history
514     html
515     inspector
516     loader
517     page
518     platform
519     plugins
520     rendering
521     replay
522     storage
523     style
524     svg
525
526     Modules/geolocation
527     Modules/indexeddb
528     Modules/notifications
529     Modules/webdatabase
530
531     Modules/indexeddb/legacy
532
533     bindings/generic
534     bindings/js
535     bindings/objc
536
537     bridge/jsc
538
539     editing/cocoa
540     editing/mac
541
542     html/forms
543     html/parser
544     html/shadow
545
546     loader/appcache
547     loader/archive
548     loader/cache
549     loader/cocoa
550
551     loader/archive/cf
552
553     page/animation
554     page/cocoa
555     page/mac
556     page/scrolling
557
558     platform/animation
559     platform/audio
560     platform/cf
561     platform/cocoa
562     platform/graphics
563     platform/mac
564     platform/mediastream
565     platform/mock
566     platform/network
567     platform/sql
568     platform/text
569
570     platform/graphics/ca
571     platform/graphics/cocoa
572     platform/graphics/cg
573     platform/graphics/filters
574     platform/graphics/mac
575     platform/graphics/transforms
576
577     platform/network/cf
578     platform/network/cocoa
579     platform/network/mac
580
581     platform/spi/cf
582     platform/spi/cg
583     platform/spi/cocoa
584     platform/spi/mac
585
586     rendering/line
587     rendering/style
588
589     svg/graphics
590     svg/properties
591 )
592
593 set(WebCore_FORWARDING_HEADERS_FILES
594     Modules/webdatabase/DatabaseDetails.h
595
596     bridge/IdentifierRep.h
597     bridge/npruntime_impl.h
598     bridge/npruntime_internal.h
599
600     contentextensions/CompiledContentExtension.h
601
602     editing/EditAction.h
603     editing/EditingBehaviorTypes.h
604     editing/EditingBoundary.h
605     editing/FindOptions.h
606     editing/FrameSelection.h
607     editing/TextAffinity.h
608
609     editing/mac/TextAlternativeWithRange.h
610
611     history/BackForwardList.h
612     history/HistoryItem.h
613     history/PageCache.h
614
615     html/HTMLMediaElement.h
616
617     loader/appcache/ApplicationCacheStorage.h
618
619     loader/icon/IconDatabase.h
620     loader/icon/IconDatabaseBase.h
621     loader/icon/IconDatabaseClient.h
622
623     loader/mac/LoaderNSURLExtras.h
624
625     platform/DisplaySleepDisabler.h
626     platform/PlatformExportMacros.h
627
628     platform/audio/AudioHardwareListener.h
629
630     platform/cf/RunLoopObserver.h
631
632     platform/cocoa/MachSendRight.h
633
634     platform/graphics/cocoa/IOSurface.h
635
636     platform/graphics/transforms/AffineTransform.h
637
638     platform/mac/SoftLinking.h
639     platform/mac/WebCoreSystemInterface.h
640
641     platform/network/cf/CertificateInfo.h
642     platform/network/cf/ResourceResponse.h
643
644     platform/network/mac/AuthenticationMac.h
645
646     platform/sql/SQLiteDatabase.h
647
648     rendering/style/RenderStyleConstants.h
649 )
650
651 list(APPEND WebCore_IDL_FILES
652     Modules/plugins/QuickTimePluginReplacement.idl
653 )
654
655 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebCore_FORWARDING_HEADERS_FILES})
656
657 set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
658 set(ADDITIONAL_BINDINGS_DEPENDENCIES
659     ${WINDOW_CONSTRUCTORS_FILE}
660     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
661     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
662 )
663
664 set(ObjC_Bindings_IDL_FILES
665     css/CSSCharsetRule.idl
666     css/CSSFontFaceRule.idl
667     css/CSSImportRule.idl
668     css/CSSKeyframeRule.idl
669     css/CSSKeyframesRule.idl
670     css/CSSMediaRule.idl
671     css/CSSPageRule.idl
672     css/CSSPrimitiveValue.idl
673     css/CSSRule.idl
674     css/CSSRuleList.idl
675     css/CSSStyleDeclaration.idl
676     css/CSSStyleRule.idl
677     css/CSSStyleSheet.idl
678     css/CSSSupportsRule.idl
679     css/CSSUnknownRule.idl
680     css/CSSValue.idl
681     css/CSSValueList.idl
682     css/Counter.idl
683     css/MediaList.idl
684     css/RGBColor.idl
685     css/Rect.idl
686     css/StyleSheet.idl
687     css/StyleSheetList.idl
688     css/WebKitCSSFilterValue.idl
689     css/WebKitCSSRegionRule.idl
690     css/WebKitCSSTransformValue.idl
691
692     dom/Attr.idl
693     dom/BeforeLoadEvent.idl
694     dom/CDATASection.idl
695     dom/CharacterData.idl
696     dom/Comment.idl
697     dom/DOMImplementation.idl
698     dom/DOMNamedFlowCollection.idl
699     dom/Document.idl
700     dom/DocumentFragment.idl
701     dom/DocumentType.idl
702     dom/Element.idl
703     dom/Entity.idl
704     dom/EntityReference.idl
705     dom/Event.idl
706     dom/EventListener.idl
707     dom/EventTarget.idl
708     dom/KeyboardEvent.idl
709     dom/MessageEvent.idl
710     dom/MessagePort.idl
711     dom/MouseEvent.idl
712     dom/MutationEvent.idl
713     dom/NamedNodeMap.idl
714     dom/Node.idl
715     dom/NodeFilter.idl
716     dom/NodeIterator.idl
717     dom/NodeList.idl
718     dom/OverflowEvent.idl
719     dom/ProcessingInstruction.idl
720     dom/ProgressEvent.idl
721     dom/Range.idl
722     dom/Text.idl
723     dom/TextEvent.idl
724     dom/TreeWalker.idl
725     dom/UIEvent.idl
726     dom/WebKitNamedFlow.idl
727     dom/WheelEvent.idl
728
729     fileapi/Blob.idl
730     fileapi/File.idl
731     fileapi/FileList.idl
732
733     html/DOMTokenList.idl
734     html/HTMLAnchorElement.idl
735     html/HTMLAppletElement.idl
736     html/HTMLAreaElement.idl
737     html/HTMLBRElement.idl
738     html/HTMLBaseElement.idl
739     html/HTMLBaseFontElement.idl
740     html/HTMLBodyElement.idl
741     html/HTMLButtonElement.idl
742     html/HTMLCanvasElement.idl
743     html/HTMLCollection.idl
744     html/HTMLDListElement.idl
745     html/HTMLDirectoryElement.idl
746     html/HTMLDivElement.idl
747     html/HTMLDocument.idl
748     html/HTMLElement.idl
749     html/HTMLEmbedElement.idl
750     html/HTMLFieldSetElement.idl
751     html/HTMLFontElement.idl
752     html/HTMLFormElement.idl
753     html/HTMLFrameElement.idl
754     html/HTMLFrameSetElement.idl
755     html/HTMLHRElement.idl
756     html/HTMLHeadElement.idl
757     html/HTMLHeadingElement.idl
758     html/HTMLHtmlElement.idl
759     html/HTMLIFrameElement.idl
760     html/HTMLImageElement.idl
761     html/HTMLInputElement.idl
762     html/HTMLLIElement.idl
763     html/HTMLLabelElement.idl
764     html/HTMLLegendElement.idl
765     html/HTMLLinkElement.idl
766     html/HTMLMapElement.idl
767     html/HTMLMarqueeElement.idl
768     html/HTMLMenuElement.idl
769     html/HTMLMetaElement.idl
770     html/HTMLModElement.idl
771     html/HTMLOListElement.idl
772     html/HTMLObjectElement.idl
773     html/HTMLOptGroupElement.idl
774     html/HTMLOptionElement.idl
775     html/HTMLOptionsCollection.idl
776     html/HTMLParagraphElement.idl
777     html/HTMLParamElement.idl
778     html/HTMLPreElement.idl
779     html/HTMLQuoteElement.idl
780     html/HTMLScriptElement.idl
781     html/HTMLSelectElement.idl
782     html/HTMLStyleElement.idl
783     html/HTMLTableCaptionElement.idl
784     html/HTMLTableCellElement.idl
785     html/HTMLTableColElement.idl
786     html/HTMLTableElement.idl
787     html/HTMLTableRowElement.idl
788     html/HTMLTableSectionElement.idl
789     html/HTMLTextAreaElement.idl
790     html/HTMLTitleElement.idl
791     html/HTMLUListElement.idl
792     html/ValidityState.idl
793
794     page/AbstractView.idl
795     page/DOMSecurityPolicy.idl
796
797     xml/XPathExpression.idl
798     xml/XPathNSResolver.idl
799     xml/XPathResult.idl
800 )
801
802 set(ObjC_BINDINGS_NO_MM
803     AbstractView
804     AbstractWorker
805     ChildNode
806     DOMURLMediaSource
807     DOMURLMediaStream
808     DOMWindowIndexedDatabase
809     DOMWindowNotifications
810     DOMWindowSpeechSynthesis
811     DOMWindowWebDatabase
812     EventListener
813     EventTarget
814     GlobalEventHandlers
815     HTMLMediaElementMediaSession
816     HTMLMediaElementMediaStream
817     NavigatorBattery
818     NavigatorContentUtils
819     NavigatorGamepad
820     NavigatorGeolocation
821     NavigatorMediaDevices
822     NavigatorUserMedia
823     NavigatorVibration
824     NodeFilter
825     NonDocumentTypeChildNode
826     NonElementParentNode
827     ParentNode
828     URLUtils
829     WindowBase64
830     WindowEventHandlers
831     WindowTimers
832     WorkerGlobalScopeIndexedDatabase
833     WorkerGlobalScopeNotifications
834     XPathNSResolver
835 )
836
837 GENERATE_BINDINGS(WebCore_SOURCES
838     "${ObjC_Bindings_IDL_FILES}"
839     "${WEBCORE_DIR}"
840     "${IDL_INCLUDES}"
841     "${FEATURE_DEFINES_OBJECTIVE_C}"
842     ${DERIVED_SOURCES_WEBCORE_DIR} DOM ObjC mm
843     ${IDL_ATTRIBUTES_FILE}
844     ${SUPPLEMENTAL_DEPENDENCY_FILE}
845     ${ADDITIONAL_BINDINGS_DEPENDENCIES})