This repository was archived by the owner on Apr 7, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathPackage.swift
More file actions
33 lines (29 loc) · 1.36 KB
/
Package.swift
File metadata and controls
33 lines (29 loc) · 1.36 KB
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
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "HTTP",
products: [
.library(name: "HTTP", targets: ["HTTP"]),
],
dependencies: [
// 🌎 Utility package containing tools for byte manipulation, Codable, OS APIs, and debugging.
.package(url: "https://github.com/vapor/core.git", from: "3.0.0"),
// Event-driven network application framework for high performance protocol servers & clients, non-blocking.
.package(url: "https://github.com/apple/swift-nio.git", from: "1.4.0"),
],
targets: [
.testTarget(name: "HTTPTests", dependencies: ["HTTP"]),
.target(name: "HTTPPerformance", dependencies: ["HTTP"]),
]
)
var dependencies: [Target.Dependency] = ["Async", "Bits", "Core", "Debugging", "NIO", "NIOHTTP1"]
#if os(Linux)
// Bindings to OpenSSL-compatible libraries for TLS support in SwiftNIO
package.dependencies.append(.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "1.0.1"))
dependencies.append("NIOOpenSSL")
#else
// Extensions for SwiftNIO to support Apple platforms as first-class citizens.
package.dependencies.append(.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "0.1.0"))
dependencies.append("NIOTransportServices")
#endif
package.targets.append(.target(name: "HTTP", dependencies: dependencies))