-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
59 lines (56 loc) · 2.16 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
57
58
59
// swift-tools-version: 6.0.3
import PackageDescription
let package = Package(
name: "edge-cli",
platforms: [
.macOS(.v15)
],
products: [
.executable(name: "edge", targets: ["edge"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.3"),
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.81.0"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.12.2"),
.package(
url: "https://github.com/apache-edge/edge-agent-common.git",
revision: "ac664c99e74935107f814e14689ca170fd34b255"
),
],
targets: [
/// The main executable provided by edge-cli.
.executableTarget(
name: "edge",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log"),
.product(name: "_NIOFileSystem", package: "swift-nio"),
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
.product(name: "EdgeAgentGRPC", package: "edge-agent-common"),
.target(name: "EdgeCLI"),
],
resources: [
.copy("Resources")
]
),
/// Contains everything EdgeCLI, except for the command line interface.
.target(
name: "EdgeCLI",
dependencies: [
.target(name: "ContainerBuilder"),
.product(name: "Shell", package: "edge-agent-common"),
.product(name: "Logging", package: "swift-log"),
]
),
/// Tools to build OCI-compliant container images.
.target(
name: "ContainerBuilder",
dependencies: [
.product(name: "Shell", package: "edge-agent-common"),
.product(name: "Crypto", package: "swift-crypto"),
]
),
]
)