-
Notifications
You must be signed in to change notification settings - Fork 12
/
Package.swift
29 lines (28 loc) · 1.23 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
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "mqtt-nio",
products: [
.library(name: "MQTTNIO", targets: ["MQTTNIO"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.41.1"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.22.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.13.1"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.4"),
],
targets: [
.target(name: "MQTTNIO", dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOWebSocket", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl", condition: .when(platforms: [.linux, .macOS])),
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
]),
.testTarget(name: "MQTTNIOTests", dependencies: [
.target(name: "MQTTNIO"),
.product(name: "NIOTestUtils", package: "swift-nio"),
]),
]
)