mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-24 04:17:52 +00:00
* Add shims and adjust availability to allow for swift 5.6 toolchains to build until source stability is achieved * Restore availability again
37 lines
1.1 KiB
Swift
37 lines
1.1 KiB
Swift
// swift-tools-version: 5.6
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "AsyncAlgorithms",
|
|
platforms: [
|
|
.macOS("10.15"),
|
|
.iOS("13.0"),
|
|
.tvOS("13.0"),
|
|
.watchOS("6.0")
|
|
],
|
|
products: [
|
|
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
|
|
.library(name: "ClockShims", type: .static, targets: ["ClockShims"]),
|
|
.library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]),
|
|
.library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"])
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(name: "AsyncAlgorithms", dependencies: ["ClockShims"]),
|
|
.target(name: "ClockShims"),
|
|
.target(
|
|
name: "AsyncSequenceValidation",
|
|
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"]),
|
|
.systemLibrary(name: "_CAsyncSequenceValidationSupport"),
|
|
.testTarget(
|
|
name: "AsyncAlgorithmsTests",
|
|
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"],
|
|
swiftSettings: [
|
|
.unsafeFlags([
|
|
"-Xfrontend", "-disable-availability-checking"
|
|
])
|
|
]),
|
|
]
|
|
)
|