d1c76f792b4e98fe5ba245f4d4bbd0d23048e092
[WebKit-https.git] / Source / WTF / wtf / PlatformJSCOnly.cmake
1 list(APPEND WTF_SOURCES
2
3     generic/MainThreadGeneric.cpp
4     generic/WorkQueueGeneric.cpp
5 )
6
7 if (WIN32)
8     list(APPEND WTF_SOURCES
9         win/CPUTimeWin.cpp
10         win/LanguageWin.cpp
11         text/win/TextBreakIteratorInternalICUWin.cpp
12     )
13 else ()
14     list(APPEND WTF_SOURCES
15         unix/CPUTimeUnix.cpp
16         unix/LanguageUnix.cpp
17         text/unix/TextBreakIteratorInternalICUUnix.cpp
18     )
19 endif ()
20
21 if (WIN32)
22     list(APPEND WTF_SOURCES
23         win/MemoryFootprintWin.cpp
24     )
25 elseif (APPLE)
26     file(COPY mac/MachExceptions.defs DESTINATION ${DERIVED_SOURCES_WTF_DIR})
27     add_custom_command(
28         OUTPUT
29             ${DERIVED_SOURCES_WTF_DIR}/MachExceptionsServer.h
30             ${DERIVED_SOURCES_WTF_DIR}/mach_exc.h
31             ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
32             ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
33         MAIN_DEPENDENCY mac/MachExceptions.defs
34         WORKING_DIRECTORY ${DERIVED_SOURCES_WTF_DIR}
35         COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
36         VERBATIM)
37     list(APPEND WTF_SOURCES
38         cocoa/MemoryFootprintCocoa.cpp
39         ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
40         ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
41     )
42     list(APPEND WTF_INCLUDE_DIRECTORIES
43         ${DERIVED_SOURCES_WTF_DIR}
44     )
45 else ()
46     list(APPEND WTF_SOURCES
47         linux/MemoryFootprintLinux.cpp
48     )
49 endif ()
50
51 if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
52     list(APPEND WTF_SOURCES
53         glib/GRefPtr.cpp
54         glib/RunLoopGLib.cpp
55     )
56     list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
57         ${GLIB_INCLUDE_DIRS}
58     )
59     list(APPEND WTF_LIBRARIES
60         ${GLIB_GIO_LIBRARIES}
61         ${GLIB_GOBJECT_LIBRARIES}
62         ${GLIB_LIBRARIES}
63     )
64 else ()
65     list(APPEND WTF_SOURCES
66         generic/RunLoopGeneric.cpp
67     )
68 endif ()
69
70 list(APPEND WTF_LIBRARIES
71     ${CMAKE_THREAD_LIBS_INIT}
72 )
73
74 if (APPLE)
75     list(APPEND WTF_INCLUDE_DIRECTORIES
76         "${WTF_DIR}/icu"
77     )
78 endif ()