Add CMake build system for WinCairo port.
[WebKit-https.git] / Source / WTF / wtf / PlatformWin.cmake
1 list(APPEND WTF_SOURCES
2     text/cf/AtomicStringCF.cpp
3     text/cf/StringCF.cpp
4     text/cf/StringImplCF.cpp
5     text/cf/StringViewCF.cpp
6
7     threads/win/BinarySemaphoreWin.cpp
8
9     win/MainThreadWin.cpp
10     win/RunLoopWin.cpp
11     win/WTFDLL.cpp
12     win/WorkItemWin.cpp
13     win/WorkQueueWin.cpp
14 )
15
16 list(APPEND WTF_LIBRARIES
17     winmm
18 )
19
20 if (${WTF_PLATFORM_WIN_CAIRO})
21     list(APPEND WTF_LIBRARIES
22         cflite
23     )
24 endif ()
25
26 list(APPEND WTF_HEADERS
27     "${DERIVED_SOURCES_WTF_DIR}/WTFHeaderDetection.h"
28 )
29
30 # FIXME: This should run testOSXLevel.cmd if it is available.
31 # https://bugs.webkit.org/show_bug.cgi?id=135861
32 add_custom_command(
33     OUTPUT "${DERIVED_SOURCES_WTF_DIR}/WTFHeaderDetection.h"
34     WORKING_DIRECTORY "${DERIVED_SOURCES_WTF_DIR}"
35     COMMAND echo /* No Legible Output Support Found */ > WTFHeaderDetection.h
36     VERBATIM)