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