a2454ac5265e280c26f44f813d94117a0cf39aa2
[WebKit-https.git] / Source / WTF / wtf / PlatformWin.cmake
1 list(APPEND WTF_HEADERS
2     cf/TypeCastsCF.h
3 )
4
5 list(APPEND WTF_SOURCES
6     text/win/TextBreakIteratorInternalICUWin.cpp
7
8     win/CPUTimeWin.cpp
9     win/LanguageWin.cpp
10     win/MainThreadWin.cpp
11     win/MemoryFootprintWin.cpp
12     win/MemoryPressureHandlerWin.cpp
13     win/RunLoopWin.cpp
14     win/WorkItemContext.cpp
15     win/WorkQueueWin.cpp
16 )
17
18 if (USE_CF)
19     list(APPEND WTF_SOURCES
20         text/cf/AtomicStringImplCF.cpp
21         text/cf/StringCF.cpp
22         text/cf/StringImplCF.cpp
23         text/cf/StringViewCF.cpp
24     )
25
26     list(APPEND WTF_LIBRARIES ${COREFOUNDATION_LIBRARY})
27 endif ()
28
29 set(WTF_PRE_BUILD_COMMAND "${CMAKE_BINARY_DIR}/DerivedSources/WTF/preBuild.cmd")
30 file(WRITE "${WTF_PRE_BUILD_COMMAND}" "@xcopy /y /s /d /f \"${WTF_DIR}/wtf/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF\" >nul 2>nul\n@xcopy /y /s /d /f \"${DERIVED_SOURCES_DIR}/WTF/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF\" >nul 2>nul\n")
31 file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF)
32
33 set(WTF_OUTPUT_NAME WTF${DEBUG_SUFFIX})