[WTF] Add environment variable helpers
[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/EnvironmentPOSIX.cpp
32     posix/OSAllocatorPOSIX.cpp
33     posix/ThreadingPOSIX.cpp
34
35     text/unix/TextBreakIteratorInternalICUUnix.cpp
36
37     unix/CPUTimeUnix.cpp
38     unix/LanguageUnix.cpp
39 )
40
41 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
42     list(APPEND WTF_SOURCES
43         linux/CurrentProcessMemoryStatus.cpp
44         linux/MemoryFootprintLinux.cpp
45         linux/MemoryPressureHandlerLinux.cpp
46     )
47 else ()
48     list(APPEND WTF_SOURCES
49         generic/MemoryFootprintGeneric.cpp
50         generic/MemoryPressureHandlerGeneric.cpp
51     )
52 endif ()
53
54 list(APPEND WTF_LIBRARIES
55     ${CMAKE_THREAD_LIBS_INIT}
56     ${GLIB_GIO_LIBRARIES}
57     ${GLIB_GOBJECT_LIBRARIES}
58     ${GLIB_LIBRARIES}
59     ${ZLIB_LIBRARIES}
60 )
61
62 list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
63     ${GIO_UNIX_INCLUDE_DIRS}
64     ${GLIB_INCLUDE_DIRS}
65 )