Progress towards CMake on Windows and Mac.
[WebKit-https.git] / Source / WebCore / PlatformMac.cmake
1 list(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${WEBCORE_DIR}/accessibility/mac"
3     "${WEBCORE_DIR}/bindings/objc"
4     "${WEBCORE_DIR}/bridge/objc"
5     "${WEBCORE_DIR}/editing/mac"
6     "${WEBCORE_DIR}/icu"
7     "${WEBCORE_DIR}/loader/archive/cf"
8     "${WEBCORE_DIR}/loader/cf"
9     "${WEBCORE_DIR}/loader/mac"
10     "${WEBCORE_DIR}/page/cocoa"
11     "${WEBCORE_DIR}/page/mac"
12     "${WEBCORE_DIR}/platform/audio/mac"
13     "${WEBCORE_DIR}/platform/cf"
14     "${WEBCORE_DIR}/platform/cocoa"
15     "${WEBCORE_DIR}/platform/graphics/avfoundation"
16     "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
17     "${WEBCORE_DIR}/platform/graphics/avfoundation/objc"
18     "${WEBCORE_DIR}/platform/graphics/ca"
19     "${WEBCORE_DIR}/platform/graphics/ca/mac"
20     "${WEBCORE_DIR}/platform/graphics/cocoa"
21     "${WEBCORE_DIR}/platform/graphics/cg"
22     "${WEBCORE_DIR}/platform/graphics/opentype"
23     "${WEBCORE_DIR}/platform/graphics/opengl"
24     "${WEBCORE_DIR}/platform/graphics/mac"
25     "${WEBCORE_DIR}/platform/mac"
26     "${WEBCORE_DIR}/platform/network/cocoa"
27     "${WEBCORE_DIR}/platform/network/cf"
28     "${WEBCORE_DIR}/platform/network/mac"
29     "${WEBCORE_DIR}/platform/text/cf"
30     "${WEBCORE_DIR}/platform/text/mac"
31     "${WEBCORE_DIR}/platform/spi/cf"
32     "${WEBCORE_DIR}/platform/spi/cg"
33     "${WEBCORE_DIR}/platform/spi/cocoa"
34     "${WEBCORE_DIR}/platform/spi/mac"
35     "${WEBCORE_DIR}/plugins/mac"
36
37     "/usr/include/libxslt"
38     "/usr/include/libxml2"
39 )
40
41 list(APPEND WebCore_SOURCES
42     accessibility/mac/AXObjectCacheMac.mm
43     accessibility/mac/AccessibilityObjectMac.mm
44     accessibility/mac/WebAccessibilityObjectWrapperBase.mm
45     accessibility/mac/WebAccessibilityObjectWrapperMac.mm
46
47     crypto/CommonCryptoUtilities.cpp
48     crypto/CryptoAlgorithm.cpp
49     crypto/CryptoAlgorithmDescriptionBuilder.cpp
50     crypto/CryptoAlgorithmRegistry.cpp
51     crypto/CryptoKey.cpp
52     crypto/CryptoKeyPair.cpp
53     crypto/SubtleCrypto.cpp
54
55     loader/archive/cf/LegacyWebArchive.cpp
56     loader/archive/cf/LegacyWebArchiveMac.mm
57
58     loader/cf/ResourceLoaderCFNet.cpp
59     loader/cf/SubresourceLoaderCF.cpp
60
61     page/cocoa/UserAgent.mm
62
63     page/mac/ChromeMac.mm
64     page/mac/DragControllerMac.mm
65     page/mac/EventHandlerMac.mm
66     page/mac/PageMac.cpp
67     page/mac/SettingsMac.mm
68     page/mac/UserAgentMac.mm
69
70     platform/LocalizedStrings.cpp
71
72     platform/audio/mac/AudioBusMac.mm
73     platform/audio/mac/AudioDestinationMac.cpp
74     platform/audio/mac/AudioFileReaderMac.cpp
75     platform/audio/mac/AudioHardwareListenerMac.cpp
76     platform/audio/mac/AudioSessionMac.cpp
77     platform/audio/mac/CARingBuffer.cpp
78     platform/audio/mac/FFTFrameMac.cpp
79     platform/audio/mac/MediaSessionManagerMac.cpp
80
81     platform/cf/CFURLExtras.cpp
82     platform/cf/CoreMediaSoftLink.cpp
83     platform/cf/FileSystemCF.cpp
84     platform/cf/MediaAccessibilitySoftLink.cpp
85     platform/cf/RunLoopObserver.cpp
86     platform/cf/SharedBufferCF.cpp
87     platform/cf/SharedTimerCF.cpp
88     platform/cf/URLCF.cpp
89
90     platform/cocoa/DisplaySleepDisablerCocoa.cpp
91     platform/cocoa/KeyEventCocoa.mm
92     platform/cocoa/MemoryPressureHandlerCocoa.mm
93     platform/cocoa/SystemVersion.mm
94     platform/cocoa/TelephoneNumberDetectorCocoa.cpp
95
96     platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
97     platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
98     platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
99     platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
100     platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
101     platform/graphics/avfoundation/MediaPlaybackTargetMac.mm
102     platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
103     platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm
104     platform/graphics/avfoundation/MediaTimeAVFoundation.cpp
105
106     platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
107     platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
108     platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
109     platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
110     platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
111     platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm
112     platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
113     platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
114     platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
115     platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
116     platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
117     platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
118     platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm
119
120     platform/graphics/ca/GraphicsLayerCA.cpp
121     platform/graphics/ca/LayerFlushScheduler.cpp
122     platform/graphics/ca/LayerPool.cpp
123     platform/graphics/ca/PlatformCALayer.cpp
124     platform/graphics/ca/TileController.cpp
125     platform/graphics/ca/TileCoverageMap.cpp
126     platform/graphics/ca/TileGrid.cpp
127     platform/graphics/ca/TransformationMatrixCA.cpp
128
129     platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp
130     platform/graphics/ca/mac/PlatformCAAnimationMac.mm
131     platform/graphics/ca/mac/PlatformCAFiltersMac.mm
132     platform/graphics/ca/mac/PlatformCALayerMac.mm
133     platform/graphics/ca/mac/WebTiledBackingLayer.mm
134
135     platform/graphics/cg/BitmapImageCG.cpp
136     platform/graphics/cg/ColorCG.cpp
137     platform/graphics/cg/FloatPointCG.cpp
138     platform/graphics/cg/FloatRectCG.cpp
139     platform/graphics/cg/FloatSizeCG.cpp
140     platform/graphics/cg/GradientCG.cpp
141     platform/graphics/cg/GraphicsContext3DCG.cpp
142     platform/graphics/cg/GraphicsContextCG.cpp
143     platform/graphics/cg/IOSurfacePool.cpp
144     platform/graphics/cg/ImageBufferCG.cpp
145     platform/graphics/cg/ImageBufferDataCG.cpp
146     platform/graphics/cg/ImageCG.cpp
147     platform/graphics/cg/ImageSourceCG.cpp
148     platform/graphics/cg/ImageSourceCGMac.mm
149     platform/graphics/cg/ImageSourceCGWin.cpp
150     platform/graphics/cg/IntPointCG.cpp
151     platform/graphics/cg/IntRectCG.cpp
152     platform/graphics/cg/IntSizeCG.cpp
153     platform/graphics/cg/PDFDocumentImage.cpp
154     platform/graphics/cg/PathCG.cpp
155     platform/graphics/cg/PatternCG.cpp
156     platform/graphics/cg/SubimageCacheWithTimer.cpp
157     platform/graphics/cg/TransformationMatrixCG.cpp
158
159     platform/graphics/mac/ColorMac.mm
160     platform/graphics/mac/ComplexTextController.cpp
161     platform/graphics/mac/ComplexTextControllerCoreText.mm
162     platform/graphics/mac/DisplayRefreshMonitorMac.cpp
163     platform/graphics/mac/FloatPointMac.mm
164     platform/graphics/mac/FloatRectMac.mm
165     platform/graphics/mac/FloatSizeMac.mm
166     platform/graphics/mac/FontCacheMac.mm
167     platform/graphics/mac/FontCustomPlatformData.cpp
168     platform/graphics/mac/GlyphPageMac.cpp
169     platform/graphics/mac/GraphicsContext3DMac.mm
170     platform/graphics/mac/GraphicsContextMac.mm
171     platform/graphics/mac/IconMac.mm
172     platform/graphics/mac/ImageMac.mm
173     platform/graphics/mac/IntPointMac.mm
174     platform/graphics/mac/IntRectMac.mm
175     platform/graphics/mac/IntSizeMac.mm
176     platform/graphics/mac/MediaTimeQTKit.mm
177     platform/graphics/mac/PDFDocumentImageMac.mm
178     platform/graphics/mac/SimpleFontDataCoreText.cpp
179     platform/graphics/mac/WebGLLayer.mm
180     platform/graphics/mac/WebLayer.mm
181
182     platform/graphics/opengl/Extensions3DOpenGL.cpp
183     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
184     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
185     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
186     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
187
188     platform/graphics/opentype/OpenTypeMathData.cpp
189
190     platform/mac/BlockExceptions.mm
191     platform/mac/ContextMenuItemMac.mm
192     platform/mac/ContextMenuMac.mm
193     platform/mac/CursorMac.mm
194     platform/mac/DragDataMac.mm
195     platform/mac/DragImageMac.mm
196     platform/mac/EventLoopMac.mm
197     platform/mac/FileSystemMac.mm
198     platform/mac/HIDGamepad.cpp
199     platform/mac/HIDGamepadProvider.cpp
200     platform/mac/KeyEventMac.mm
201     platform/mac/KillRingMac.mm
202     platform/mac/Language.mm
203     platform/mac/LocalCurrentGraphicsContext.mm
204     platform/mac/LoggingMac.mm
205     platform/mac/MIMETypeRegistryMac.mm
206     platform/mac/NSScrollerImpDetails.mm
207     platform/mac/PasteboardMac.mm
208     platform/mac/PlatformClockCA.cpp
209     platform/mac/PlatformClockCM.mm
210     platform/mac/PlatformEventFactoryMac.mm
211     platform/mac/PlatformPasteboardMac.mm
212     platform/mac/PlatformScreenMac.mm
213     platform/mac/PlatformSpeechSynthesisMac.mm
214     platform/mac/PlatformSpeechSynthesizerMac.mm
215     platform/mac/PublicSuffixMac.mm
216     platform/mac/SSLKeyGeneratorMac.cpp
217     platform/mac/ScrollAnimatorMac.mm
218     platform/mac/ScrollViewMac.mm
219     platform/mac/ScrollbarThemeMac.mm
220     platform/mac/SerializedPlatformRepresentationMac.mm
221     platform/mac/SharedBufferMac.mm
222     platform/mac/SoundMac.mm
223     platform/mac/SuddenTermination.mm
224     platform/mac/SystemSleepListenerMac.mm
225     platform/mac/ThemeMac.mm
226     platform/mac/ThreadCheck.mm
227     platform/mac/URLMac.mm
228     platform/mac/UserActivityMac.mm
229     platform/mac/WebCoreFullScreenPlaceholderView.mm
230     platform/mac/WebCoreFullScreenWarningView.mm
231     platform/mac/WebCoreFullScreenWindow.mm
232     platform/mac/WebCoreNSStringExtras.mm
233     platform/mac/WebCoreNSURLExtras.mm
234     platform/mac/WebCoreObjCExtras.mm
235     platform/mac/WebCoreSystemInterface.mm
236     platform/mac/WebNSAttributedStringExtras.mm
237     platform/mac/WebVideoFullscreenController.mm
238     platform/mac/WebVideoFullscreenHUDWindowController.mm
239     platform/mac/WebWindowAnimation.mm
240     platform/mac/WidgetMac.mm
241
242     platform/network/cocoa/CredentialCocoa.mm
243     platform/network/cocoa/ProtectionSpaceCocoa.mm
244     platform/network/cocoa/ResourceRequestCocoa.mm
245
246     platform/network/cf/AuthenticationCF.cpp
247     platform/network/cf/CookieJarCFNet.cpp
248     platform/network/cf/CookieStorageCFNet.cpp
249     platform/network/cf/CredentialStorageCFNet.cpp
250     platform/network/cf/DNSCFNet.cpp
251     platform/network/cf/FormDataStreamCFNet.cpp
252     platform/network/cf/LoaderRunLoopCF.cpp
253     platform/network/cf/NetworkStorageSessionCFNet.cpp
254     platform/network/cf/ProxyServerCFNet.cpp
255     platform/network/cf/ResourceErrorCF.cpp
256     platform/network/cf/ResourceHandleCFNet.cpp
257     platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp
258     platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
259     platform/network/cf/ResourceRequestCFNet.cpp
260     platform/network/cf/ResourceResponseCFNet.cpp
261     platform/network/cf/SocketStreamHandleCFNet.cpp
262     platform/network/cf/SynchronousLoaderClientCFNet.cpp
263     platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
264
265     platform/network/mac/AuthenticationMac.mm
266     platform/network/mac/BlobDataFileReferenceMac.mm
267     platform/network/mac/CertificateInfoMac.mm
268     platform/network/mac/CookieJarMac.mm
269     platform/network/mac/CookieStorageMac.mm
270     platform/network/mac/CredentialStorageMac.mm
271     platform/network/mac/FormDataStreamMac.mm
272     platform/network/mac/NetworkStateNotifierMac.cpp
273     platform/network/mac/ResourceErrorMac.mm
274     platform/network/mac/ResourceHandleMac.mm
275     platform/network/mac/ResourceRequestMac.mm
276     platform/network/mac/ResourceResponseMac.mm
277     platform/network/mac/SynchronousLoaderClient.mm
278     platform/network/mac/UTIUtilities.mm
279     platform/network/mac/WebCoreResourceHandleAsDelegate.mm
280     platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
281     platform/network/mac/WebCoreURLResponse.mm
282
283     platform/posix/FileSystemPOSIX.cpp
284     platform/posix/SharedBufferPOSIX.cpp
285
286     platform/text/cf/HyphenationCF.cpp
287
288     platform/text/mac/LocaleMac.mm
289     platform/text/mac/TextBoundaries.mm
290     platform/text/mac/TextBreakIteratorInternalICUMac.mm
291     platform/text/mac/TextCodecMac.cpp
292 )
293
294 # FIXME: We do not need everything from all of these directories.
295 # Move some to WebCore_FORWARDING_HEADERS_FILES once people start actually maintaining this.
296 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
297     accessibility
298     bindings/js
299     bindings/objc
300     bindings/generic
301     bridge
302     contentextensions
303     crypto
304     css
305     dom
306     editing
307     editing/cocoa
308     editing/mac
309     fileapi
310     history
311     html
312     html/forms
313     html/parser
314     html/shadow
315     inspector
316     loader
317
318     loader/appcache
319     loader/archive
320     loader/archive/cf
321     loader/cache
322     Modules/indexeddb
323     Modules/geolocation
324     Modules/notifications
325     Modules/webdatabase
326     page
327     platform
328     plugins
329     rendering
330     replay
331     storage
332     style
333     svg
334
335     page/animation
336     page/mac
337     page/scrolling
338
339     platform/animation
340     platform/audio
341     platform/graphics
342     platform/mac
343     platform/mock
344     platform/network
345     platform/sql
346     platform/text
347
348     platform/graphics/ca
349     platform/graphics/cg
350     platform/graphics/filters
351     platform/graphics/mac
352     platform/graphics/transforms
353
354     platform/network/cf
355     platform/network/cocoa
356     platform/network/mac
357
358     platform/spi/cf
359     platform/spi/cg
360     platform/spi/cocoa
361     platform/spi/mac
362
363     rendering/line
364     rendering/style
365
366     svg/graphics
367     svg/properties
368 )
369
370 set(WebCore_FORWARDING_HEADERS_FILES
371     bridge/IdentifierRep.h
372     bridge/npruntime_impl.h
373     bridge/npruntime_internal.h
374
375     contentextensions/CompiledContentExtension.h
376
377     editing/EditAction.h
378     editing/EditingBehaviorTypes.h
379     editing/EditingBoundary.h
380     editing/FindOptions.h
381     editing/FrameSelection.h
382     editing/TextAffinity.h
383
384     editing/mac/TextAlternativeWithRange.h
385
386     history/BackForwardList.h
387     history/HistoryItem.h
388     history/PageCache.h
389
390     html/HTMLMediaElement.h
391
392     loader/appcache/ApplicationCacheStorage.h
393
394     loader/icon/IconDatabase.h
395     loader/icon/IconDatabaseBase.h
396     loader/icon/IconDatabaseClient.h
397
398     loader/mac/LoaderNSURLExtras.h
399
400     Modules/webdatabase/DatabaseDetails.h
401
402     platform/DisplaySleepDisabler.h
403     platform/PlatformExportMacros.h
404
405     platform/audio/AudioHardwareListener.h
406
407     platform/cf/RunLoopObserver.h
408
409     platform/cocoa/MachSendRight.h
410
411     platform/graphics/cocoa/IOSurface.h
412
413     platform/graphics/transforms/AffineTransform.h
414
415     platform/mac/SoftLinking.h
416     platform/mac/WebCoreSystemInterface.h
417
418     platform/network/mac/AuthenticationMac.h
419
420     platform/network/cf/CertificateInfo.h
421     platform/network/cf/ResourceResponse.h
422
423     platform/sql/SQLiteDatabase.h
424
425     rendering/style/RenderStyleConstants.h
426 )
427
428 set(OBJC_BINDINGS_IDL_FILES
429     dom/EventListener.idl
430     ${WebCore_NON_SVG_IDL_FILES}
431 )
432
433 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebCore_FORWARDING_HEADERS_FILES})
434
435 set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
436 set(ADDITIONAL_BINDINGS_DEPENDENCIES
437     ${WINDOW_CONSTRUCTORS_FILE}
438     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
439     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
440 )
441 GENERATE_BINDINGS(OBJC_BINDINGS
442     "${OBJC_BINDINGS_IDL_FILES}"
443     "${WEBCORE_DIR}"
444     "${IDL_INCLUDES}"
445     "${FEATURE_DEFINES_OBJECTIVE_C}"
446     ${DERIVED_SOURCES_WEBCORE_DIR} DOM ObjC mm
447     ${IDL_ATTRIBUTES_FILE}
448     ${SUPPLEMENTAL_DEPENDENCY_FILE}
449     ${ADDITIONAL_BINDINGS_DEPENDENCIES})
450 # FIXME: Add the needed ObjC bindings to WebCore_SOURCES.