Caps-Server/Package.swift

30 lines
1.2 KiB
Swift
Raw Normal View History

2022-05-24 14:35:10 +02:00
// swift-tools-version:5.5
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
],
dependencies: [
2020-10-29 11:42:57 +01:00
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
.package(url: "https://github.com/christophhagen/Clairvoyant", branch: "main"),
],
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"]),
.testTarget(name: "AppTests", dependencies: ["App"]),
]
)