blob: bb01bfeeac63f854fa656ec6b8d262fafc4c9df5 [file] [log] [blame]
set(WTF_OUTPUT_NAME WTFGTK)
list(APPEND WTF_PUBLIC_HEADERS
glib/ChassisType.h
glib/GMutexLocker.h
glib/GRefPtr.h
glib/GSocketMonitor.h
glib/GTypedefs.h
glib/GUniquePtr.h
glib/RunLoopSourcePriority.h
glib/Sandbox.h
glib/SocketConnection.h
glib/WTFGType.h
linux/RealTimeThreads.h
unix/UnixFileDescriptor.h
)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND WTF_PUBLIC_HEADERS
linux/ProcessMemoryFootprint.h
linux/CurrentProcessMemoryStatus.h
)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
list(APPEND WTF_PUBLIC_HEADERS
spi/darwin/ProcessMemoryFootprint.h
)
endif ()
list(APPEND WTF_SOURCES
generic/MainThreadGeneric.cpp
generic/WorkQueueGeneric.cpp
glib/ChassisType.cpp
glib/FileSystemGlib.cpp
glib/GRefPtr.cpp
glib/GSocketMonitor.cpp
glib/RunLoopGLib.cpp
glib/Sandbox.cpp
glib/SocketConnection.cpp
glib/URLGLib.cpp
posix/CPUTimePOSIX.cpp
posix/OSAllocatorPOSIX.cpp
posix/ThreadingPOSIX.cpp
text/unix/TextBreakIteratorInternalICUUnix.cpp
unix/LanguageUnix.cpp
unix/LoggingUnix.cpp
unix/UniStdExtrasUnix.cpp
)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND WTF_SOURCES
linux/CurrentProcessMemoryStatus.cpp
linux/MemoryFootprintLinux.cpp
linux/RealTimeThreads.cpp
unix/MemoryPressureHandlerUnix.cpp
)
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
list(APPEND WTF_SOURCES
generic/MemoryFootprintGeneric.cpp
unix/MemoryPressureHandlerUnix.cpp
)
else ()
list(APPEND WTF_SOURCES
generic/MemoryFootprintGeneric.cpp
generic/MemoryPressureHandlerGeneric.cpp
)
endif ()
list(APPEND WTF_LIBRARIES
${GLIB_GIO_LIBRARIES}
${GLIB_GOBJECT_LIBRARIES}
${GLIB_LIBRARIES}
Threads::Threads
ZLIB::ZLIB
)
if (Journald_FOUND)
list(APPEND WTF_LIBRARIES Journald::Journald)
endif ()
list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
${GIO_UNIX_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
)