Schafkopf-Server/Package.swift

36 lines
1.5 KiB
Swift
Raw Normal View History

2021-11-25 19:15:38 +01:00
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "SchafkopfServer",
platforms: [
.macOS(.v10_15)
],
dependencies: [
2021-12-22 22:10:26 +01:00
.package(name: "vapor", url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(name: "fluent", url: "https://github.com/vapor/fluent.git", from: "4.0.0"),
.package(name: "fluent-sqlite-driver", url: "https://github.com/vapor/fluent-sqlite.git", from: "4.0.0")
2021-11-25 19:15:38 +01:00
],
targets: [
.target(
name: "App",
dependencies: [
2021-12-22 22:10:26 +01:00
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "Vapor", package: "vapor"),
2021-11-25 19:15:38 +01:00
],
swiftSettings: [
// Enable better optimizations when building in Release configuration. Despite the use of
// the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
// builds. See <https://github.com/swift-server/guides/blob/main/docs/building.md#building-for-production> for details.
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
]
),
.executableTarget(name: "Run", dependencies: [.target(name: "App")]),
2021-12-22 22:10:26 +01:00
// .testTarget(name: "AppTests", dependencies: [
// .target(name: "App"),
// .product(name: "XCTVapor", package: "vapor"),
// ])
2021-11-25 19:15:38 +01:00
]
)