[Win] WebKitLegacy compile error.
[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     win/LoggingWin.cpp
11 )
12
13 list(APPEND PAL_INCLUDE_DIRECTORIES
14     "${CMAKE_BINARY_DIR}"
15     "${CMAKE_BINARY_DIR}/../include/private"
16     "${DERIVED_SOURCES_PAL_DIR}"
17 )
18
19 list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES
20     .
21     text
22 )
23
24 if (${WTF_PLATFORM_WIN_CAIRO})
25     include(PlatformWinCairo.cmake)
26 else ()
27     include(PlatformAppleWin.cmake)
28 endif ()
29
30 set(PAL_OUTPUT_NAME PAL${DEBUG_SUFFIX})
31
32 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal)
33 foreach (_directory ${PAL_FORWARDING_HEADERS_DIRECTORIES})
34     file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
35     file(GLOB _files "${PAL_DIR}/pal/${_directory}/*.h")
36     foreach (_file ${_files})
37         file(COPY ${_file} DESTINATION ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
38     endforeach ()
39 endforeach ()
40
41 # Generate PALHeaderDetection.h by PAL_PreBuild
42 add_custom_target(PAL_PreBuild SOURCES "${DERIVED_SOURCES_PAL_DIR}/PALHeaderDetection.h")
43 add_custom_command(
44     OUTPUT "${DERIVED_SOURCES_PAL_DIR}/PALHeaderDetection.h"
45     WORKING_DIRECTORY "${DERIVED_SOURCES_PAL_DIR}"
46     COMMAND ${PYTHON_EXECUTABLE} ${PAL_DIR}/AVFoundationSupport.py ${WEBKIT_LIBRARIES_DIR} > PALHeaderDetection.h
47     VERBATIM)
48 add_dependencies(PAL PAL_PreBuild)