[CMake] WebCore derived sources should only be referenced inside WebCore
[WebKit-https.git] / Source / WebCore / PAL / pal / PlatformWin.cmake
index a067f95..dafdd4a 100644 (file)
@@ -1,6 +1,4 @@
 list(APPEND PAL_SOURCES
-    crypto/win/CryptoDigestWin.cpp
-
     system/ClockGeneric.cpp
 
     system/win/SoundWin.cpp
@@ -11,14 +9,7 @@ list(APPEND PAL_SOURCES
 )
 
 list(APPEND PAL_INCLUDE_DIRECTORIES
-    "${CMAKE_BINARY_DIR}"
     "${CMAKE_BINARY_DIR}/../include/private"
-    "${DERIVED_SOURCES_PAL_DIR}"
-)
-
-list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES
-    .
-    text
 )
 
 if (${WTF_PLATFORM_WIN_CAIRO})
@@ -28,21 +19,3 @@ else ()
 endif ()
 
 set(PAL_OUTPUT_NAME PAL${DEBUG_SUFFIX})
-
-file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal)
-foreach (_directory ${PAL_FORWARDING_HEADERS_DIRECTORIES})
-    file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
-    file(GLOB _files "${PAL_DIR}/pal/${_directory}/*.h")
-    foreach (_file ${_files})
-        file(COPY ${_file} DESTINATION ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
-    endforeach ()
-endforeach ()
-
-# Generate PALHeaderDetection.h by PAL_PreBuild
-add_custom_target(PAL_PreBuild SOURCES "${DERIVED_SOURCES_PAL_DIR}/PALHeaderDetection.h")
-add_custom_command(
-    OUTPUT "${DERIVED_SOURCES_PAL_DIR}/PALHeaderDetection.h"
-    WORKING_DIRECTORY "${DERIVED_SOURCES_PAL_DIR}"
-    COMMAND ${PYTHON_EXECUTABLE} ${PAL_DIR}/AVFoundationSupport.py ${WEBKIT_LIBRARIES_DIR} > PALHeaderDetection.h
-    VERBATIM)
-add_dependencies(PAL PAL_PreBuild)