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