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