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