-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from unsignedapps/swift-6
Added support for Xcode 16 and Swift 6
- Loading branch information
Showing
18 changed files
with
801 additions
and
147 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
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
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
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
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,101 @@ | ||
// swift-tools-version:5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import CompilerPluginSupport | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Vexil", | ||
|
||
platforms: [ | ||
.iOS(.v15), | ||
.macOS(.v12), | ||
.tvOS(.v15), | ||
.watchOS(.v8), | ||
], | ||
|
||
products: [ | ||
// Automatic | ||
.library(name: "Vexil", targets: [ "Vexil" ]), | ||
// .library(name: "Vexillographer", targets: [ "Vexillographer" ]), | ||
], | ||
|
||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-async-algorithms.git", from: "1.0.0"), | ||
.package(url: "https://github.com/nicklockwood/SwiftFormat.git", from: "0.54.1"), | ||
.package(url: "https://github.com/apple/swift-syntax.git", from: "510.0.0"), | ||
], | ||
|
||
targets: { | ||
var targets: [Target] = [ | ||
|
||
// Vexil | ||
|
||
.target( | ||
name: "Vexil", | ||
dependencies: [ | ||
.target(name: "VexilMacros"), | ||
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"), | ||
], | ||
swiftSettings: [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
), | ||
.testTarget( | ||
name: "VexilTests", | ||
dependencies: [ | ||
.target(name: "Vexil"), | ||
], | ||
swiftSettings: [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
), | ||
|
||
// Vexillographer | ||
|
||
// .target( | ||
// name: "Vexillographer", | ||
// dependencies: [ | ||
// .target(name: "Vexil"), | ||
// ] | ||
// ), | ||
|
||
// Macros | ||
|
||
.macro( | ||
name: "VexilMacros", | ||
dependencies: [ | ||
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"), | ||
.product(name: "SwiftSyntax", package: "swift-syntax"), | ||
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"), | ||
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"), | ||
], | ||
swiftSettings: [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
), | ||
|
||
] | ||
|
||
#if !os(Linux) | ||
targets += [ | ||
.testTarget( | ||
name: "VexilMacroTests", | ||
dependencies: [ | ||
.target(name: "VexilMacros"), | ||
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"), | ||
], | ||
swiftSettings: [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
), | ||
] | ||
#endif | ||
|
||
return targets | ||
}(), | ||
|
||
swiftLanguageVersions: [ | ||
.v5, | ||
] | ||
) |
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
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
Oops, something went wrong.