-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
40 lines (35 loc) · 953 Bytes
/
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
// swift-tools-version:4.0
import PackageDescription
private func getTargetPath(_ name: String, for type: String) -> String {
return "\(type)/\(name)"
}
private func getSourcePath(_ name: String) -> String {
return getTargetPath(name, for: "Sources")
}
private func getTestPath(_ name: String) -> String {
return getTargetPath(name, for: "Tests")
}
let package = Package(
name: "Lupaus",
products: [
.library(
name: "Lupaus",
targets: ["LupausFutures"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "1.7.0"),
],
targets: [
.target(
name: "LupausFutures",
dependencies: [],
path: getSourcePath("Futures")
),
.testTarget(
name: "LupausFuturesTests",
dependencies: ["LupausFutures"],
path: getTestPath("Futures")
)
]
)