This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
59 lines (58 loc) · 2.64 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "PackageRegistry",
platforms: [
.macOS(.v10_15)
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(url: "https://github.com/SwiftDocOrg/Git.git", .revision("f3b37c3ccf0a1559d4097e2eeb883801c4b8f510")),
.package(url: "https://github.com/weichsel/ZIPFoundation.git", .upToNextMinor(from: "0.9.0")),
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "0.3.1")),
.package(url: "https://github.com/apple/swift-log.git", .upToNextMinor(from: "1.4.0")),
.package(url: "https://github.com/Flight-School/AnyCodable.git", .upToNextMinor(from: "0.3.0"))
],
targets: [
.target(
name: "PackageRegistry",
dependencies: [
.product(name: "Git", package: "Git"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
.product(name: "AnyCodable", package: "AnyCodable")
]),
.target(
name: "swift-registry",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "AnyCodable", package: "AnyCodable"),
.product(name: "Logging", package: "swift-log"),
.target(name: "PackageRegistry"),
.target(name: "Server")
],
path: "Sources/CLI"),
.target(
name: "Server",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "AnyCodable", package: "AnyCodable"),
.target(name: "PackageRegistry")
],
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))
]
),
.testTarget(name: "ServerTests", dependencies: [
.target(name: "Server"),
.product(name: "XCTVapor", package: "vapor"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
]),
.testTarget(name: "PackageRegistryTests", dependencies: [
.target(name: "PackageRegistry"),
.product(name: "AnyCodable", package: "AnyCodable")
])
]
)