-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
95 lines (90 loc) · 3.16 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "LGNC-Swift",
platforms: [.macOS(.v12)],
products: [
.library(name: "LGNCore", targets: ["LGNCore"]),
.library(name: "LGNP", targets: ["LGNP"]),
.library(name: "LGNPContenter", targets: ["LGNPContenter"]),
.library(name: "LGNS", targets: ["LGNS"]),
.library(name: "LGNC", targets: ["LGNC"]),
.library(name: "Entita", targets: ["Entita"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"),
.package(url: "https://github.com/1711-Games/LGN-Log.git", .upToNextMinor(from: "0.4.0")),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.2.1"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle", from: "2.3.0"),
// used by LGNPContenter
.package(url: "https://github.com/kirilltitov/SwiftMsgPack.git", from: "2.0.1"),
// used by LGNP
.package(url: "https://github.com/apple/swift-crypto.git", from: "1.1.7"),
],
targets: [
.target(
name: "LGNCore",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "LGNLog", package: "LGN-Log"),
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
],
exclude: ["README.md"]
),
.target(
name: "LGNP",
dependencies: [
"LGNCore",
.product(name: "Crypto", package: "swift-crypto"),
],
exclude: ["README.md", "logo.png"]
),
.target(
name: "LGNPContenter",
dependencies: [
"LGNCore",
"LGNP",
.product(name: "SwiftMsgPack", package: "SwiftMsgPack"),
],
exclude: ["README.md"]
),
.target(
name: "LGNS",
dependencies: [
"LGNCore",
"LGNP",
.product(name: "NIO", package: "swift-nio"),
],
exclude: ["README.md", "logo.png"]
),
.target(
name: "LGNC",
dependencies: [
"LGNCore",
"Entita",
"LGNS",
"LGNP",
"LGNPContenter",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOWebSocket", package: "swift-nio"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
],
exclude: ["README.md"]
),
.target(name: "Entita", dependencies: [], exclude: ["README.md"]),
.testTarget(
name: "LGNCSwiftTests",
dependencies: [
"LGNCore",
"LGNP",
"LGNPContenter",
"LGNS",
"LGNC",
"Entita",
],
exclude: ["Schema"]
),
]
)