[CMake] WebCore derived sources should only be referenced inside WebCore
[WebKit-https.git] / Source / WebCore / PAL / pal / CMakeLists.txt
index 9a023f3..c50c485 100644 (file)
@@ -1,20 +1,58 @@
-set(PAL_SOURCES
+set(PAL_PUBLIC_HEADERS
+    ExportMacros.h
+    FileSizeFormatter.h
+    HysteresisActivity.h
+    LogMacros.h
+    Logging.h
+    SessionID.h
+
+    crypto/CryptoDigest.h
+
+    system/Clock.h
+    system/ClockGeneric.h
+    system/SleepDisabler.h
+    system/Sound.h
+    system/SystemSleepListener.h
+
+    text/KillRing.h
+    text/UnencodableHandling.h
 )
 
-set(PAL_INCLUDE_DIRECTORIES
-    "${PAL_DIR}"
+set(PAL_SOURCES
+    FileSizeFormatter.cpp
+    Logging.cpp
+    SessionID.cpp
+
+    system/SleepDisabler.cpp
+    system/SystemSleepListener.cpp
 )
 
 set(PAL_PRIVATE_INCLUDE_DIRECTORIES
+    "${CMAKE_BINARY_DIR}"
+    "${PAL_DERIVED_SOURCES_DIR}"
+    "${PAL_DIR}"
     "${PAL_DIR}/pal"
     "${PAL_DIR}/pal/crypto"
+    "${PAL_DIR}/pal/system"
+    "${PAL_DIR}/pal/text"
+)
+
+set(PAL_SYSTEM_INCLUDE_DIRECTORIES
+    ${ICU_INCLUDE_DIRS}
 )
 
 set(PAL_LIBRARIES
-    WTF
+    JavaScriptCore${DEBUG_SUFFIX}
 )
 
+WEBKIT_FRAMEWORK_DECLARE(PAL)
 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
 
 WEBKIT_WRAP_SOURCELIST(${PAL_SOURCES})
 WEBKIT_FRAMEWORK(PAL)
+
+WEBKIT_MAKE_FORWARDING_HEADERS(PAL
+    TARGET_NAME PALFrameworkHeaders
+    DESTINATION ${PAL_FRAMEWORK_HEADERS_DIR}/pal
+    FILES ${PAL_PUBLIC_HEADERS}
+)