Mark legacy-animation-engine/animations/animation-callback-timestamp.html as flaky.
[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/network/win"
14     "${WEBCORE_DIR}/platform/win"
15     "${THIRDPARTY_DIR}/ANGLE/include"
16     "${THIRDPARTY_DIR}/ANGLE/include/egl"
17     "${DERIVED_SOURCES_PAL_DIR}"
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/network/win/DownloadBundleWin.cpp
75     platform/network/win/NetworkStateNotifierWin.cpp
76
77     platform/text/LocaleNone.cpp
78
79     platform/win/BString.cpp
80     platform/win/BitmapInfo.cpp
81     platform/win/ClipboardUtilitiesWin.cpp
82     platform/win/CursorWin.cpp
83     platform/win/DefWndProcWindowClass.cpp
84     platform/win/DragDataWin.cpp
85     platform/win/DragImageWin.cpp
86     platform/win/EventLoopWin.cpp
87     platform/win/FileSystemWin.cpp
88     platform/win/GDIObjectCounter.cpp
89     platform/win/GDIUtilities.cpp
90     platform/win/KeyEventWin.cpp
91     platform/win/LocalizedStringsWin.cpp
92     platform/win/LoggingWin.cpp
93     platform/win/MIMETypeRegistryWin.cpp
94     platform/win/MainThreadSharedTimerWin.cpp
95     platform/win/PasteboardWin.cpp
96     platform/win/PathWalker.cpp
97     platform/win/PlatformMouseEventWin.cpp
98     platform/win/PlatformScreenWin.cpp
99     platform/win/PopupMenuWin.cpp
100     platform/win/SSLKeyGeneratorWin.cpp
101     platform/win/ScrollbarThemeWin.cpp
102     platform/win/SearchPopupMenuWin.cpp
103     platform/win/SharedBufferWin.cpp
104     platform/win/StructuredExceptionHandlerSuppressor.cpp
105     platform/win/SystemInfo.cpp
106     platform/win/WCDataObject.cpp
107     platform/win/WebCoreBundleWin.cpp
108     platform/win/WebCoreInstanceHandle.cpp
109     platform/win/WebCoreTextRenderer.cpp
110     platform/win/WheelEventWin.cpp
111     platform/win/WidgetWin.cpp
112     platform/win/WindowMessageBroadcaster.cpp
113
114     rendering/RenderThemeWin.cpp
115 )
116
117 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
118     ${WEBCORE_DIR}/css/themeWin.css
119     ${WEBCORE_DIR}/css/themeWinQuirks.css
120 )
121
122 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
123     .
124     accessibility
125     animation
126     bindings
127     bridge
128     contentextensions
129     css
130     dom
131     editing
132     fileapi
133     history
134     html
135     inspector
136     loader
137     page
138     platform
139     plugins
140     rendering
141     storage
142     style
143     svg
144     websockets
145     workers
146     xml
147
148     Modules/cache
149     Modules/fetch
150     Modules/geolocation
151     Modules/indexeddb
152     Modules/mediastream
153     Modules/websockets
154
155     Modules/indexeddb/client
156     Modules/indexeddb/legacy
157     Modules/indexeddb/server
158     Modules/indexeddb/shared
159     Modules/notifications
160     Modules/webdatabase
161
162     accessibility/win
163
164     bindings/js
165
166     bridge/c
167     bridge/jsc
168
169     css/parser
170
171     html/canvas
172     html/forms
173     html/parser
174     html/shadow
175     html/track
176
177     loader/appcache
178     loader/archive
179     loader/cache
180     loader/icon
181
182
183     page/animation
184     page/csp
185     page/scrolling
186     page/win
187
188     platform/animation
189     platform/audio
190     platform/graphics
191     platform/mock
192     platform/network
193     platform/sql
194     platform/text
195     platform/win
196
197     platform/graphics/filters
198     platform/graphics/opengl
199     platform/graphics/opentype
200     platform/graphics/texmap
201     platform/graphics/transforms
202     platform/graphics/win
203
204     platform/mediastream/libwebrtc
205
206     platform/text/transcoder
207
208     rendering/line
209     rendering/shapes
210     rendering/style
211     rendering/svg
212
213     svg/animation
214     svg/graphics
215     svg/properties
216
217     svg/graphics/filters
218
219     workers/service
220 )
221
222 if (ENABLE_WEBKIT)
223     list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
224         Modules/applicationmanifest
225
226         dom/messageports
227
228         inspector/agents
229
230         platform/mediastream
231
232         workers/service/context
233         workers/service/server
234     )
235 endif ()
236
237 if (USE_CF)
238     list(APPEND WebCore_INCLUDE_DIRECTORIES
239         "${WEBCORE_DIR}/platform/cf"
240         "${WEBCORE_DIR}/platform/cf/win"
241     )
242
243     list(APPEND WebCore_SOURCES
244         loader/archive/cf/LegacyWebArchive.cpp
245
246         platform/cf/CFURLExtras.cpp
247         platform/cf/FileSystemCF.cpp
248         platform/cf/KeyedDecoderCF.cpp
249         platform/cf/KeyedEncoderCF.cpp
250         platform/cf/SharedBufferCF.cpp
251         platform/cf/URLCF.cpp
252
253         platform/cf/win/CertificateCFWin.cpp
254
255         platform/text/cf/HyphenationCF.cpp
256     )
257
258     list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
259         history/cf
260
261         loader/archive/cf
262
263         platform/cf
264
265         platform/cf/win
266     )
267 endif ()
268
269 if (CMAKE_SIZEOF_VOID_P EQUAL 4)
270     list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj)
271     add_custom_command(
272         OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj
273         DEPENDS ${WEBCORE_DIR}/platform/win/makesafeseh.asm
274         COMMAND ml /safeseh /c /Fo ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj ${WEBCORE_DIR}/platform/win/makesafeseh.asm
275         VERBATIM)
276 endif ()
277
278 if (${WTF_PLATFORM_WIN_CAIRO})
279     include(PlatformWinCairo.cmake)
280 else ()
281     include(PlatformAppleWin.cmake)
282 endif ()
283
284 make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj)
285 file(COPY
286     "${WEBCORE_DIR}/English.lproj/Localizable.strings"
287     "${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js"
288     DESTINATION
289     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
290 )
291 file(COPY
292     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.css"
293     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.js"
294     DESTINATION
295     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources
296 )
297 if (WTF_PLATFORM_WIN_CAIRO AND EXISTS ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem)
298     make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates)
299     file(COPY
300         ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem
301         DESTINATION
302         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates
303     )
304     file(RENAME
305         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cert.pem
306         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cacert.pem
307     )
308 endif ()
309
310 WEBKIT_MAKE_FORWARDING_HEADERS(WebCore
311     DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES}
312     DERIVED_SOURCE_DIRECTORIES ${DERIVED_SOURCES_WEBCORE_DIR} ${DERIVED_SOURCES_PAL_DIR}
313     FLATTENED
314 )
315
316 set(WebCore_OUTPUT_NAME
317     WebCore${DEBUG_SUFFIX}
318 )
319
320 list(APPEND WebCore_LIBRARIES WTF${DEBUG_SUFFIX})
321 if (TARGET libEGL)
322     list(APPEND WebCore_LIBRARIES libEGL)
323 endif ()
324 list(APPEND WebCoreTestSupport_LIBRARIES WTF${DEBUG_SUFFIX})