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