Schafkopf-Server/Package.swift

48 lines
2.4 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-10-02 00:37:50 +02:00
.package(url: "https://github.com/christophhagen/Clairvoyant", from: "0.11.2"),
.package(url: "https://github.com/christophhagen/ClairvoyantVapor", from: "0.5.0"),
2023-09-07 13:56:27 +02:00
.package(url: "https://github.com/christophhagen/ClairvoyantBinaryCodable", from: "0.3.1"),
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"),
2023-09-07 13:56:27 +02:00
.product(name: "ClairvoyantVapor", package: "ClairvoyantVapor"),
.product(name: "ClairvoyantBinaryCodable", package: "ClairvoyantBinaryCodable"),
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
]
)