blob: af9471a0c384b61072a12af98f1aa74b664ebf8b [file] [log] [blame]
find_library(COCOA_LIBRARY Cocoa)
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
find_library(READLINE_LIBRARY Readline)
find_library(SECURITY_LIBRARY Security)
list(APPEND WTF_LIBRARIES
${COREFOUNDATION_LIBRARY}
${COCOA_LIBRARY}
${READLINE_LIBRARY}
${SECURITY_LIBRARY}
)
list(APPEND WTF_PUBLIC_HEADERS
WeakObjCPtr.h
cf/CFURLExtras.h
cf/SpanCF.h
cf/TypeCastsCF.h
cocoa/CrashReporter.h
cocoa/Entitlements.h
cocoa/NSURLExtras.h
cocoa/RuntimeApplicationChecksCocoa.h
cocoa/SoftLinking.h
cocoa/SpanCocoa.h
cocoa/TollFreeBridging.h
cocoa/TypeCastsCocoa.h
cocoa/VectorCocoa.h
darwin/WeakLinking.h
spi/cf/CFBundleSPI.h
spi/cf/CFStringSPI.h
spi/cocoa/CFXPCBridgeSPI.h
spi/cocoa/CrashReporterClientSPI.h
spi/cocoa/MachVMSPI.h
spi/cocoa/NSLocaleSPI.h
spi/cocoa/NSObjCRuntimeSPI.h
spi/cocoa/SecuritySPI.h
spi/cocoa/objcSPI.h
spi/darwin/CodeSignSPI.h
spi/darwin/DataVaultSPI.h
spi/darwin/OSVariantSPI.h
spi/darwin/ProcessMemoryFootprint.h
spi/darwin/SandboxSPI.h
spi/darwin/XPCSPI.h
spi/darwin/dyldSPI.h
spi/mac/MetadataSPI.h
text/cf/StringConcatenateCF.h
text/cf/TextBreakIteratorCF.h
)
list(APPEND WTF_SOURCES
BlockObjCExceptions.mm
ProcessPrivilege.cpp
TranslatedProcess.cpp
cf/CFURLExtras.cpp
cf/FileSystemCF.cpp
cf/LanguageCF.cpp
cf/RunLoopCF.cpp
cf/SchedulePairCF.cpp
cf/URLCF.cpp
cocoa/AutodrainedPool.cpp
cocoa/CrashReporter.cpp
cocoa/Entitlements.mm
cocoa/FileSystemCocoa.mm
cocoa/LanguageCocoa.mm
cocoa/LoggingCocoa.mm
cocoa/MachSendRight.cpp
cocoa/MainThreadCocoa.mm
cocoa/MemoryFootprintCocoa.cpp
cocoa/MemoryPressureHandlerCocoa.mm
cocoa/NSURLExtras.mm
cocoa/ResourceUsageCocoa.cpp
cocoa/RuntimeApplicationChecksCocoa.cpp
cocoa/SystemTracingCocoa.cpp
cocoa/URLCocoa.mm
cocoa/WorkQueueCocoa.cpp
mac/FileSystemMac.mm
mac/SchedulePairMac.mm
posix/CPUTimePOSIX.cpp
posix/FileSystemPOSIX.cpp
posix/OSAllocatorPOSIX.cpp
posix/ThreadingPOSIX.cpp
text/cf/AtomStringImplCF.cpp
text/cf/StringCF.cpp
text/cf/StringImplCF.cpp
text/cf/StringViewCF.cpp
text/cocoa/ASCIILiteralCocoa.mm
text/cocoa/StringCocoa.mm
text/cocoa/StringImplCocoa.mm
text/cocoa/StringViewCocoa.mm
text/cocoa/TextBreakIteratorInternalICUCocoa.cpp
)
file(COPY mac/MachExceptions.defs DESTINATION ${WTF_DERIVED_SOURCES_DIR})
add_custom_command(
OUTPUT
${WTF_DERIVED_SOURCES_DIR}/MachExceptionsServer.h
${WTF_DERIVED_SOURCES_DIR}/mach_exc.h
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
MAIN_DEPENDENCY mac/MachExceptions.defs
WORKING_DIRECTORY ${WTF_DERIVED_SOURCES_DIR}
COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
VERBATIM)
list(APPEND WTF_SOURCES
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
)