-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Package.swift
67 lines (65 loc) · 3.11 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
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "hummingbird-core",
platforms: [.iOS(.v12), .tvOS(.v12)],
products: [
.library(name: "HummingbirdCore", targets: ["HummingbirdCore"]),
.library(name: "HummingbirdHTTP2", targets: ["HummingbirdHTTP2"]),
.library(name: "HummingbirdTLS", targets: ["HummingbirdTLS"]),
.library(name: "HummingbirdCoreXCT", targets: ["HummingbirdCoreXCT"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.49.0"),
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.7.0"),
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.28.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.14.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.9.0"),
],
targets: [
.target(name: "HummingbirdCore", dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
.product(name: "NIOExtras", package: "swift-nio-extras"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
]),
.target(name: "HummingbirdCoreXCT", dependencies: [
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
]),
.target(name: "HummingbirdHTTP2", dependencies: [
.byName(name: "HummingbirdCore"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOHTTP2", package: "swift-nio-http2"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
]),
.target(name: "HummingbirdTLS", dependencies: [
.byName(name: "HummingbirdCore"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
]),
// test targets
.testTarget(
name: "HummingbirdCoreTests",
dependencies:
[
.byName(name: "HummingbirdCore"),
.byName(name: "HummingbirdCoreXCT"),
.product(name: "NIOEmbedded", package: "swift-nio"),
],
resources: [.process("Certificates")]
),
.testTarget(name: "HummingbirdTLSTests", dependencies: [
.byName(name: "HummingbirdTLS"),
.byName(name: "HummingbirdCoreXCT"),
]),
]
)