-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
38 lines (34 loc) · 1.67 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.2
import PackageDescription
let package = Package(
name: "HAP",
products: [
.library(name: "HAP", targets: ["HAP"]),
.executable(name: "hap-server", targets: ["hap-server"]),
],
dependencies: [
.package(url: "https://github.com/vapor/core.git", from: "3.9.0"),
.package(url: "https://github.com/Bouke/CLibSodium.git", from: "2.0.0"),
.package(url: "https://github.com/Bouke/SRP.git", from: "3.1.0"),
.package(url: "https://github.com/Bouke/HKDF.git", from: "3.1.0"),
.package(url: "https://github.com/Bouke/Evergreen.git", from: "2.0.0"),
.package(url: "https://github.com/IBM-Swift/BlueCryptor.git", from: "1.0.21"),
.package(url: "https://github.com/crossroadlabs/Regex.git", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "1.11.0"),
],
targets: [
.target(name: "CQRCode"),
.target(name: "HAPHTTP", dependencies: ["Async", "Bits", "Core", "Debugging", "NIO", "NIOHTTP1"]),
.target(name: "HAP", dependencies: ["SRP", "Cryptor", "Evergreen", "HKDF", "Regex", "CQRCode", "HAPHTTP"]),
.target(name: "hap-server", dependencies: ["HAP", "Evergreen"]),
.testTarget(name: "HAPTests", dependencies: ["HAP"]),
]
)
#if os(macOS)
package.products.append(.executable(name: "hap-update", targets: ["HAPUpdate"]))
package.targets.append(.target(name: "HAPUpdate", dependencies: []))
#endif
#if os(Linux)
package.dependencies.append(.package(url: "https://github.com/Bouke/NetService.git", from: "0.6.0"))
package.targets.first(where: { $0.name == "HAP" })!.dependencies.append("NetService")
#endif