-
Notifications
You must be signed in to change notification settings - Fork 14
/
Package.swift
38 lines (36 loc) · 1.49 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
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Lightning",
products: [
.library(
name: "Lightning",
targets: [
"Lightning",
"POSIX",
"TCP",
"HTTP",
"IOStream",
]
),
],
dependencies: [
.package(url: "https://github.com/crossroadlabs/Regex.git", .branch("master")),
.package(url: "https://github.com/skylab-inc/PathToRegex.git", .branch("master")),
.package(url: "https://github.com/skylab-inc/StreamKit.git", .branch("master")),
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "4.5.0"),
],
targets: [
.target(name: "CHTTPParser"),
.target(name: "POSIX"),
.target(name: "TCP", dependencies: ["POSIX", "IOStream"]),
.target(name: "HTTP", dependencies: [ "POSIX", "IOStream", "TCP", "CHTTPParser", "PromiseKit", "PathToRegex", "Regex"]),
.target(name: "IOStream", dependencies: ["POSIX", "StreamKit"]),
.target(name: "Lightning", dependencies: ["TCP", "IOStream", "HTTP"]),
.testTarget(name: "HTTPTests", dependencies: ["HTTP"]),
.testTarget(name: "IOStreamTests", dependencies: ["IOStream"]),
.testTarget(name: "TCPTests", dependencies: ["TCP"]),
.testTarget(name: "RoutingTests", dependencies: ["HTTP"]),
]
)