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