-
Notifications
You must be signed in to change notification settings - Fork 12
/
Package.swift
142 lines (140 loc) · 4.13 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "swifttalk-server",
products: [
.executable(name: "swifttalk-server", targets: ["swifttalk-server"]),
.library(name: "SwiftTalkServerLib", targets: ["SwiftTalkServerLib"]),
.library(name: "Routing", targets: ["Routing"]),
.library(name: "Base", targets: ["Base"]),
.library(name: "Promise", targets: ["Promise"]),
.library(name: "Networking", targets: ["Networking"]),
.library(name: "NIOWrapper", targets: ["NIOWrapper"]),
.library(name: "HTML", targets: ["HTML"]),
.library(name: "Database", targets: ["Database"]),
.library(name: "WebServer", targets: ["WebServer"]),
.library(name: "Incremental", targets: ["Incremental"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", .exact("2.5.1")),
.package(url: "https://github.com/chriseidhof/commonmark-swift", .branch("embed-c")),
.package(url: "https://github.com/objcio/LibPQ", .branch("master")),
.package(url: "https://github.com/objcio/tiny-networking", from: "0.2.0"),
.package(url: "https://github.com/objcio/swift-talk-shared", from: "0.2.0"),
.package(url: "https://github.com/objcio/md5", .exact("0.1.0")),
.package(url: "https://github.com/jpsim/SourceKitten", .exact("0.29.0")), // todo 0.29 introduces a breaking change.
.package(url: "https://github.com/ianpartridge/swift-backtrace.git", from: "1.0.2"),
],
targets: [
.target(
name: "Incremental",
dependencies: [
],
path: "Sources/Incremental"
),
.target(
name: "Base",
dependencies: [
],
path: "Sources/Base"
),
.target(
name: "Promise",
dependencies: [
],
path: "Sources/Promise"
),
.target(
name: "Networking",
dependencies: [
"TinyNetworking"
],
path: "Sources/Networking"
),
.target(
name: "NIOWrapper",
dependencies: [
"Base",
"Promise",
"NIO",
"NIOHTTP1",
"NIOFoundationCompat",
],
path: "Sources/NIOWrapper"
),
.target(
name: "HTML",
dependencies: [ "Base" ],
path: "Sources/HTML"
),
.target(
name: "Routing",
dependencies: [
"Base",
],
path: "Sources/Routing"
),
.target(
name: "Database",
dependencies: [
"LibPQ",
"Base",
],
path: "Sources/Database"
),
.target(
name: "WebServer",
dependencies: [
"Base",
"HTML",
"NIOWrapper",
"Promise",
"Database",
],
path: "Sources/WebServer"
),
.target(
name: "SwiftTalkServerLib",
dependencies: [
"Incremental",
"TinyNetworking",
"Networking",
"Promise",
"Base",
"Routing",
"HTML",
"NIOWrapper",
"Database",
"WebServer",
"CommonMark",
"Model",
"ViewHelpers",
"md5",
"SourceKittenFramework",
],
path: "Sources/SwiftTalkServerLib"
),
.target(
name: "swifttalk-server",
dependencies: [
"SwiftTalkServerLib",
"Backtrace",
],
path: "Sources/swifttalk-server"
),
.target(
name: "highlight-html",
dependencies: [
"SourceKittenFramework",
"CommonMark"
],
path: "Sources/highlight-html"
),
.testTarget(
name: "SwiftTalkTests",
dependencies: ["SwiftTalkServerLib"],
path: "Tests"
)
],
swiftLanguageVersions: [.v5]
)