-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
70 lines (67 loc) · 2.3 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SmartInfrastructure",
platforms: [
.macOS(.v10_15)
],
products: [
.executable(
name: "SmartInfrastructure",
targets: ["SmartInfrastructure"]
)
],
dependencies: [
.package(
name: "Apodini",
url: "https://github.com/Apodini/Apodini.git",
.branch("develop")
),
.package(name: "swift-argument-parser", url: "https://github.com/apple/swift-argument-parser", from: "0.3.2"),
.package(name: "swift-log", url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
.package(name: "swift-nio", url: "https://github.com/apple/swift-nio.git", from: "2.25.1"),
.package(name: "swift-nio-ip", url: "https://github.com/PSchmiedmayer/Swift-NIO-IP.git", from: "0.0.1")
],
targets: [
.target(
name: "SmartInfrastructure",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniJobs", package: "Apodini"),
.product(name: "ApodiniREST", package: "Apodini"),
.product(name: "ApodiniOpenAPI", package: "Apodini"),
.target(name: "ApodiniLIFX")
],
resources: [
.copy("Resources/schedule.json"),
.copy("Resources/rushhour.json")
]
),
.target(
name: "ApodiniLIFX",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.target(name: "NIOLIFX")
]
),
.target(
name: "NIOLIFX",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOIP", package: "swift-nio-ip")
]
),
.testTarget(
name: "NIOLIFXTests",
dependencies: [
.target(name: "NIOLIFX")
]
),
.testTarget(
name: "SmartInfrastructureTests",
dependencies: ["SmartInfrastructure"]
)
]
)