-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
56 lines (54 loc) · 1.67 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "ipp-nio",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(name: "IppProtocol", targets: ["IppProtocol"]),
.library(name: "IppClient", targets: ["IppClient"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.62.0"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.6"),
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.20.0"),
],
targets: [
.target(
name: "IppClient",
dependencies: [
.target(name: "IppProtocol"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
]
),
.target(
name: "IppProtocol",
dependencies: [
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "OrderedCollections", package: "swift-collections"),
]
),
.testTarget(
name: "IppTests",
dependencies: ["IppProtocol", "IppClient"]
),
]
)
#if os(macOS) || os(Linux)
package.targets.append(
.executableTarget(
name: "PrintPDF",
dependencies: [
.target(name: "IppClient"),
],
path: "Examples/PrintPDF",
exclude: ["hi_mom.pdf"]
)
)
#endif