Unreviewed, rolling out r241559 and r241566.
[WebKit-https.git] / Source / WTF / wtf / PlatformGTK.cmake
1 set(WTF_OUTPUT_NAME WTFGTK)
2
3 list(APPEND WTF_PUBLIC_HEADERS
4     glib/GLibUtilities.h
5     glib/GMutexLocker.h
6     glib/GRefPtr.h
7     glib/GTypedefs.h
8     glib/GUniquePtr.h
9     glib/RunLoopSourcePriority.h
10     glib/WTFGType.h
11 )
12
13 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
14     list(APPEND WTF_PUBLIC_HEADERS
15         linux/CurrentProcessMemoryStatus.h
16     )
17 endif ()
18
19 list(APPEND WTF_SOURCES
20     UniStdExtras.cpp
21
22     generic/MainThreadGeneric.cpp
23     generic/WorkQueueGeneric.cpp
24
25     glib/FileSystemGlib.cpp
26     glib/GLibUtilities.cpp
27     glib/GRefPtr.cpp
28     glib/RunLoopGLib.cpp
29     glib/URLGLib.cpp
30
31     posix/OSAllocatorPOSIX.cpp
32     posix/ThreadingPOSIX.cpp
33
34     text/unix/TextBreakIteratorInternalICUUnix.cpp
35
36     unix/CPUTimeUnix.cpp
37     unix/LanguageUnix.cpp
38 )
39
40 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
41     list(APPEND WTF_SOURCES
42         linux/CurrentProcessMemoryStatus.cpp
43         linux/MemoryFootprintLinux.cpp
44         linux/MemoryPressureHandlerLinux.cpp
45     )
46 else ()
47     list(APPEND WTF_SOURCES
48         generic/MemoryFootprintGeneric.cpp
49         generic/MemoryPressureHandlerGeneric.cpp
50     )
51 endif ()
52
53 list(APPEND WTF_LIBRARIES
54     ${CMAKE_THREAD_LIBS_INIT}
55     ${GLIB_GIO_LIBRARIES}
56     ${GLIB_GOBJECT_LIBRARIES}
57     ${GLIB_LIBRARIES}
58     ${ZLIB_LIBRARIES}
59 )
60
61 list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
62     ${GIO_UNIX_INCLUDE_DIRS}
63     ${GLIB_INCLUDE_DIRS}
64 )