Move URL from WebCore to WTF
[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/GUniquePtrSoup.h
10     glib/RunLoopSourcePriority.h
11     glib/WTFGType.h
12 )
13
14 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
15     list(APPEND WTF_PUBLIC_HEADERS
16         linux/CurrentProcessMemoryStatus.h
17     )
18 endif ()
19
20 list(APPEND WTF_SOURCES
21     UniStdExtras.cpp
22
23     generic/MainThreadGeneric.cpp
24     generic/WorkQueueGeneric.cpp
25
26     glib/GLibUtilities.cpp
27     glib/GRefPtr.cpp
28     glib/RunLoopGLib.cpp
29     glib/URLSoup.cpp
30
31     text/unix/TextBreakIteratorInternalICUUnix.cpp
32
33     unix/CPUTimeUnix.cpp
34     unix/LanguageUnix.cpp
35 )
36
37 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
38     list(APPEND WTF_SOURCES
39         linux/CurrentProcessMemoryStatus.cpp
40         linux/MemoryFootprintLinux.cpp
41         linux/MemoryPressureHandlerLinux.cpp
42     )
43 else ()
44     list(APPEND WTF_SOURCES
45         generic/MemoryFootprintGeneric.cpp
46         generic/MemoryPressureHandlerGeneric.cpp
47     )
48 endif ()
49
50 list(APPEND WTF_LIBRARIES
51     ${CMAKE_THREAD_LIBS_INIT}
52     ${GLIB_GIO_LIBRARIES}
53     ${GLIB_GOBJECT_LIBRARIES}
54     ${GLIB_LIBRARIES}
55     ${LIBSOUP_LIBRARIES}
56     ${ZLIB_LIBRARIES}
57 )
58
59 list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
60     ${GLIB_INCLUDE_DIRS}
61     ${LIBSOUP_INCLUDE_DIRS}
62 )