Source/WebCore:
[WebKit-https.git] / Source / WebCore / PlatformAppleWin.cmake
1 add_definitions(-DQUARTZCORE_DLL -DDISABLE_COREIMAGE -DDISABLE_FRONTEND -DDISABLE_IOSURFACE -DDISABLE_RENDERSERVER
2     -DDISABLE_3D_TRANSFORMS -DWEBCORE_CONTEXT_MENUS -DPSAPI_VERSION=1)
3
4 list(APPEND WebCore_INCLUDE_DIRECTORIES
5     "${WEBKIT_LIBRARIES_DIR}/include"
6     "${WEBCORE_DIR}/loader/archive/cf"
7     "${WEBCORE_DIR}/platform/graphics/avfoundation"
8     "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
9     "${WEBCORE_DIR}/platform/graphics/ca"
10     "${WEBCORE_DIR}/platform/graphics/ca/win"
11     "${WEBCORE_DIR}/platform/graphics/cg"
12     "${WEBCORE_DIR}/platform/network/cf"
13 )
14
15 if (${USE_DIRECT2D})
16     list(APPEND WebCore_INCLUDE_DIRECTORIES
17         "${WEBCORE_DIR}/platform/graphics/win"
18     )
19 else ()
20     list(APPEND WebCore_INCLUDE_DIRECTORIES
21         "${WEBCORE_DIR}/platform/graphics/avfoundation"
22         "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
23         "${WEBCORE_DIR}/platform/graphics/ca"
24         "${WEBCORE_DIR}/platform/graphics/ca/win"
25         "${WEBCORE_DIR}/platform/graphics/cg"
26     )
27 endif ()
28
29 list(APPEND WebCore_SOURCES
30     loader/cf/ResourceLoaderCFNet.cpp
31
32     page/CaptionUserPreferencesMediaAF.cpp
33
34     platform/cf/MediaAccessibilitySoftLink.cpp
35
36     platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
37     platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
38     platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
39     platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp
40
41     platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp
42     platform/graphics/avfoundation/cf/InbandTextTrackPrivateLegacyAVCF.cpp
43     platform/graphics/avfoundation/cf/InbandTextTrackPrivateAVCF.cpp
44     platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp
45     platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp
46
47     platform/graphics/win/FontCustomPlatformData.cpp
48
49     platform/network/cf/AuthenticationCF.cpp
50     platform/network/cf/CookieStorageCFNet.cpp
51     platform/network/cf/CredentialStorageCFNet.cpp
52     platform/network/cf/DNSResolveQueueCFNet.cpp
53     platform/network/cf/FormDataStreamCFNet.cpp
54     platform/network/cf/LoaderRunLoopCF.cpp
55     platform/network/cf/NetworkStorageSessionCFNet.cpp
56     platform/network/cf/ProtectionSpaceCFNet.cpp
57     platform/network/cf/ProxyServerCFNet.cpp
58     platform/network/cf/ResourceErrorCF.cpp
59     platform/network/cf/ResourceHandleCFNet.cpp
60     platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp
61     platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
62     platform/network/cf/ResourceRequestCFNet.cpp
63     platform/network/cf/ResourceResponseCFNet.cpp
64     platform/network/cf/SocketStreamHandleImplCFNet.cpp
65     platform/network/cf/SynchronousLoaderClientCFNet.cpp
66 )
67
68 if (${USE_DIRECT2D})
69     list(APPEND WebCore_SOURCES
70         page/win/FrameWinDirect2D.cpp
71
72         platform/graphics/win/FontCascadeDirect2D.cpp
73         platform/graphics/win/FontPlatformDataDirect2D.cpp
74         platform/graphics/win/GlyphPageTreeNodeDirect2D.cpp
75         platform/graphics/win/GradientDirect2D.cpp
76         platform/graphics/win/GraphicsContextDirect2D.cpp
77         platform/graphics/win/GraphicsLayerDirect2D.cpp
78         platform/graphics/win/ImageBufferDataDirect2D.cpp
79         platform/graphics/win/ImageBufferDirect2D.cpp
80         platform/graphics/win/ImageDecoderDirect2D.cpp
81         platform/graphics/win/ImageDirect2D.cpp
82         platform/graphics/win/NativeImageDirect2D.cpp
83         platform/graphics/win/PathDirect2D.cpp
84         platform/graphics/win/PatternDirect2D.cpp
85         platform/graphics/win/SimpleFontDataDirect2D.cpp
86         platform/graphics/win/TextAnalyzerHelper.cpp
87
88         platform/win/DragImageDirect2D.cpp
89     )
90 else ()
91     list(APPEND WebCore_SOURCES
92         page/win/FrameCGWin.cpp
93
94         platform/graphics/ca/GraphicsLayerCA.cpp
95         platform/graphics/ca/LayerFlushScheduler.cpp
96         platform/graphics/ca/LayerPool.cpp
97         platform/graphics/ca/PlatformCALayer.cpp
98         platform/graphics/ca/TileController.cpp
99         platform/graphics/ca/TileCoverageMap.cpp
100         platform/graphics/ca/TileGrid.cpp
101         platform/graphics/ca/TransformationMatrixCA.cpp
102
103         platform/graphics/ca/win/CACFLayerTreeHost.cpp
104         platform/graphics/ca/win/LayerChangesFlusher.cpp
105         platform/graphics/ca/win/PlatformCAAnimationWin.cpp
106         platform/graphics/ca/win/PlatformCAFiltersWin.cpp
107         platform/graphics/ca/win/PlatformCALayerWin.cpp
108         platform/graphics/ca/win/PlatformCALayerWinInternal.cpp
109         platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp
110         platform/graphics/ca/win/WebTiledBackingLayerWin.cpp
111
112         platform/graphics/cg/ColorCG.cpp
113         platform/graphics/cg/FloatPointCG.cpp
114         platform/graphics/cg/FloatRectCG.cpp
115         platform/graphics/cg/FloatSizeCG.cpp
116         platform/graphics/cg/GradientCG.cpp
117         platform/graphics/cg/GraphicsContext3DCG.cpp
118         platform/graphics/cg/GraphicsContextCG.cpp
119         platform/graphics/cg/IOSurfacePool.cpp
120         platform/graphics/cg/ImageBufferCG.cpp
121         platform/graphics/cg/ImageBufferDataCG.cpp
122         platform/graphics/cg/ImageDecoderCG.cpp
123         platform/graphics/cg/ImageSourceCGWin.cpp
124         platform/graphics/cg/IntPointCG.cpp
125         platform/graphics/cg/IntRectCG.cpp
126         platform/graphics/cg/IntSizeCG.cpp
127         platform/graphics/cg/NativeImageCG.cpp
128         platform/graphics/cg/PDFDocumentImage.cpp
129         platform/graphics/cg/PathCG.cpp
130         platform/graphics/cg/PatternCG.cpp
131         platform/graphics/cg/SubimageCacheWithTimer.cpp
132         platform/graphics/cg/TransformationMatrixCG.cpp
133         platform/graphics/cg/UTIRegistry.cpp
134
135         platform/graphics/opentype/OpenTypeCG.cpp
136
137         platform/graphics/win/FontCGWin.cpp
138         platform/graphics/win/FontPlatformDataCGWin.cpp
139         platform/graphics/win/GlyphPageTreeNodeCGWin.cpp
140         platform/graphics/win/GraphicsContextCGWin.cpp
141         platform/graphics/win/ImageCGWin.cpp
142         platform/graphics/win/SimpleFontDataCGWin.cpp
143
144         platform/win/DragImageCGWin.cpp
145     )
146 endif ()
147
148 list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
149     platform/network/cf
150 )
151
152 if (${USE_DIRECT2D})
153     list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
154         platform/graphics/win
155     )
156 else ()
157     list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
158         platform/graphics/ca
159         platform/graphics/cg
160
161         platform/graphics/ca/win
162
163         platform/network/cf
164     )
165 endif ()