-
Notifications
You must be signed in to change notification settings - Fork 11
/
Package.swift
33 lines (29 loc) · 1.48 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
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "TLS",
products: [
.library(name: "TLS", targets: ["TLS"]),
],
dependencies: [
// ⏱ Promises and reactive-streams in Swift built for high-performance and scalability.
.package(url: "https://github.com/vapor/async.git", from: "1.0.0-rc"),
// 🌎 Utility package containing tools for byte manipulation, Codable, OS APIs, and debugging.
.package(url: "https://github.com/vapor/core.git", from: "3.0.0-rc"),
// 🔌 Non-blocking TCP socket layer, with event-driven server and client.
.package(url: "https://github.com/vapor/sockets.git", from: "3.0.0-rc"),
],
targets: [
.target(name: "TLS", dependencies: ["Async", "Bits", "Debugging", "TCP"]),
]
)
#if os(macOS)
package.products.append(.library(name: "AppleTLS", targets: ["AppleTLS"]))
package.targets.append(.target(name: "AppleTLS", dependencies: ["Async", "Bits", "Debugging", "TLS"]))
package.targets.append(.testTarget(name: "TLSTests", dependencies: ["AppleTLS", "TLS"]))
#else
package.products.append(.library(name: "OpenSSL", targets: ["OpenSSL"]))
package.dependencies.append(.package(url: "https://github.com/vapor/copenssl.git", from: "1.0.0-rc"))
package.targets.append(.target(name: "OpenSSL", dependencies: ["Async", "COpenSSL", "Debugging", "TLS"]))
package.targets.append(.testTarget(name: "TLSTests", dependencies: ["OpenSSL", "TLS"]))
#endif