-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPackage.swift
More file actions
67 lines (63 loc) · 1.72 KB
/
Package.swift
File metadata and controls
67 lines (63 loc) · 1.72 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
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
60
61
62
63
64
65
66
67
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "WorkKit",
platforms: [
.macOS(.v13),
.iOS(.v16),
],
products: [
.library(
name: "WorkKit",
targets: ["WorkKit"]
),
.executable(
name: "iwx",
targets: ["iwx"]
),
.executable(
name: "proto-dump",
targets: ["proto-dump"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.31.1"),
.package(url: "https://github.com/apple/swift-log", from: "1.6.4"),
.package(url: "https://github.com/weichsel/ZIPFoundation.git", from: "0.9.20"),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMinor(from: "1.3.0")),
],
targets: [
// WorkKit library
.target(
name: "WorkKit",
dependencies: [
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
.product(name: "Collections", package: "swift-collections"),
]
),
// Executable targets
.executableTarget(
name: "iwx",
dependencies: [
"WorkKit",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.executableTarget(
name: "proto-dump",
dependencies: [
"WorkKit",
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "Logging", package: "swift-log"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
// Test targets
.testTarget(
name: "WorkKitTests",
dependencies: ["WorkKit"]
),
]
)