[CMake] Apple builds should use ICU_INCLUDE_DIRS
[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/SandboxSPI.h
32     spi/darwin/XPCSPI.h
33     spi/darwin/dyldSPI.h
34
35     spi/mac/MetadataSPI.h
36
37     text/cf/TextBreakIteratorCF.h
38 )
39
40 list(APPEND WTF_SOURCES
41     BlockObjCExceptions.mm
42
43     cf/CFURLExtras.cpp
44     cf/FileSystemCF.cpp
45     cf/LanguageCF.cpp
46     cf/RunLoopCF.cpp
47     cf/RunLoopTimerCF.cpp
48     cf/SchedulePairCF.cpp
49     cf/URLCF.cpp
50
51     cocoa/AutodrainedPool.cpp
52     cocoa/CPUTimeCocoa.cpp
53     cocoa/Entitlements.mm
54     cocoa/FileSystemCocoa.mm
55     cocoa/MachSendRight.cpp
56     cocoa/MainThreadCocoa.mm
57     cocoa/MemoryFootprintCocoa.cpp
58     cocoa/MemoryPressureHandlerCocoa.mm
59     cocoa/NSURLExtras.mm
60     cocoa/URLCocoa.mm
61     cocoa/WorkQueueCocoa.cpp
62
63     mac/DeprecatedSymbolsUsedBySafari.mm
64     mac/FileSystemMac.mm
65     mac/SchedulePairMac.mm
66
67     posix/FileSystemPOSIX.cpp
68     posix/OSAllocatorPOSIX.cpp
69     posix/ThreadingPOSIX.cpp
70
71     text/cf/AtomicStringImplCF.cpp
72     text/cf/StringCF.cpp
73     text/cf/StringImplCF.cpp
74     text/cf/StringViewCF.cpp
75
76     text/cocoa/StringCocoa.mm
77     text/cocoa/StringImplCocoa.mm
78     text/cocoa/StringViewCocoa.mm
79     text/cocoa/TextBreakIteratorInternalICUCocoa.cpp
80 )
81
82 list(APPEND WTF_PRIVATE_INCLUDE_DIRECTORIES
83     ${DERIVED_SOURCES_WTF_DIR}
84 )
85
86 file(COPY mac/MachExceptions.defs DESTINATION ${DERIVED_SOURCES_WTF_DIR})
87
88 add_custom_command(
89     OUTPUT
90         ${DERIVED_SOURCES_WTF_DIR}/MachExceptionsServer.h
91         ${DERIVED_SOURCES_WTF_DIR}/mach_exc.h
92         ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
93         ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
94     MAIN_DEPENDENCY mac/MachExceptions.defs
95     WORKING_DIRECTORY ${DERIVED_SOURCES_WTF_DIR}
96     COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
97     VERBATIM)
98 list(APPEND WTF_SOURCES
99     ${DERIVED_SOURCES_WTF_DIR}/mach_excServer.c
100     ${DERIVED_SOURCES_WTF_DIR}/mach_excUser.c
101 )
102
103 WEBKIT_CREATE_FORWARDING_HEADERS(WebKitLegacy DIRECTORIES ${WebKitLegacy_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebKitLegacy_FORWARDING_HEADERS_FILES})
104 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit DIRECTORIES ${FORWARDING_HEADERS_DIR}/WebKitLegacy)