[PAL] Move Clock into PAL
[WebKit-https.git] / Source / WebCore / PAL / pal / PlatformWin.cmake
1 list(APPEND PAL_SOURCES
2     crypto/win/CryptoDigestWin.cpp
3
4     system/ClockGeneric.cpp
5
6     system/win/SoundWin.cpp
7
8     text/KillRing.cpp
9 )
10
11 list(APPEND PAL_INCLUDE_DIRECTORIES
12     "${CMAKE_BINARY_DIR}"
13     "${CMAKE_BINARY_DIR}/../include/private"
14     "${DERIVED_SOURCES_PAL_DIR}"
15 )
16
17 list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES .)
18
19 if (${WTF_PLATFORM_WIN_CAIRO})
20     include(PlatformWinCairo.cmake)
21 else ()
22     include(PlatformAppleWin.cmake)
23 endif ()
24
25 set(PAL_OUTPUT_NAME PAL${DEBUG_SUFFIX})
26
27 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal)
28 foreach (_directory ${PAL_FORWARDING_HEADERS_DIRECTORIES})
29     file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
30     file(GLOB _files "${PAL_DIR}/pal/${_directory}/*.h")
31     foreach (_file ${_files})
32         file(COPY ${_file} DESTINATION ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
33     endforeach ()
34 endforeach ()
35
36 # Generate PALHeaderDetection.h by PAL_PreBuild
37 add_custom_target(PAL_PreBuild SOURCES "${DERIVED_SOURCES_PAL_DIR}/PALHeaderDetection.h")
38 add_custom_command(
39     OUTPUT "${DERIVED_SOURCES_PAL_DIR}/PALHeaderDetection.h"
40     WORKING_DIRECTORY "${DERIVED_SOURCES_PAL_DIR}"
41     COMMAND ${PYTHON_EXECUTABLE} ${PAL_DIR}/AVFoundationSupport.py ${WEBKIT_LIBRARIES_DIR} > PALHeaderDetection.h
42     VERBATIM)
43 add_dependencies(PAL PAL_PreBuild)