Fix Windows build after r221017.
[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     PlatformUserPreferredLanguagesWin.cpp
7
8     text/win/TextBreakIteratorInternalICUWin.cpp
9
10     text/cf/AtomicStringImplCF.cpp
11     text/cf/StringCF.cpp
12     text/cf/StringImplCF.cpp
13     text/cf/StringViewCF.cpp
14
15     win/CPUTimeWin.cpp
16     win/MainThreadWin.cpp
17     win/MemoryFootprintWin.cpp
18     win/MemoryPressureHandlerWin.cpp
19     win/RunLoopWin.cpp
20     win/WorkQueueWin.cpp
21 )
22
23 list(APPEND WTF_HEADERS
24     "${DERIVED_SOURCES_WTF_DIR}/AVFoundationHeaderDetection.h"
25 )
26
27 if (${WTF_PLATFORM_WIN_CAIRO})
28     list(APPEND WTF_LIBRARIES
29         cflite
30     )
31 else ()
32     list(APPEND WTF_LIBRARIES
33         CoreFoundation${DEBUG_SUFFIX}
34     )
35 endif ()
36
37 add_custom_command(
38     OUTPUT "${DERIVED_SOURCES_WTF_DIR}/AVFoundationHeaderDetection.h"
39     WORKING_DIRECTORY "${DERIVED_SOURCES_WTF_DIR}"
40     COMMAND ${PYTHON_EXECUTABLE} ${WTF_DIR}/AVFoundationSupport.py ${WEBKIT_LIBRARIES_DIR} > AVFoundationHeaderDetection.h
41     VERBATIM)
42
43 set(WTF_PRE_BUILD_COMMAND "${CMAKE_BINARY_DIR}/DerivedSources/WTF/preBuild.cmd")
44 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")
45 file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF)
46
47 set(WTF_OUTPUT_NAME WTF${DEBUG_SUFFIX})