[MediaStream] AVVideoCaptureSource reports incorrect size when frames are scaled
[WebKit-https.git] / Source / WebCore / PlatformWin.cmake
1 add_definitions(/bigobj -D__STDC_CONSTANT_MACROS)
2
3 list(APPEND WebCore_INCLUDE_DIRECTORIES
4     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
5     "${CMAKE_BINARY_DIR}/../include/private"
6     "${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore"
7     "${WEBCORE_DIR}/accessibility/win"
8     "${WEBCORE_DIR}/page/win"
9     "${WEBCORE_DIR}/platform/graphics/egl"
10     "${WEBCORE_DIR}/platform/graphics/opengl"
11     "${WEBCORE_DIR}/platform/graphics/opentype"
12     "${WEBCORE_DIR}/platform/graphics/win"
13     "${WEBCORE_DIR}/platform/mediacapabilities"
14     "${WEBCORE_DIR}/platform/network/win"
15     "${WEBCORE_DIR}/platform/win"
16     "${THIRDPARTY_DIR}/ANGLE/include"
17     "${THIRDPARTY_DIR}/ANGLE/include/egl"
18 )
19
20 list(APPEND WebCore_SOURCES
21     accessibility/win/AXObjectCacheWin.cpp
22     accessibility/win/AccessibilityObjectWin.cpp
23     accessibility/win/AccessibilityObjectWrapperWin.cpp
24
25     editing/SmartReplaceCF.cpp
26     editing/win/EditorWin.cpp
27
28     html/HTMLSelectElementWin.cpp
29
30     page/win/DragControllerWin.cpp
31     page/win/EventHandlerWin.cpp
32     page/win/FrameWin.cpp
33
34     platform/Cursor.cpp
35     platform/LocalizedStrings.cpp
36     platform/StaticPasteboard.cpp
37
38     platform/audio/PlatformMediaSessionManager.cpp
39
40     platform/graphics/GraphicsContext3DPrivate.cpp
41
42     platform/graphics/egl/GLContextEGL.cpp
43
44     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
45     platform/graphics/opengl/Extensions3DOpenGLES.cpp
46     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
47     platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
48     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
49
50     platform/graphics/opentype/OpenTypeUtilities.cpp
51
52     platform/graphics/win/ColorDirect2D.cpp
53     platform/graphics/win/ComplexTextControllerDirectWrite.cpp
54     platform/graphics/win/DIBPixelData.cpp
55     platform/graphics/win/FloatPointDirect2D.cpp
56     platform/graphics/win/FloatRectDirect2D.cpp
57     platform/graphics/win/FloatSizeDirect2D.cpp
58     platform/graphics/win/FontCacheWin.cpp
59     platform/graphics/win/FontPlatformDataWin.cpp
60     platform/graphics/win/FontWin.cpp
61     platform/graphics/win/FullScreenController.cpp
62     platform/graphics/win/GraphicsContextWin.cpp
63     platform/graphics/win/IconWin.cpp
64     platform/graphics/win/ImageWin.cpp
65     platform/graphics/win/IntPointWin.cpp
66     platform/graphics/win/IntRectWin.cpp
67     platform/graphics/win/IntSizeWin.cpp
68     platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp
69     platform/graphics/win/SimpleFontDataWin.cpp
70     platform/graphics/win/TransformationMatrixDirect2D.cpp
71     platform/graphics/win/TransformationMatrixWin.cpp
72     platform/graphics/win/UniscribeController.cpp
73
74     platform/mediastream/libwebrtc/LibWebRTCProviderWin.cpp
75
76     platform/network/win/DownloadBundleWin.cpp
77     platform/network/win/NetworkStateNotifierWin.cpp
78
79     platform/text/LocaleNone.cpp
80
81     platform/win/BString.cpp
82     platform/win/BitmapInfo.cpp
83     platform/win/ClipboardUtilitiesWin.cpp
84     platform/win/CursorWin.cpp
85     platform/win/DefWndProcWindowClass.cpp
86     platform/win/DragDataWin.cpp
87     platform/win/DragImageWin.cpp
88     platform/win/EventLoopWin.cpp
89     platform/win/FileSystemWin.cpp
90     platform/win/GDIObjectCounter.cpp
91     platform/win/GDIUtilities.cpp
92     platform/win/KeyEventWin.cpp
93     platform/win/LocalizedStringsWin.cpp
94     platform/win/LoggingWin.cpp
95     platform/win/MIMETypeRegistryWin.cpp
96     platform/win/MainThreadSharedTimerWin.cpp
97     platform/win/PasteboardWin.cpp
98     platform/win/PathWalker.cpp
99     platform/win/PlatformMouseEventWin.cpp
100     platform/win/PlatformScreenWin.cpp
101     platform/win/PopupMenuWin.cpp
102     platform/win/SSLKeyGeneratorWin.cpp
103     platform/win/ScrollbarThemeWin.cpp
104     platform/win/SearchPopupMenuDB.cpp
105     platform/win/SearchPopupMenuWin.cpp
106     platform/win/SharedBufferWin.cpp
107     platform/win/StructuredExceptionHandlerSuppressor.cpp
108     platform/win/SystemInfo.cpp
109     platform/win/UserAgentWin.cpp
110     platform/win/WCDataObject.cpp
111     platform/win/WebCoreBundleWin.cpp
112     platform/win/WebCoreInstanceHandle.cpp
113     platform/win/WebCoreTextRenderer.cpp
114     platform/win/WheelEventWin.cpp
115     platform/win/WidgetWin.cpp
116     platform/win/WindowMessageBroadcaster.cpp
117
118     rendering/RenderThemeWin.cpp
119 )
120
121 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
122     ${WEBCORE_DIR}/css/themeWin.css
123     ${WEBCORE_DIR}/css/themeWinQuirks.css
124 )
125
126 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
127     .
128     accessibility
129     animation
130     bindings
131     bridge
132     contentextensions
133     crypto
134     css
135     dom
136     editing
137     fileapi
138     history
139     html
140     inspector
141     loader
142     page
143     platform
144     plugins
145     rendering
146     replay
147     storage
148     style
149     svg
150     websockets
151     workers
152     xml
153
154     Modules/cache
155     Modules/fetch
156     Modules/geolocation
157     Modules/indexeddb
158     Modules/mediastream
159     Modules/websockets
160
161     Modules/indexeddb/client
162     Modules/indexeddb/legacy
163     Modules/indexeddb/server
164     Modules/indexeddb/shared
165     Modules/notifications
166     Modules/webdatabase
167
168     accessibility/win
169
170     bindings/js
171
172     bridge/c
173     bridge/jsc
174
175     css/parser
176
177     html/canvas
178     html/forms
179     html/parser
180     html/shadow
181     html/track
182
183     loader/appcache
184     loader/archive
185     loader/cache
186     loader/icon
187
188
189     page/animation
190     page/csp
191     page/scrolling
192     page/win
193
194     platform/animation
195     platform/audio
196     platform/graphics
197     platform/mediacapabilities
198     platform/mock
199     platform/network
200     platform/sql
201     platform/text
202     platform/win
203
204     platform/graphics/filters
205     platform/graphics/opengl
206     platform/graphics/opentype
207     platform/graphics/texmap
208     platform/graphics/transforms
209     platform/graphics/win
210
211     platform/mediastream/libwebrtc
212
213     platform/text/transcoder
214
215     rendering/line
216     rendering/shapes
217     rendering/style
218     rendering/svg
219
220     svg/animation
221     svg/graphics
222     svg/properties
223
224     svg/graphics/filters
225
226     workers/service
227 )
228
229 if (ENABLE_WEBKIT)
230     list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
231         Modules/applicationmanifest
232
233         dom/messageports
234
235         inspector/agents
236
237         platform/mediacapabilities
238         platform/mediastream
239
240         workers/service/context
241         workers/service/server
242     )
243 endif ()
244
245 if (USE_CF)
246     list(APPEND WebCore_INCLUDE_DIRECTORIES
247         "${WEBCORE_DIR}/platform/cf"
248         "${WEBCORE_DIR}/platform/cf/win"
249     )
250
251     list(APPEND WebCore_SOURCES
252         loader/archive/cf/LegacyWebArchive.cpp
253
254         platform/cf/CFURLExtras.cpp
255         platform/cf/FileSystemCF.cpp
256         platform/cf/KeyedDecoderCF.cpp
257         platform/cf/KeyedEncoderCF.cpp
258         platform/cf/SharedBufferCF.cpp
259         platform/cf/URLCF.cpp
260
261         platform/cf/win/CertificateCFWin.cpp
262
263         platform/text/cf/HyphenationCF.cpp
264     )
265
266     list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
267         history/cf
268
269         loader/archive/cf
270
271         platform/cf
272
273         platform/cf/win
274     )
275 endif ()
276
277 if (CMAKE_SIZEOF_VOID_P EQUAL 4)
278     list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj)
279     add_custom_command(
280         OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj
281         DEPENDS ${WEBCORE_DIR}/platform/win/makesafeseh.asm
282         COMMAND ml /safeseh /c /Fo ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj ${WEBCORE_DIR}/platform/win/makesafeseh.asm
283         VERBATIM)
284 endif ()
285
286 if (${WTF_PLATFORM_WIN_CAIRO})
287     include(PlatformWinCairo.cmake)
288 else ()
289     include(PlatformAppleWin.cmake)
290 endif ()
291
292 make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj)
293 file(COPY
294     "${WEBCORE_DIR}/en.lproj/Localizable.strings"
295     "${WEBCORE_DIR}/en.lproj/mediaControlsLocalizedStrings.js"
296     DESTINATION
297     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
298 )
299 file(COPY
300     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.css"
301     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.js"
302     DESTINATION
303     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources
304 )
305 if (WTF_PLATFORM_WIN_CAIRO AND EXISTS ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem)
306     make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates)
307     file(COPY
308         ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem
309         DESTINATION
310         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates
311     )
312     file(RENAME
313         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cert.pem
314         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cacert.pem
315     )
316 endif ()
317
318 WEBKIT_MAKE_FORWARDING_HEADERS(WebCore
319     DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES}
320     DERIVED_SOURCE_DIRECTORIES ${DERIVED_SOURCES_WEBCORE_DIR}
321     FLATTENED
322 )
323
324 set(WebCore_OUTPUT_NAME
325     WebCore${DEBUG_SUFFIX}
326 )
327
328 list(APPEND WebCore_LIBRARIES WTF${DEBUG_SUFFIX})
329 if (TARGET libEGL)
330     list(APPEND WebCore_LIBRARIES libEGL)
331 endif ()
332 list(APPEND WebCoreTestSupport_LIBRARIES WTF${DEBUG_SUFFIX})