[Win][CMake] Use add_custom_command to copy each forwarding header files
[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_FORWARDING_HEADERS_DIRECTORIES
30     .
31     cf
32     dtoa
33     generic
34     persistence
35     spi
36     text
37     threads
38     unicode
39     win
40 )
41 WEBKIT_MAKE_FORWARDING_HEADERS(WTF
42     DESTINATION ${FORWARDING_HEADERS_DIR}/wtf
43     DIRECTORIES ${WTF_FORWARDING_HEADERS_DIRECTORIES})
44
45 set(WTF_OUTPUT_NAME WTF${DEBUG_SUFFIX})