1 add_definitions(/bigobj -D__STDC_CONSTANT_MACROS)
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}"
20 list(APPEND WebCore_SOURCES
21 accessibility/win/AXObjectCacheWin.cpp
22 accessibility/win/AccessibilityObjectWin.cpp
23 accessibility/win/AccessibilityObjectWrapperWin.cpp
25 editing/SmartReplaceCF.cpp
26 editing/win/EditorWin.cpp
28 html/HTMLSelectElementWin.cpp
30 page/win/DragControllerWin.cpp
31 page/win/EventHandlerWin.cpp
35 platform/LocalizedStrings.cpp
36 platform/StaticPasteboard.cpp
38 platform/audio/PlatformMediaSessionManager.cpp
40 platform/graphics/GraphicsContext3DPrivate.cpp
42 platform/graphics/egl/GLContextEGL.cpp
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
50 platform/graphics/opentype/OpenTypeUtilities.cpp
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
74 platform/mediastream/libwebrtc/LibWebRTCProviderWin.cpp
76 platform/network/win/DownloadBundleWin.cpp
77 platform/network/win/NetworkStateNotifierWin.cpp
79 platform/text/LocaleNone.cpp
81 platform/win/BString.cpp
82 platform/win/BitmapInfo.cpp
83 platform/win/ClipboardUtilitiesWin.cpp
84 platform/win/CursorWin.cpp
85 platform/win/DefWndProcWindowClass.cpp
86 platform/win/DragDataWin.cpp
87 platform/win/DragImageWin.cpp
88 platform/win/EventLoopWin.cpp
89 platform/win/FileSystemWin.cpp
90 platform/win/GDIObjectCounter.cpp
91 platform/win/GDIUtilities.cpp
92 platform/win/KeyEventWin.cpp
93 platform/win/LocalizedStringsWin.cpp
94 platform/win/LoggingWin.cpp
95 platform/win/MIMETypeRegistryWin.cpp
96 platform/win/MainThreadSharedTimerWin.cpp
97 platform/win/PasteboardWin.cpp
98 platform/win/PathWalker.cpp
99 platform/win/PlatformMouseEventWin.cpp
100 platform/win/PlatformScreenWin.cpp
101 platform/win/PopupMenuWin.cpp
102 platform/win/SSLKeyGeneratorWin.cpp
103 platform/win/ScrollbarThemeWin.cpp
104 platform/win/SearchPopupMenuWin.cpp
105 platform/win/SharedBufferWin.cpp
106 platform/win/StructuredExceptionHandlerSuppressor.cpp
107 platform/win/SystemInfo.cpp
108 platform/win/WCDataObject.cpp
109 platform/win/WebCoreBundleWin.cpp
110 platform/win/WebCoreInstanceHandle.cpp
111 platform/win/WebCoreTextRenderer.cpp
112 platform/win/WheelEventWin.cpp
113 platform/win/WidgetWin.cpp
114 platform/win/WindowMessageBroadcaster.cpp
116 rendering/RenderThemeWin.cpp
119 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
120 ${WEBCORE_DIR}/css/themeWin.css
121 ${WEBCORE_DIR}/css/themeWinQuirks.css
124 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
157 Modules/indexeddb/client
158 Modules/indexeddb/legacy
159 Modules/indexeddb/server
160 Modules/indexeddb/shared
161 Modules/notifications
199 platform/graphics/filters
200 platform/graphics/opengl
201 platform/graphics/opentype
202 platform/graphics/texmap
203 platform/graphics/transforms
204 platform/graphics/win
206 platform/mediastream/libwebrtc
208 platform/text/transcoder
225 list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
226 Modules/applicationmanifest
234 workers/service/context
235 workers/service/server
240 list(APPEND WebCore_INCLUDE_DIRECTORIES
241 "${WEBCORE_DIR}/platform/cf"
242 "${WEBCORE_DIR}/platform/cf/win"
245 list(APPEND WebCore_SOURCES
246 loader/archive/cf/LegacyWebArchive.cpp
248 platform/cf/CFURLExtras.cpp
249 platform/cf/FileSystemCF.cpp
250 platform/cf/KeyedDecoderCF.cpp
251 platform/cf/KeyedEncoderCF.cpp
252 platform/cf/SharedBufferCF.cpp
253 platform/cf/URLCF.cpp
255 platform/cf/win/CertificateCFWin.cpp
257 platform/text/cf/HyphenationCF.cpp
260 list(APPEND WebCore_FORWARDING_HEADERS_DIRECTORIES
271 if (CMAKE_SIZEOF_VOID_P EQUAL 4)
272 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj)
274 OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj
275 DEPENDS ${WEBCORE_DIR}/platform/win/makesafeseh.asm
276 COMMAND ml /safeseh /c /Fo ${DERIVED_SOURCES_WEBCORE_DIR}/makesafeseh.obj ${WEBCORE_DIR}/platform/win/makesafeseh.asm
280 if (${WTF_PLATFORM_WIN_CAIRO})
281 include(PlatformWinCairo.cmake)
283 include(PlatformAppleWin.cmake)
286 make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj)
288 "${WEBCORE_DIR}/English.lproj/Localizable.strings"
289 "${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js"
291 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
294 "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.css"
295 "${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.js"
297 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources
299 if (WTF_PLATFORM_WIN_CAIRO AND EXISTS ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem)
300 make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates)
302 ${WEBKIT_LIBRARIES_DIR}/etc/ssl/cert.pem
304 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates
307 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cert.pem
308 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates/cacert.pem
312 WEBKIT_MAKE_FORWARDING_HEADERS(WebCore
313 DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES}
314 DERIVED_SOURCE_DIRECTORIES ${DERIVED_SOURCES_WEBCORE_DIR} ${DERIVED_SOURCES_PAL_DIR}
318 set(WebCore_OUTPUT_NAME
319 WebCore${DEBUG_SUFFIX}
322 list(APPEND WebCore_LIBRARIES WTF${DEBUG_SUFFIX})
324 list(APPEND WebCore_LIBRARIES libEGL)
326 list(APPEND WebCoreTestSupport_LIBRARIES WTF${DEBUG_SUFFIX})