mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change introduces a new compilation target platform to the Swift compiler - visionOS. - Changes to the compiler build infrastrucuture to support building compiler-adjacent artifacts and test suites for the new target. - Addition of the new platform kind definition. - Support for the new platform in language constructs such as compile-time availability annotations or runtime OS version queries. - Utilities to read out Darwin platform SDK info containing platform mapping data. - Utilities to support re-mapping availability annotations from iOS to visionOS (e.g. 'updateIntroducedPlatformForFallback', 'updateDeprecatedPlatformForFallback', 'updateObsoletedPlatformForFallback'). - Additional tests exercising platform-specific availability handling and availability re-mapping fallback code-path. - Changes to existing test suite to accomodate the new platform.
39 lines
1.3 KiB
CMake
39 lines
1.3 KiB
CMake
set(swift_oslog_darwin_dependencies "")
|
|
if(SWIFT_BUILD_SDK_OVERLAY)
|
|
list(APPEND swift_oslog_darwin_dependencies "Darwin")
|
|
endif()
|
|
if (SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
|
|
list(APPEND swift_oslog_darwin_dependencies "_Concurrency")
|
|
endif()
|
|
if (SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING)
|
|
list(APPEND swift_oslog_darwin_dependencies "_StringProcessing")
|
|
endif()
|
|
|
|
add_swift_target_library(swiftOSLogTestHelper
|
|
IS_SDK_OVERLAY
|
|
SHARED
|
|
|
|
OSLogTestHelper.swift
|
|
OSLogMessage.swift
|
|
OSLogIntegerFormatting.swift
|
|
OSLogStringAlignment.swift
|
|
OSLogIntegerTypes.swift
|
|
OSLogStringTypes.swift
|
|
OSLogNSObjectType.swift
|
|
OSLogFloatingPointTypes.swift
|
|
OSLogSwiftProtocols.swift
|
|
OSLogPrivacy.swift
|
|
OSLogFloatFormatting.swift
|
|
|
|
SWIFT_MODULE_DEPENDS_IOS ${swift_oslog_darwin_dependencies}
|
|
SWIFT_MODULE_DEPENDS_OSX ${swift_oslog_darwin_dependencies}
|
|
SWIFT_MODULE_DEPENDS_TVOS ${swift_oslog_darwin_dependencies}
|
|
SWIFT_MODULE_DEPENDS_WATCHOS ${swift_oslog_darwin_dependencies}
|
|
SWIFT_MODULE_DEPENDS_XROS ${swift_oslog_darwin_dependencies}
|
|
SWIFT_MODULE_DEPENDS_MACCATALYST ${swift_oslog_darwin_dependencies}
|
|
TARGET_SDKS ALL_APPLE_PLATFORMS
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
INSTALL_IN_COMPONENT never_install
|
|
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}"
|
|
MACCATALYST_BUILD_FLAVOR "zippered")
|