763241635f9d8a1775035af58b1d1efe047363a2
[WebKit-https.git] / Source / WebCore / PlatformFTW.cmake
1 include(platform/Curl.cmake)
2 include(platform/ImageDecoders.cmake)
3 include(platform/TextureMapper.cmake)
4
5 list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
6     "${DirectX_INCLUDE_DIRS}"
7     "${WEBKIT_LIBRARIES_DIR}/include"
8     "${WEBCORE_DIR}/accessibility/win"
9     "${WEBCORE_DIR}/page/win"
10     "${WEBCORE_DIR}/platform/graphics/egl"
11     "${WEBCORE_DIR}/platform/graphics/opengl"
12     "${WEBCORE_DIR}/platform/graphics/opentype"
13     "${WEBCORE_DIR}/platform/graphics/win"
14     "${WEBCORE_DIR}/platform/mediacapabilities"
15     "${WEBCORE_DIR}/platform/network/win"
16     "${WEBCORE_DIR}/platform/win"
17 )
18
19 list(APPEND WebCore_INCLUDE_DIRECTORIES
20     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
21 )
22
23 list(APPEND WebCore_SOURCES
24     accessibility/win/AXObjectCacheWin.cpp
25     accessibility/win/AccessibilityObjectWin.cpp
26     accessibility/win/AccessibilityObjectWrapperWin.cpp
27
28     editing/win/EditorWin.cpp
29
30     html/HTMLSelectElementWin.cpp
31
32     page/win/DragControllerWin.cpp
33     page/win/EventHandlerWin.cpp
34     page/win/FrameWin.cpp
35     page/win/FrameWinDirect2D.cpp
36
37     platform/Cursor.cpp
38     platform/LocalizedStrings.cpp
39     platform/StaticPasteboard.cpp
40
41     platform/audio/PlatformMediaSessionManager.cpp
42
43     platform/generic/KeyedDecoderGeneric.cpp
44     platform/generic/KeyedEncoderGeneric.cpp
45
46     platform/graphics/GLContext.cpp
47     platform/graphics/GraphicsContext3DPrivate.cpp
48     platform/graphics/PlatformDisplay.cpp
49
50     platform/graphics/egl/GLContextEGL.cpp
51
52     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
53     platform/graphics/opengl/Extensions3DOpenGLES.cpp
54     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
55     platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
56     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
57
58     platform/graphics/opentype/OpenTypeUtilities.cpp
59
60     platform/graphics/win/ColorDirect2D.cpp
61     platform/graphics/win/ComplexTextControllerDirectWrite.cpp
62     platform/graphics/win/DIBPixelData.cpp
63     platform/graphics/win/FloatPointDirect2D.cpp
64     platform/graphics/win/FloatRectDirect2D.cpp
65     platform/graphics/win/FloatSizeDirect2D.cpp
66     platform/graphics/win/FontCacheWin.cpp
67     platform/graphics/win/FontCascadeDirect2D.cpp
68     platform/graphics/win/FontCustomPlatformData.cpp
69     platform/graphics/win/FontPlatformDataDirect2D.cpp
70     platform/graphics/win/FontPlatformDataWin.cpp
71     platform/graphics/win/FontWin.cpp
72     platform/graphics/win/GlyphPageTreeNodeDirect2D.cpp
73     platform/graphics/win/GradientDirect2D.cpp
74     platform/graphics/win/GraphicsContext3DDirect2D.cpp
75     platform/graphics/win/GraphicsContextDirect2D.cpp
76     platform/graphics/win/GraphicsContextWin.cpp
77     platform/graphics/win/IconWin.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/ImageWin.cpp
83     platform/graphics/win/IntPointWin.cpp
84     platform/graphics/win/IntRectWin.cpp
85     platform/graphics/win/IntSizeWin.cpp
86     platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
87     platform/graphics/win/NativeImageDirect2D.cpp
88     platform/graphics/win/PathDirect2D.cpp
89     platform/graphics/win/PatternDirect2D.cpp
90     platform/graphics/win/SimpleFontDataWin.cpp
91     platform/graphics/win/SimpleFontDataDirect2D.cpp
92     platform/graphics/win/TextAnalyzerHelper.cpp
93     platform/graphics/win/TransformationMatrixDirect2D.cpp
94     platform/graphics/win/TransformationMatrixWin.cpp
95     platform/graphics/win/UniscribeController.cpp
96
97     platform/network/win/CurlSSLHandleWin.cpp
98     platform/network/win/DownloadBundleWin.cpp
99     platform/network/win/NetworkStateNotifierWin.cpp
100
101     platform/text/Hyphenation.cpp
102     platform/text/win/LocaleWin.cpp
103
104     platform/win/BString.cpp
105     platform/win/BitmapInfo.cpp
106     platform/win/ClipboardUtilitiesWin.cpp
107     platform/win/CursorWin.cpp
108     platform/win/DefWndProcWindowClass.cpp
109     platform/win/DelayLoadedModulesEnumerator.cpp
110     platform/win/DragDataWin.cpp
111     platform/win/DragImageDirect2D.cpp
112     platform/win/DragImageWin.cpp
113     platform/win/EventLoopWin.cpp
114     platform/win/GDIObjectCounter.cpp
115     platform/win/GDIUtilities.cpp
116     platform/win/ImportedFunctionsEnumerator.cpp
117     platform/win/ImportedModulesEnumerator.cpp
118     platform/win/KeyEventWin.cpp
119     platform/win/LocalizedStringsWin.cpp
120     platform/win/LoggingWin.cpp
121     platform/win/MIMETypeRegistryWin.cpp
122     platform/win/MainThreadSharedTimerWin.cpp
123     platform/win/PEImage.cpp
124     platform/win/PasteboardWin.cpp
125     platform/win/PlatformMouseEventWin.cpp
126     platform/win/PlatformScreenWin.cpp
127     platform/win/PopupMenuWin.cpp
128     platform/win/SSLKeyGeneratorWin.cpp
129     platform/win/ScrollbarThemeWin.cpp
130     platform/win/SearchPopupMenuDB.cpp
131     platform/win/SearchPopupMenuWin.cpp
132     platform/win/SharedBufferWin.cpp
133     platform/win/StructuredExceptionHandlerSuppressor.cpp
134     platform/win/SystemInfo.cpp
135     platform/win/UserAgentWin.cpp
136     platform/win/WCDataObject.cpp
137     platform/win/WebCoreBundleWin.cpp
138     platform/win/WebCoreInstanceHandle.cpp
139     platform/win/WebCoreTextRenderer.cpp
140     platform/win/WheelEventWin.cpp
141     platform/win/WidgetWin.cpp
142     platform/win/WindowMessageBroadcaster.cpp
143
144     rendering/RenderThemeWin.cpp
145 )
146
147 list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
148     accessibility/win/AccessibilityObjectWrapperWin.h
149
150     page/win/FrameWin.h
151
152     platform/graphics/win/DIBPixelData.h
153     platform/graphics/win/FullScreenController.h
154     platform/graphics/win/FullScreenControllerClient.h
155     platform/graphics/win/ImageBufferDataDirect2D.h
156     platform/graphics/win/LocalWindowsContext.h
157     platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h
158     platform/graphics/win/SharedGDIObject.h
159
160     platform/win/BString.h
161     platform/win/BitmapInfo.h
162     platform/win/COMPtr.h
163     platform/win/DefWndProcWindowClass.h
164     platform/win/GDIObjectCounter.h
165     platform/win/GDIUtilities.h
166     platform/win/HWndDC.h
167     platform/win/PopupMenuWin.h
168     platform/win/ScrollbarThemeWin.h
169     platform/win/SearchPopupMenuDB.h
170     platform/win/SearchPopupMenuWin.h
171     platform/win/SystemInfo.h
172     platform/win/WCDataObject.h
173     platform/win/WebCoreBundleWin.h
174     platform/win/WebCoreInstanceHandle.h
175     platform/win/WebCoreTextRenderer.h
176     platform/win/WindowMessageBroadcaster.h
177     platform/win/WindowMessageListener.h
178     platform/win/WindowsTouch.h
179 )
180
181 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
182     ${WEBCORE_DIR}/css/themeWin.css
183     ${WEBCORE_DIR}/css/themeWinQuirks.css
184 )
185
186 list(APPEND WebCore_LIBRARIES
187     ${DirectX_LIBRARIES}
188     comctl32
189     crypt32
190     iphlpapi
191     rpcrt4
192     shlwapi
193     usp10
194     version
195     winmm
196     ws2_32
197 )
198
199 list(APPEND WebCoreTestSupport_LIBRARIES
200     shlwapi
201 )
202
203 file(COPY
204     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.css"
205     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.js"
206     DESTINATION
207     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources
208 )
209
210 if (EXISTS ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem)
211     make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates)
212     file(COPY
213         ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem
214         DESTINATION
215         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates
216     )
217     file(RENAME
218         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cert.pem
219         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cacert.pem
220     )
221 endif ()
222
223 set(WebCore_OUTPUT_NAME WebCore${DEBUG_SUFFIX})