797c5cfe7a5bebe7da2dc8dd9068ddab32c27d53
[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     WeakObjCPtr.h
12
13     cf/CFURLExtras.h
14     cf/TypeCastsCF.h
15
16     cocoa/Entitlements.h
17     cocoa/NSURLExtras.h
18     cocoa/SoftLinking.h
19
20     darwin/WeakLinking.h
21
22     mac/AppKitCompatibilityDeclarations.h
23
24     spi/cf/CFBundleSPI.h
25     spi/cf/CFStringSPI.h
26
27     spi/cocoa/CFXPCBridgeSPI.h
28     spi/cocoa/SecuritySPI.h
29     spi/cocoa/objcSPI.h
30
31     spi/darwin/DataVaultSPI.h
32     spi/darwin/SandboxSPI.h
33     spi/darwin/XPCSPI.h
34     spi/darwin/dyldSPI.h
35
36     spi/mac/MetadataSPI.h
37
38     text/cf/TextBreakIteratorCF.h
39 )
40
41 list(APPEND WTF_SOURCES
42     BlockObjCExceptions.mm
43
44     cf/CFURLExtras.cpp
45     cf/FileSystemCF.cpp
46     cf/LanguageCF.cpp
47     cf/RunLoopCF.cpp
48     cf/RunLoopTimerCF.cpp
49     cf/SchedulePairCF.cpp
50     cf/URLCF.cpp
51
52     cocoa/AutodrainedPool.cpp
53     cocoa/CPUTimeCocoa.cpp
54     cocoa/Entitlements.mm
55     cocoa/FileSystemCocoa.mm
56     cocoa/MachSendRight.cpp
57     cocoa/MainThreadCocoa.mm
58     cocoa/MemoryFootprintCocoa.cpp
59     cocoa/MemoryPressureHandlerCocoa.mm
60     cocoa/NSURLExtras.mm
61     cocoa/URLCocoa.mm
62     cocoa/WorkQueueCocoa.cpp
63
64     mac/DeprecatedSymbolsUsedBySafari.mm
65     mac/FileSystemMac.mm
66     mac/SchedulePairMac.mm
67
68     posix/FileSystemPOSIX.cpp
69     posix/OSAllocatorPOSIX.cpp
70     posix/ThreadingPOSIX.cpp
71
72     text/cf/AtomStringImplCF.cpp
73     text/cf/StringCF.cpp
74     text/cf/StringImplCF.cpp
75     text/cf/StringViewCF.cpp
76
77     text/cocoa/StringCocoa.mm
78     text/cocoa/StringImplCocoa.mm
79     text/cocoa/StringViewCocoa.mm
80     text/cocoa/TextBreakIteratorInternalICUCocoa.cpp
81 )
82
83 file(COPY mac/MachExceptions.defs DESTINATION ${WTF_DERIVED_SOURCES_DIR})
84
85 add_custom_command(
86     OUTPUT
87         ${WTF_DERIVED_SOURCES_DIR}/MachExceptionsServer.h
88         ${WTF_DERIVED_SOURCES_DIR}/mach_exc.h
89         ${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
90         ${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
91     MAIN_DEPENDENCY mac/MachExceptions.defs
92     WORKING_DIRECTORY ${WTF_DERIVED_SOURCES_DIR}
93     COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
94     VERBATIM)
95 list(APPEND WTF_SOURCES
96     ${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
97     ${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
98 )
99
100 WEBKIT_CREATE_FORWARDING_HEADERS(WebKitLegacy DIRECTORIES ${WebKitLegacy_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebKitLegacy_FORWARDING_HEADERS_FILES})
101 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit DIRECTORIES ${FORWARDING_HEADERS_DIR}/WebKitLegacy)