Schafkopf-Server/Package.swift
2022-10-12 19:32:15 +02:00

42 lines
1.8 KiB
Swift

// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "SchafkopfServer",
platforms: [
.macOS(.v12)
],
dependencies: [
.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"),
// 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"),
],
targets: [
.target(
name: "App",
dependencies: [
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "Vapor", package: "vapor"),
.product(name: "SwiftSMTP", package: "Swift-SMTP"),
],
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")]),
// .testTarget(name: "AppTests", dependencies: [
// .target(name: "App"),
// .product(name: "XCTVapor", package: "vapor"),
// ])
]
)