-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump swift-tools-version to 5.9 for visionOS support
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// swift-tools-version:5.0 | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
#if canImport(Compression) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// swift-tools-version:5.0 | ||
import PackageDescription | ||
|
||
#if canImport(Compression) | ||
let targets: [Target] = [ | ||
.target(name: "ZIPFoundation"), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
#else | ||
let targets: [Target] = [ | ||
.systemLibrary(name: "CZLib", pkgConfig: "zlib", providers: [.brew(["zlib"]), .apt(["zlib"])]), | ||
.target(name: "ZIPFoundation", dependencies: ["CZLib"], cSettings: [.define("_GNU_SOURCE", to: "1")]), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
#endif | ||
|
||
let package = Package( | ||
name: "ZIPFoundation", | ||
platforms: [ | ||
.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2) | ||
], | ||
products: [ | ||
.library(name: "ZIPFoundation", targets: ["ZIPFoundation"]) | ||
], | ||
targets: targets, | ||
swiftLanguageVersions: [.v4, .v4_2, .v5] | ||
) |