Fix Debug CMake builds on Windows
[WebKit-https.git] / Source / WebCore / PlatformWin.cmake
1 add_definitions(/bigobj)
2
3 list(APPEND WebCore_INCLUDE_DIRECTORIES
4     "${WEBCORE_DIR}/accessibility/win"
5     "${WEBCORE_DIR}/page/win"
6     "${WEBCORE_DIR}/platform/cf"
7     "${WEBCORE_DIR}/platform/cf/win"
8     "${WEBCORE_DIR}/platform/graphics/egl"
9     "${WEBCORE_DIR}/platform/graphics/opengl"
10     "${WEBCORE_DIR}/platform/graphics/opentype"
11     "${WEBCORE_DIR}/platform/graphics/win"
12     "${WEBCORE_DIR}/platform/network/win"
13     "${WEBCORE_DIR}/platform/win"
14     "${WEBCORE_DIR}/plugins/win"
15     "${THIRDPARTY_DIR}/ANGLE/include"
16     "${THIRDPARTY_DIR}/ANGLE/include/egl"
17 )
18
19 enable_language(ASM_MASM)
20 list(APPEND WebCore_SOURCES
21     accessibility/win/AXObjectCacheWin.cpp
22     accessibility/win/AccessibilityObjectWin.cpp
23     accessibility/win/AccessibilityObjectWrapperWin.cpp
24
25     editing/win/EditorWin.cpp
26
27     html/HTMLSelectElementWin.cpp
28
29     loader/archive/cf/LegacyWebArchive.cpp
30
31     page/win/DragControllerWin.cpp
32     page/win/EventHandlerWin.cpp
33     page/win/FrameWin.cpp
34
35     platform/Cursor.cpp
36     platform/LocalizedStrings.cpp
37     platform/PlatformStrategies.cpp
38     platform/VNodeTracker.cpp
39
40     platform/audio/PlatformMediaSessionManager.cpp
41
42     platform/cf/FileSystemCF.cpp
43     platform/cf/SharedBufferCF.cpp
44
45     platform/cf/win/CertificateCFWin.cpp
46
47     platform/graphics/FontPlatformData.cpp
48     platform/graphics/GraphicsContext3DPrivate.cpp
49     platform/graphics/WOFFFileFormat.cpp
50
51     platform/graphics/egl/GLContextEGL.cpp
52
53     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
54     platform/graphics/opengl/Extensions3DOpenGLES.cpp
55     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
56     platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
57     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
58
59     platform/graphics/opentype/OpenTypeUtilities.cpp
60
61     platform/graphics/win/DIBPixelData.cpp
62     platform/graphics/win/FontCacheWin.cpp
63     platform/graphics/win/FontPlatformDataWin.cpp
64     platform/graphics/win/FontWin.cpp
65     platform/graphics/win/FullScreenController.cpp
66     platform/graphics/win/GraphicsContextWin.cpp
67     platform/graphics/win/IconWin.cpp
68     platform/graphics/win/ImageWin.cpp
69     platform/graphics/win/IntPointWin.cpp
70     platform/graphics/win/IntRectWin.cpp
71     platform/graphics/win/IntSizeWin.cpp
72     platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp
73     platform/graphics/win/SimpleFontDataWin.cpp
74     platform/graphics/win/TransformationMatrixWin.cpp
75     platform/graphics/win/UniscribeController.cpp
76
77     platform/network/win/DownloadBundleWin.cpp
78     platform/network/win/NetworkStateNotifierWin.cpp
79
80     platform/text/LocaleNone.cpp
81
82     platform/text/win/TextBreakIteratorInternalICUWin.cpp
83
84     platform/win/BString.cpp
85     platform/win/BitmapInfo.cpp
86     platform/win/ClipboardUtilitiesWin.cpp
87     platform/win/ContextMenuItemWin.cpp
88     platform/win/ContextMenuWin.cpp
89     platform/win/CursorWin.cpp
90     platform/win/DefWndProcWindowClass.cpp
91     platform/win/DragDataWin.cpp
92     platform/win/DragImageWin.cpp
93     platform/win/EventLoopWin.cpp
94     platform/win/FileSystemWin.cpp
95     platform/win/GDIObjectCounter.cpp
96     platform/win/GDIUtilities.cpp
97     platform/win/KeyEventWin.cpp
98     platform/win/LanguageWin.cpp
99     platform/win/LocalizedStringsWin.cpp
100     platform/win/LoggingWin.cpp
101     platform/win/MemoryPressureHandlerWin.cpp
102     platform/win/MIMETypeRegistryWin.cpp
103     platform/win/PasteboardWin.cpp
104     platform/win/PathWalker.cpp
105     platform/win/PlatformMouseEventWin.cpp
106     platform/win/PlatformScreenWin.cpp
107     platform/win/PopupMenuWin.cpp
108     platform/win/SSLKeyGeneratorWin.cpp
109     platform/win/ScrollbarThemeWin.cpp
110     platform/win/SearchPopupMenuWin.cpp
111     platform/win/SharedBufferWin.cpp
112     platform/win/SharedTimerWin.cpp
113     platform/win/SoundWin.cpp
114     platform/win/StructuredExceptionHandlerSuppressor.cpp
115     platform/win/SystemInfo.cpp
116     platform/win/WCDataObject.cpp
117     platform/win/WebCoreBundleWin.cpp
118     platform/win/WebCoreInstanceHandle.cpp
119     platform/win/WebCoreTextRenderer.cpp
120     platform/win/WheelEventWin.cpp
121     platform/win/WidgetWin.cpp
122     platform/win/WindowMessageBroadcaster.cpp
123 )
124
125 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
126     ${WEBCORE_DIR}/css/themeWin.css
127     ${WEBCORE_DIR}/css/themeWinQuirks.css
128 )
129
130 list(APPEND WebCore_SOURCES
131     "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
132 )
133
134 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
135     accessibility
136     bindings
137     bridge
138     css
139     dom
140     editing
141     history
142     html
143     inspector
144     loader
145     page
146     platform
147     plugins
148     rendering
149     storage
150     svg
151     websockets
152     workers
153     xml
154
155     Modules/geolocation
156     Modules/indexeddb
157     Modules/notifications
158     Modules/webdatabase
159
160     accessibility/win
161
162     bindings/generic
163     bindings/js
164
165     bridge/c
166     bridge/jsc
167
168     history/cf
169
170     html/forms
171     html/parser
172
173     loader/appcache
174     loader/archive
175     loader/cache
176     loader/icon
177
178     loader/archive/cf
179
180     page/animation
181     page/win
182
183     platform/animation
184     platform/cf
185     platform/graphics
186     platform/mock
187     platform/network
188     platform/sql
189     platform/text
190     platform/win
191
192     platform/cf/win
193
194     platform/graphics/opengl
195     platform/graphics/opentype
196     platform/graphics/texmap
197     platform/graphics/transforms
198     platform/graphics/win
199
200     platform/text/transcoder
201
202     rendering/style
203     rendering/svg
204
205     svg/animation
206     svg/graphics
207     svg/properties
208
209     svg/graphics/filters
210 )
211
212 if (${WTF_PLATFORM_WIN_CAIRO})
213     include(PlatformWinCairo.cmake)
214 else ()
215     include(PlatformAppleWin.cmake)
216 endif ()
217
218 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES})
219
220 # FIXME: This should test if AVF headers are available.
221 # https://bugs.webkit.org/show_bug.cgi?id=135861
222 add_custom_command(
223     OUTPUT "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
224     WORKING_DIRECTORY "${DERIVED_SOURCES_WEBCORE_DIR}"
225     COMMAND echo /* Identifying AVFoundation Support */ > WebCoreHeaderDetection.h
226     VERBATIM)
227
228 make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj)
229 file(COPY
230     "${WEBCORE_DIR}/English.lproj/Localizable.strings"
231     "${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js"
232     DESTINATION
233     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
234 )