MessagePort should be WeakPtrFactoryInitialization::Eager
[WebKit-https.git] / Source / WebCore / PlatformWin.cmake
1 add_definitions(/bigobj -D__STDC_CONSTANT_MACROS)
2
3 list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
4     "${CMAKE_BINARY_DIR}/../include/private"
5     "${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore"
6     "${WEBCORE_DIR}/accessibility/win"
7     "${WEBCORE_DIR}/page/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/mediacapabilities"
13     "${WEBCORE_DIR}/platform/network/win"
14     "${WEBCORE_DIR}/platform/win"
15 )
16
17 list(APPEND WebCore_INCLUDE_DIRECTORIES
18     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
19 )
20
21 list(APPEND WebCore_SOURCES
22     accessibility/win/AXObjectCacheWin.cpp
23     accessibility/win/AccessibilityObjectWin.cpp
24     accessibility/win/AccessibilityObjectWrapperWin.cpp
25
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/win/BString.cpp
78     platform/win/BitmapInfo.cpp
79     platform/win/ClipboardUtilitiesWin.cpp
80     platform/win/CursorWin.cpp
81     platform/win/DefWndProcWindowClass.cpp
82     platform/win/DragDataWin.cpp
83     platform/win/DragImageWin.cpp
84     platform/win/EventLoopWin.cpp
85     platform/win/GDIObjectCounter.cpp
86     platform/win/GDIUtilities.cpp
87     platform/win/KeyEventWin.cpp
88     platform/win/LocalizedStringsWin.cpp
89     platform/win/LoggingWin.cpp
90     platform/win/MIMETypeRegistryWin.cpp
91     platform/win/MainThreadSharedTimerWin.cpp
92     platform/win/PasteboardWin.cpp
93     platform/win/PlatformMouseEventWin.cpp
94     platform/win/PlatformScreenWin.cpp
95     platform/win/PopupMenuWin.cpp
96     platform/win/SSLKeyGeneratorWin.cpp
97     platform/win/ScrollbarThemeWin.cpp
98     platform/win/SearchPopupMenuDB.cpp
99     platform/win/SearchPopupMenuWin.cpp
100     platform/win/SharedBufferWin.cpp
101     platform/win/StructuredExceptionHandlerSuppressor.cpp
102     platform/win/SystemInfo.cpp
103     platform/win/UserAgentWin.cpp
104     platform/win/WCDataObject.cpp
105     platform/win/WebCoreBundleWin.cpp
106     platform/win/WebCoreInstanceHandle.cpp
107     platform/win/WebCoreTextRenderer.cpp
108     platform/win/WheelEventWin.cpp
109     platform/win/WidgetWin.cpp
110     platform/win/WindowMessageBroadcaster.cpp
111
112     rendering/RenderThemeWin.cpp
113 )
114
115 list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
116     accessibility/win/AccessibilityObjectWrapperWin.h
117
118     page/win/FrameWin.h
119
120     platform/graphics/win/DIBPixelData.h
121     platform/graphics/win/FullScreenController.h
122     platform/graphics/win/FullScreenControllerClient.h
123     platform/graphics/win/ImageBufferDataDirect2D.h
124     platform/graphics/win/LocalWindowsContext.h
125     platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h
126     platform/graphics/win/SharedGDIObject.h
127
128     platform/win/BString.h
129     platform/win/BitmapInfo.h
130     platform/win/COMPtr.h
131     platform/win/DefWndProcWindowClass.h
132     platform/win/GDIObjectCounter.h
133     platform/win/GDIUtilities.h
134     platform/win/HWndDC.h
135     platform/win/PopupMenuWin.h
136     platform/win/ScrollbarThemeWin.h
137     platform/win/SearchPopupMenuDB.h
138     platform/win/SearchPopupMenuWin.h
139     platform/win/SystemInfo.h
140     platform/win/WCDataObject.h
141     platform/win/WebCoreBundleWin.h
142     platform/win/WebCoreInstanceHandle.h
143     platform/win/WebCoreTextRenderer.h
144     platform/win/WindowMessageBroadcaster.h
145     platform/win/WindowMessageListener.h
146     platform/win/WindowsTouch.h
147 )
148
149 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
150     ${WEBCORE_DIR}/css/themeWin.css
151     ${WEBCORE_DIR}/css/themeWinQuirks.css
152 )
153
154 if (USE_CF)
155     list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
156         "${WEBCORE_DIR}/platform/cf"
157         "${WEBCORE_DIR}/platform/cf/win"
158     )
159
160     list(APPEND WebCore_SOURCES
161         editing/SmartReplaceCF.cpp
162
163         loader/archive/cf/LegacyWebArchive.cpp
164
165         platform/cf/SharedBufferCF.cpp
166
167         platform/cf/win/CertificateCFWin.cpp
168
169         platform/text/cf/HyphenationCF.cpp
170     )
171
172     list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
173         loader/archive/cf/LegacyWebArchive.h
174
175         platform/cf/win/CertificateCFWin.h
176     )
177
178     list(APPEND WebCore_LIBRARIES ${COREFOUNDATION_LIBRARY})
179     list(APPEND WebCoreTestSupport_LIBRARIES ${COREFOUNDATION_LIBRARY})
180 else ()
181     list(APPEND WebCore_SOURCES
182         platform/text/Hyphenation.cpp
183     )
184 endif ()
185
186 if (USE_CF AND NOT WTF_PLATFORM_WIN_CAIRO)
187     list(APPEND WebCore_SOURCES
188         platform/cf/KeyedDecoderCF.cpp
189         platform/cf/KeyedEncoderCF.cpp
190     )
191 else ()
192     list(APPEND WebCore_SOURCES
193         platform/generic/KeyedDecoderGeneric.cpp
194         platform/generic/KeyedEncoderGeneric.cpp
195     )
196 endif ()
197
198 if (CMAKE_SIZEOF_VOID_P EQUAL 4)
199     list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/makesafeseh.obj)
200     add_custom_command(
201         OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/makesafeseh.obj
202         DEPENDS ${WEBCORE_DIR}/platform/win/makesafeseh.asm
203         COMMAND ml /safeseh /c /Fo ${WebCore_DERIVED_SOURCES_DIR}/makesafeseh.obj ${WEBCORE_DIR}/platform/win/makesafeseh.asm
204         VERBATIM)
205 endif ()
206
207 if (${WTF_PLATFORM_WIN_CAIRO})
208     include(PlatformWinCairo.cmake)
209 else ()
210     include(PlatformAppleWin.cmake)
211 endif ()
212
213 make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj)
214 file(COPY
215     "${WEBCORE_DIR}/en.lproj/Localizable.strings"
216     "${WEBCORE_DIR}/en.lproj/mediaControlsLocalizedStrings.js"
217     DESTINATION
218     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
219 )
220 file(COPY
221     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.css"
222     "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.js"
223     DESTINATION
224     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources
225 )
226 if (WTF_PLATFORM_WIN_CAIRO AND EXISTS ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem)
227     make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates)
228     file(COPY
229         ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem
230         DESTINATION
231         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates
232     )
233     file(RENAME
234         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cert.pem
235         ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cacert.pem
236     )
237 endif ()
238
239 set(WebCore_OUTPUT_NAME WebCore${DEBUG_SUFFIX})