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