Schafkopf-Server/Package.swift

44 lines
2.0 KiB
Swift
Raw Normal View History

2022-10-18 11:39:09 +02:00
// swift-tools-version:5.6
2021-11-25 19:15:38 +01:00
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: [
2022-10-18 11:39:09 +02:00
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent-sqlite.git", from: "4.0.0"),
2022-10-12 19:31:19 +02:00
// Alternatives:
2023-01-31 22:16:44 +01:00
// https://github.com/onevcat/Hedwig <- No updates since Jun 2017
// https://github.com/Joannis/SMTPKitten <- No updates since 0ct 2020
// https://github.com/Joannis/VaporSMTPKit <- No updates since 0ct. 2020, uses SMTPKitten
.package(url: "https://github.com/Kitura/Swift-SMTP", from: "6.0.0"),
2023-02-06 22:03:02 +01:00
.package(url: "https://github.com/christophhagen/clairvoyant.git", from: "0.4.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"),
2022-10-18 11:39:09 +02:00
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite"),
2021-12-22 22:10:26 +01:00
.product(name: "Vapor", package: "vapor"),
2022-10-12 19:31:19 +02:00
.product(name: "SwiftSMTP", package: "Swift-SMTP"),
2023-01-31 22:16:44 +01:00
.product(name: "Clairvoyant", package: "Clairvoyant"),
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
]
)