f071d2f0ebb0941aa7832f59a416809c25da2c41
[WebKit-https.git] / Source / WTF / wtf / PlatformMac.cmake
1 find_library(COCOA_LIBRARY Cocoa)
2 find_library(COREFOUNDATION_LIBRARY CoreFoundation)
3 find_library(READLINE_LIBRARY Readline)
4 list(APPEND WTF_LIBRARIES
5     ${COREFOUNDATION_LIBRARY}
6     ${COCOA_LIBRARY}
7     ${READLINE_LIBRARY}
8 )
9
10 list(APPEND WTF_SOURCES
11     AutodrainedPoolMac.mm
12     BlockObjCExceptions.mm
13     RunLoopTimerCF.cpp
14     SchedulePairCF.cpp
15     SchedulePairMac.mm
16
17     cf/LanguageCF.cpp
18     cf/RunLoopCF.cpp
19
20     text/mac/TextBreakIteratorInternalICUMac.mm
21
22     cocoa/CPUTimeCocoa.mm
23     cocoa/MemoryFootprintCocoa.cpp
24     cocoa/MemoryPressureHandlerCocoa.mm
25     cocoa/WorkQueueCocoa.cpp
26
27     mac/DeprecatedSymbolsUsedBySafari.mm
28     mac/MainThreadMac.mm
29
30     text/cf/AtomicStringImplCF.cpp
31     text/cf/StringCF.cpp
32     text/cf/StringImplCF.cpp
33     text/cf/StringViewCF.cpp
34
35     text/mac/StringImplMac.mm
36     text/mac/StringMac.mm
37     text/mac/StringViewObjC.mm
38 )
39
40 list(APPEND WTF_INCLUDE_DIRECTORIES
41     "${WTF_DIR}/icu"
42     "${WTF_DIR}/wtf/spi/darwin"
43     ${DERIVED_SOURCES_WTF_DIR}
44 )
45
46 file(COPY mac/MachExceptions.defs DESTINATION ${DERIVED_SOURCES_WTF_DIR})
47
48 add_custom_command(
49     OUTPUT
50         ${DERIVED_SOURCES_WTF_DIR}/MachExceptionsServer.h
51         ${DERIVED_SOURCES_WTF_DIR}/mach_exc.h
52         ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
53         ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
54     MAIN_DEPENDENCY mac/MachExceptions.defs
55     WORKING_DIRECTORY ${DERIVED_SOURCES_WTF_DIR}
56     COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
57     VERBATIM)
58 list(APPEND WTF_SOURCES
59     ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
60     ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
61 )
62
63 WEBKIT_CREATE_FORWARDING_HEADERS(WebKitLegacy DIRECTORIES ${WebKitLegacy_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebKitLegacy_FORWARDING_HEADERS_FILES})
64 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit DIRECTORIES ${FORWARDING_HEADERS_DIR}/WebKitLegacy)