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