-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Package.swift
70 lines (67 loc) · 2.89 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.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let swiftSettings: [SwiftSetting] = [.enableExperimentalFeature("StrictConcurrency=complete")]
let package = Package(
name: "hummingbird-websocket",
platforms: [.macOS(.v14), .iOS(.v17), .tvOS(.v17)],
products: [
.library(name: "HummingbirdWebSocket", targets: ["HummingbirdWebSocket"]),
.library(name: "HummingbirdWSClient", targets: ["HummingbirdWSClient"]),
.library(name: "HummingbirdWSCompression", targets: ["HummingbirdWSCompression"]),
.library(name: "HummingbirdWSTesting", targets: ["HummingbirdWSTesting"]),
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.5.0"),
.package(url: "https://github.com/hummingbird-project/swift-websocket.git", from: "1.2.0"),
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.22.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.5.0"),
],
targets: [
.target(
name: "HummingbirdWebSocket",
dependencies: [
.product(name: "WSCore", package: "swift-websocket"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "NIOHTTPTypes", package: "swift-nio-extras"),
.product(name: "NIOHTTPTypesHTTP1", package: "swift-nio-extras"),
],
swiftSettings: swiftSettings
),
.target(
name: "HummingbirdWSClient",
dependencies: [
.product(name: "WSClient", package: "swift-websocket")
],
swiftSettings: swiftSettings
),
.target(
name: "HummingbirdWSCompression",
dependencies: [
.product(name: "WSCompression", package: "swift-websocket")
],
swiftSettings: swiftSettings
),
.target(
name: "HummingbirdWSTesting",
dependencies: [
.byName(name: "HummingbirdWSClient"),
.product(name: "HummingbirdTesting", package: "hummingbird"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "HummingbirdWebSocketTests",
dependencies: [
.byName(name: "HummingbirdWebSocket"),
.byName(name: "HummingbirdWSClient"),
.byName(name: "HummingbirdWSCompression"),
.byName(name: "HummingbirdWSTesting"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "HummingbirdTesting", package: "hummingbird"),
.product(name: "HummingbirdTLS", package: "hummingbird"),
]
),
],
swiftLanguageVersions: [.v5, .version("6")]
)