4d837a4471555431e22a794e9ead321302d7221f
[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_PUBLIC_HEADERS
11     cf/TypeCastsCF.h
12
13     cocoa/Entitlements.h
14     cocoa/MachSendRight.h
15     cocoa/SoftLinking.h
16
17     darwin/WeakLinking.h
18
19     mac/AppKitCompatibilityDeclarations.h
20
21     spi/cf/CFBundleSPI.h
22     spi/cf/CFStringSPI.h
23
24     spi/cocoa/FoundationSPI.h
25     spi/cocoa/NSMapTableSPI.h
26     spi/cocoa/SecuritySPI.h
27
28     spi/darwin/SandboxSPI.h
29     spi/darwin/XPCSPI.h
30     spi/darwin/dyldSPI.h
31
32     text/cf/TextBreakIteratorCF.h
33 )
34
35 list(APPEND WTF_SOURCES
36     BlockObjCExceptions.mm
37     RunLoopTimerCF.cpp
38     SchedulePairCF.cpp
39     SchedulePairMac.mm
40
41     cf/LanguageCF.cpp
42     cf/RunLoopCF.cpp
43
44     cocoa/AutodrainedPool.mm
45     cocoa/CPUTimeCocoa.mm
46     cocoa/Entitlements.cpp
47     cocoa/MachSendRight.cpp
48     cocoa/MemoryFootprintCocoa.cpp
49     cocoa/MemoryPressureHandlerCocoa.mm
50     cocoa/WorkQueueCocoa.cpp
51
52     mac/DeprecatedSymbolsUsedBySafari.mm
53     mac/MainThreadMac.mm
54
55     text/cf/AtomicStringImplCF.cpp
56     text/cf/StringCF.cpp
57     text/cf/StringImplCF.cpp
58     text/cf/StringViewCF.cpp
59
60     text/mac/StringImplMac.mm
61     text/mac/StringMac.mm
62     text/mac/StringViewObjC.mm
63     text/mac/TextBreakIteratorInternalICUMac.mm
64 )
65
66 list(APPEND WTF_PRIVATE_INCLUDE_DIRECTORIES
67     "${WTF_DIR}/icu"
68     ${DERIVED_SOURCES_WTF_DIR}
69 )
70
71 file(COPY mac/MachExceptions.defs DESTINATION ${DERIVED_SOURCES_WTF_DIR})
72
73 add_custom_command(
74     OUTPUT
75         ${DERIVED_SOURCES_WTF_DIR}/MachExceptionsServer.h
76         ${DERIVED_SOURCES_WTF_DIR}/mach_exc.h
77         ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
78         ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
79     MAIN_DEPENDENCY mac/MachExceptions.defs
80     WORKING_DIRECTORY ${DERIVED_SOURCES_WTF_DIR}
81     COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
82     VERBATIM)
83 list(APPEND WTF_SOURCES
84     ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
85     ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
86 )
87
88 WEBKIT_CREATE_FORWARDING_HEADERS(WebKitLegacy DIRECTORIES ${WebKitLegacy_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebKitLegacy_FORWARDING_HEADERS_FILES})
89 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit DIRECTORIES ${FORWARDING_HEADERS_DIR}/WebKitLegacy)