2021-11-25 19:15:38 +01:00
|
|
|
// swift-tools-version:5.5
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "SchafkopfServer",
|
|
|
|
platforms: [
|
2022-10-12 19:31:07 +02:00
|
|
|
.macOS(.v12)
|
2021-11-25 19:15:38 +01:00
|
|
|
],
|
|
|
|
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"),
|
2022-10-12 19:31:19 +02:00
|
|
|
.package(name: "fluent-sqlite-driver", url: "https://github.com/vapor/fluent-sqlite.git", from: "4.0.0"),
|
|
|
|
// Alternatives:
|
|
|
|
// https://github.com/onevcat/Hedwig
|
|
|
|
// https://github.com/Joannis/SMTPKitten
|
|
|
|
// https://github.com/Joannis/VaporSMTPKit <- Uses SMTPKitten
|
|
|
|
.package(name: "Swift-SMTP", url: "https://github.com/Kitura/Swift-SMTP", from: "5.1.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"),
|
2022-10-12 19:31:19 +02:00
|
|
|
.product(name: "SwiftSMTP", package: "Swift-SMTP"),
|
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
|
|
|
]
|
|
|
|
)
|