Generate header detection headers for CMake on Windows.
[WebKit-https.git] / Source / WTF / wtf / PlatformWin.cmake
1 list(APPEND WTF_SOURCES
2     threads/win/BinarySemaphoreWin.cpp
3
4     win/MainThreadWin.cpp
5     win/RunLoopWin.cpp
6 )
7
8 if (WINCE)
9     list(APPEND WTF_LIBRARIES
10         mmtimer
11     )
12 else ()
13     list(APPEND WTF_LIBRARIES
14         winmm
15     )
16 endif ()
17
18 list(APPEND WTF_HEADERS
19     "${DERIVED_SOURCES_WTF_DIR}/WTFHeaderDetection.h"
20 )
21
22 # FIXME: This should run testOSXLevel.cmd if it is available.
23 # https://bugs.webkit.org/show_bug.cgi?id=135861
24 add_custom_command(
25     OUTPUT "${DERIVED_SOURCES_WTF_DIR}/WTFHeaderDetection.h"
26     WORKING_DIRECTORY "${DERIVED_SOURCES_WTF_DIR}"
27     COMMAND echo /* No Legible Output Support Found */ > WTFHeaderDetection.h
28     VERBATIM)