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