Move WebCore CPUTime to WTF and implement it in all the platforms
[WebKit-https.git] / Source / WTF / wtf / PlatformMac.cmake
1 set(WTF_LIBRARY_TYPE STATIC)
2
3 find_library(COCOA_LIBRARY Cocoa)
4 find_library(COREFOUNDATION_LIBRARY CoreFoundation)
5 find_library(READLINE_LIBRARY Readline)
6 list(APPEND WTF_LIBRARIES
7     ${COREFOUNDATION_LIBRARY}
8     ${COCOA_LIBRARY}
9     ${READLINE_LIBRARY}
10     libicucore.dylib
11 )
12
13 list(APPEND WTF_SOURCES
14     AutodrainedPoolMac.mm
15     BlockObjCExceptions.mm
16     PlatformUserPreferredLanguagesMac.mm
17     RunLoopTimerCF.cpp
18     SchedulePairCF.cpp
19     SchedulePairMac.mm
20
21     text/mac/TextBreakIteratorInternalICUMac.mm
22
23     cf/RunLoopCF.cpp
24
25     cocoa/CPUTimeCocoa.mm
26     cocoa/MemoryPressureHandlerCocoa.mm
27     cocoa/WorkQueueCocoa.cpp
28
29     mac/DeprecatedSymbolsUsedBySafari.mm
30     mac/MainThreadMac.mm
31
32     text/cf/AtomicStringImplCF.cpp
33     text/cf/StringCF.cpp
34     text/cf/StringImplCF.cpp
35     text/cf/StringViewCF.cpp
36
37     text/mac/StringImplMac.mm
38     text/mac/StringMac.mm
39     text/mac/StringViewObjC.mm
40 )
41
42 list(APPEND WTF_INCLUDE_DIRECTORIES
43     "${WTF_DIR}/icu"
44     "${WTF_DIR}/wtf/spi/darwin"
45 )