Progress towards CMake on 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}/loader/archive/cf"
6     "${WEBCORE_DIR}/loader/cf"
7     "${WEBCORE_DIR}/loader/mac"
8     "${WEBCORE_DIR}/page/cocoa"
9     "${WEBCORE_DIR}/page/mac"
10     "${WEBCORE_DIR}/platform/cf"
11     "${WEBCORE_DIR}/platform/cocoa"
12     "${WEBCORE_DIR}/platform/graphics/avfoundation"
13     "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
14     "${WEBCORE_DIR}/platform/graphics/avfoundation/objc"
15     "${WEBCORE_DIR}/platform/graphics/ca"
16     "${WEBCORE_DIR}/platform/graphics/ca/mac"
17     "${WEBCORE_DIR}/platform/graphics/cocoa"
18     "${WEBCORE_DIR}/platform/graphics/cg"
19     "${WEBCORE_DIR}/platform/graphics/opentype"
20     "${WEBCORE_DIR}/platform/graphics/mac"
21     "${WEBCORE_DIR}/platform/mac"
22     "${WEBCORE_DIR}/platform/network/cocoa"
23     "${WEBCORE_DIR}/platform/network/cf"
24     "${WEBCORE_DIR}/platform/network/mac"
25     "${WEBCORE_DIR}/platform/text/cf"
26     "${WEBCORE_DIR}/platform/text/mac"
27     "${WEBCORE_DIR}/platform/spi/cf"
28     "${WEBCORE_DIR}/platform/spi/cg"
29     "${WEBCORE_DIR}/platform/spi/cocoa"
30     "${WEBCORE_DIR}/platform/spi/mac"
31     "${WEBCORE_DIR}/plugins/mac"
32
33     "/usr/include/libxslt"
34     "/usr/include/libxml2"
35 )
36
37 list(APPEND WebCore_SOURCES
38     accessibility/mac/AXObjectCacheMac.mm
39     accessibility/mac/AccessibilityObjectMac.mm
40     accessibility/mac/WebAccessibilityObjectWrapperBase.mm
41     accessibility/mac/WebAccessibilityObjectWrapperMac.mm
42
43     loader/archive/cf/LegacyWebArchive.cpp
44     loader/archive/cf/LegacyWebArchiveMac.mm
45
46     loader/cf/ResourceLoaderCFNet.cpp
47     loader/cf/SubresourceLoaderCF.cpp
48
49     page/cocoa/UserAgent.mm
50
51     page/mac/ChromeMac.mm
52     page/mac/DragControllerMac.mm
53     page/mac/EventHandlerMac.mm
54     page/mac/PageMac.cpp
55     page/mac/SettingsMac.mm
56     page/mac/UserAgentMac.mm
57
58     platform/cocoa/DisplaySleepDisablerCocoa.cpp
59     platform/cocoa/KeyEventCocoa.mm
60     platform/cocoa/MemoryPressureHandlerCocoa.mm
61     platform/cocoa/SystemVersion.mm
62     platform/cocoa/TelephoneNumberDetectorCocoa.cpp
63
64     platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
65     platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
66     platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
67     platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
68
69     platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
70     platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
71     platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
72     platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
73     platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
74     platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm
75     platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
76     platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
77     platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
78     platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
79     platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
80     platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
81     platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm
82
83     platform/graphics/ca/GraphicsLayerCA.cpp
84     platform/graphics/ca/LayerFlushScheduler.cpp
85     platform/graphics/ca/LayerPool.cpp
86     platform/graphics/ca/PlatformCALayer.cpp
87     platform/graphics/ca/TileController.cpp
88     platform/graphics/ca/TileCoverageMap.cpp
89     platform/graphics/ca/TileGrid.cpp
90     platform/graphics/ca/TransformationMatrixCA.cpp
91
92     platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp
93     platform/graphics/ca/mac/PlatformCAAnimationMac.mm
94     platform/graphics/ca/mac/PlatformCAFiltersMac.mm
95     platform/graphics/ca/mac/PlatformCALayerMac.mm
96     platform/graphics/ca/mac/WebTiledBackingLayer.mm
97
98     platform/graphics/opentype/OpenTypeMathData.cpp
99
100     platform/mac/BlockExceptions.mm
101     platform/mac/ContextMenuItemMac.mm
102     platform/mac/ContextMenuMac.mm
103     platform/mac/CursorMac.mm
104     platform/mac/DragDataMac.mm
105     platform/mac/DragImageMac.mm
106     platform/mac/EventLoopMac.mm
107     platform/mac/FileSystemMac.mm
108     platform/mac/HIDGamepad.cpp
109     platform/mac/HIDGamepadProvider.cpp
110     platform/mac/KeyEventMac.mm
111     platform/mac/KillRingMac.mm
112     platform/mac/Language.mm
113     platform/mac/LocalCurrentGraphicsContext.mm
114     platform/mac/LoggingMac.mm
115     platform/mac/MIMETypeRegistryMac.mm
116     platform/mac/NSScrollerImpDetails.mm
117     platform/mac/PasteboardMac.mm
118     platform/mac/PlatformClockCA.cpp
119     platform/mac/PlatformClockCM.mm
120     platform/mac/PlatformEventFactoryMac.mm
121     platform/mac/PlatformPasteboardMac.mm
122     platform/mac/PlatformScreenMac.mm
123     platform/mac/PlatformSpeechSynthesisMac.mm
124     platform/mac/PlatformSpeechSynthesizerMac.mm
125     platform/mac/PublicSuffixMac.mm
126     platform/mac/SSLKeyGeneratorMac.cpp
127     platform/mac/ScrollAnimatorMac.mm
128     platform/mac/ScrollViewMac.mm
129     platform/mac/ScrollbarThemeMac.mm
130     platform/mac/SerializedPlatformRepresentationMac.mm
131     platform/mac/SharedBufferMac.mm
132     platform/mac/SharedTimerMac.mm
133     platform/mac/SoundMac.mm
134     platform/mac/SuddenTermination.mm
135     platform/mac/SystemSleepListenerMac.mm
136     platform/mac/ThemeMac.mm
137     platform/mac/ThreadCheck.mm
138     platform/mac/URLMac.mm
139     platform/mac/UserActivityMac.mm
140     platform/mac/WebCoreFullScreenPlaceholderView.mm
141     platform/mac/WebCoreFullScreenWarningView.mm
142     platform/mac/WebCoreFullScreenWindow.mm
143     platform/mac/WebCoreNSStringExtras.mm
144     platform/mac/WebCoreNSURLExtras.mm
145     platform/mac/WebCoreObjCExtras.mm
146     platform/mac/WebCoreSystemInterface.mm
147     platform/mac/WebCoreView.m
148     platform/mac/WebNSAttributedStringExtras.mm
149     platform/mac/WebVideoFullscreenController.mm
150     platform/mac/WebVideoFullscreenHUDWindowController.mm
151     platform/mac/WebWindowAnimation.mm
152     platform/mac/WidgetMac.mm
153
154     platform/network/cocoa/CredentialCocoa.mm
155     platform/network/cocoa/ProtectionSpaceCocoa.mm
156     platform/network/cocoa/ResourceRequestCocoa.mm
157
158     platform/network/cf/AuthenticationCF.cpp
159     platform/network/cf/CookieJarCFNet.cpp
160     platform/network/cf/CookieStorageCFNet.cpp
161     platform/network/cf/CredentialStorageCFNet.cpp
162     platform/network/cf/DNSCFNet.cpp
163     platform/network/cf/FormDataStreamCFNet.cpp
164     platform/network/cf/LoaderRunLoopCF.cpp
165     platform/network/cf/NetworkStorageSessionCFNet.cpp
166     platform/network/cf/ProxyServerCFNet.cpp
167     platform/network/cf/ResourceErrorCF.cpp
168     platform/network/cf/ResourceHandleCFNet.cpp
169     platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp
170     platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
171     platform/network/cf/ResourceRequestCFNet.cpp
172     platform/network/cf/ResourceResponseCFNet.cpp
173     platform/network/cf/SocketStreamHandleCFNet.cpp
174     platform/network/cf/SynchronousLoaderClientCFNet.cpp
175     platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
176
177     platform/network/mac/AuthenticationMac.mm
178     platform/network/mac/BlobDataFileReferenceMac.mm
179     platform/network/mac/CertificateInfoMac.mm
180     platform/network/mac/CookieJarMac.mm
181     platform/network/mac/CookieStorageMac.mm
182     platform/network/mac/CredentialStorageMac.mm
183     platform/network/mac/FormDataStreamMac.mm
184     platform/network/mac/NetworkStateNotifierMac.cpp
185     platform/network/mac/ResourceErrorMac.mm
186     platform/network/mac/ResourceHandleMac.mm
187     platform/network/mac/ResourceRequestMac.mm
188     platform/network/mac/ResourceResponseMac.mm
189     platform/network/mac/SynchronousLoaderClient.mm
190     platform/network/mac/UTIUtilities.mm
191     platform/network/mac/WebCoreResourceHandleAsDelegate.mm
192     platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
193     platform/network/mac/WebCoreURLResponse.mm
194
195     platform/text/cf/HyphenationCF.cpp
196
197     platform/text/mac/LocaleMac.mm
198     platform/text/mac/TextBoundaries.mm
199     platform/text/mac/TextBreakIteratorInternalICUMac.mm
200     platform/text/mac/TextCodecMac.cpp
201 )
202
203 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
204     html
205     bindings/objc
206     platform
207     platform/mac
208     platform/network/cf
209 )
210
211 set(WebCore_FORWARDING_HEADERS_FILES
212     html/HTMLMediaElement.h
213     bindings/objc/WebKitAvailability.h
214     platform/DisplaySleepDisabler.h
215     platform/mac/SoftLinking.h
216     platform/network/cf/ResourceResponse.h
217     platform/spi/cg/CoreGraphicsSPI.h
218 )
219
220 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebCore_FORWARDING_HEADERS_FILES})
221
222 set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
223 set(ADDITIONAL_BINDINGS_DEPENDENCIES
224     ${WINDOW_CONSTRUCTORS_FILE}
225     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
226     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
227 )
228 GENERATE_BINDINGS(WebCore_SOURCES
229     "${WebCore_NON_SVG_IDL_FILES}"
230     "${WEBCORE_DIR}"
231     "${IDL_INCLUDES}"
232     "${FEATURE_DEFINES_OBJECTIVE_C}"
233     ${DERIVED_SOURCES_WEBCORE_DIR} DOM ObjC mm
234     ${IDL_ATTRIBUTES_FILE}
235     ${SUPPLEMENTAL_DEPENDENCY_FILE}
236     ${ADDITIONAL_BINDINGS_DEPENDENCIES})