-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
39 lines (37 loc) · 1.92 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
// swift-tools-version: 5.7
import PackageDescription
let externalDependencies: [Target.Dependency] = [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "NIOTLS", package: "swift-nio-ssl"),
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
.product(name: "NIOExtras", package: "swift-nio-extras"),
.product(name: "Logging", package: "swift-log"),
]
let package = Package(
name: "smtp-nio",
platforms: [.macOS(.v13)],
products: [
.library(name: "SMTPNIO", targets: ["SMTPNIO"]),
.library(name: "SMTPNIOCore", targets: ["SMTPNIOCore"]),
.library(name: "SMTPNIOClient", targets: ["SMTPNIOClient"]),
.library(name: "SMTPNIOServer", targets: ["SMTPNIOServer"]),
.executable(name: "Example", targets: ["Example"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.48.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.23.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.15.0"),
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
],
targets: [
.target(name: "SMTPNIO", dependencies: ["SMTPNIOCore", "SMTPNIOClient", "SMTPNIOServer"] + externalDependencies),
.target(name: "SMTPNIOCore", dependencies: externalDependencies),
.target(name: "SMTPNIOClient", dependencies: ["SMTPNIOCore"] + externalDependencies),
.target(name: "SMTPNIOServer", dependencies: ["SMTPNIOCore"] + externalDependencies),
.executableTarget(name: "Example", dependencies: ["SMTPNIO"]),
.testTarget(name: "SMTPNIOTests", dependencies: ["SMTPNIO"]),
]
)