blob: 9dc455256ee1bcd9cfc08f3b069ea89253b80434 [file] [log] [blame]
set(WTF_OUTPUT_NAME WTFGTK)
list(APPEND WTF_PUBLIC_HEADERS
glib/GLibUtilities.h
glib/GMutexLocker.h
glib/GRefPtr.h
glib/GTypedefs.h
glib/GUniquePtr.h
glib/RunLoopSourcePriority.h
glib/WTFGType.h
)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND WTF_PUBLIC_HEADERS
linux/ProcessMemoryFootprint.h
linux/CurrentProcessMemoryStatus.h
)
endif ()
list(APPEND WTF_SOURCES
generic/MainThreadGeneric.cpp
generic/WorkQueueGeneric.cpp
glib/FileSystemGlib.cpp
glib/GLibUtilities.cpp
glib/GRefPtr.cpp
glib/RunLoopGLib.cpp
glib/URLGLib.cpp
posix/OSAllocatorPOSIX.cpp
posix/ThreadingPOSIX.cpp
text/unix/TextBreakIteratorInternalICUUnix.cpp
unix/CPUTimeUnix.cpp
unix/LanguageUnix.cpp
unix/UniStdExtrasUnix.cpp
)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND WTF_SOURCES
linux/CurrentProcessMemoryStatus.cpp
linux/MemoryFootprintLinux.cpp
linux/MemoryPressureHandlerLinux.cpp
)
else ()
list(APPEND WTF_SOURCES
generic/MemoryFootprintGeneric.cpp
generic/MemoryPressureHandlerGeneric.cpp
)
endif ()
list(APPEND WTF_LIBRARIES
${CMAKE_THREAD_LIBS_INIT}
${GLIB_GIO_LIBRARIES}
${GLIB_GOBJECT_LIBRARIES}
${GLIB_LIBRARIES}
${ZLIB_LIBRARIES}
)
list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
${GIO_UNIX_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
)