-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
29 lines (26 loc) · 895 Bytes
/
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.0
import PackageDescription
var packageDependencies : [ Package.Dependency ] = [
.package(url: "https://github.com/apple/swift-nio.git",
from: "2.68.0"),
.package(url: "https://github.com/SwiftNIOExtras/swift-nio-irc.git",
from: "0.8.2")
]
var targetDependencies : [ Target.Dependency ] = [ "NIO", "NIOIRC" ]
if #available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *) {
packageDependencies += [
.package(url: "https://github.com/apple/swift-nio-transport-services",
from: "1.21.0")
]
targetDependencies += [ "NIOTransportServices" ]
}
let package = Package(
name: "swift-nio-irc-client",
products: [
.library(name: "IRC", targets: [ "IRC" ])
],
dependencies: packageDependencies,
targets: [
.target(name: "IRC", dependencies: targetDependencies)
]
)