2022-05-24 14:35:10 +02:00
|
|
|
// swift-tools-version:5.5
|
2020-05-17 20:01:30 +02:00
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
2022-05-22 23:26:55 +02:00
|
|
|
name: "Caps-Server",
|
2020-09-20 11:36:35 +02:00
|
|
|
platforms: [
|
2023-01-11 18:18:59 +01:00
|
|
|
.macOS(.v12)
|
2020-09-20 11:36:35 +02:00
|
|
|
],
|
2020-05-17 20:01:30 +02:00
|
|
|
dependencies: [
|
2020-10-29 11:42:57 +01:00
|
|
|
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
|
2023-01-17 22:02:27 +01:00
|
|
|
.package(url: "https://github.com/christophhagen/Clairvoyant", branch: "main"),
|
2020-05-17 20:01:30 +02:00
|
|
|
],
|
|
|
|
targets: [
|
2020-09-20 11:36:35 +02:00
|
|
|
.target(name: "App",
|
2023-01-11 18:18:59 +01:00
|
|
|
dependencies: [
|
|
|
|
.product(name: "Vapor", package: "vapor"),
|
|
|
|
.product(name: "Clairvoyant", package: "Clairvoyant"),
|
|
|
|
],
|
2020-09-20 11:36:35 +02: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#building-for-production> for details.
|
|
|
|
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
|
|
|
|
]),
|
2022-05-22 23:26:55 +02:00
|
|
|
.executableTarget(name: "Run", dependencies: ["App"]),
|
2020-05-17 20:01:30 +02:00
|
|
|
.testTarget(name: "AppTests", dependencies: ["App"]),
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|