34 lines
1.3 KiB
Swift
34 lines
1.3 KiB
Swift
// swift-tools-version: 6.2
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Byre",
|
|
platforms: [.macOS("27.0")],
|
|
dependencies: [
|
|
.package(url: "https://github.com/migueldeicaza/SwiftTerm", from: "1.2.0"),
|
|
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.10.0"),
|
|
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.8.0"),
|
|
.package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.1.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ByreAPI",
|
|
dependencies: [
|
|
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
|
],
|
|
swiftSettings: [.unsafeFlags(["-suppress-warnings"])],
|
|
plugins: [.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")]
|
|
),
|
|
.executableTarget(
|
|
name: "Byre",
|
|
dependencies: [
|
|
"ByreAPI",
|
|
.product(name: "SwiftTerm", package: "SwiftTerm"),
|
|
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
|
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
|
|
],
|
|
swiftSettings: [.strictMemorySafety()]
|
|
),
|
|
]
|
|
)
|