Caps-Server/Package.swift

36 lines
1.7 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"),
2023-09-08 10:05:55 +02:00
.package(url: "https://github.com/christophhagen/Clairvoyant", from: "0.9.0"),
.package(url: "https://github.com/christophhagen/ClairvoyantVapor", from: "0.2.0"),
.package(url: "https://github.com/christophhagen/ClairvoyantBinaryCodable", from: "0.3.0"),
2023-09-08 10:09:51 +02:00
.package(url:"https://github.com/christophhagen/CBORCoding", from: "1.0.0"),
],
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"),
2023-09-08 10:05:55 +02:00
.product(name: "ClairvoyantVapor", package: "ClairvoyantVapor"),
.product(name: "ClairvoyantBinaryCodable", package: "ClairvoyantBinaryCodable"),
2023-09-08 10:09:51 +02:00
.product(name: "CBORCoding", package: "CBORCoding"),
2023-01-11 18:18:59 +01:00
],
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"]),
]
)