forked from EduDo-Inc/spmgen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
75 lines (73 loc) · 1.52 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "spmgen",
platforms: [
.macOS(.v11)
],
products: [
.plugin(
name: "spmgen-plugin",
targets: ["spmgen-plugin"]
),
.library(
name: "SPMGenClient",
targets: ["SPMGenClient"]
)
],
dependencies: [
.package(
url: "https://github.com/capturecontext/swift-package-resources.git",
.upToNextMajor(from: "3.0.0")
),
.package(
url: "https://github.com/apple/swift-argument-parser.git",
.upToNextMajor(from: "1.0.1")
),
.package(
url: "https://github.com/capturecontext/swift-prelude.git",
.upToNextMinor(from: "0.2.0")
),
],
targets: [
.plugin(
name: "spmgen-plugin",
capability: .buildTool(),
dependencies: [
.target(name: "spmgen")
]
),
.executableTarget(
name: "spmgen",
dependencies: [
.target(name: "SPMGenClient"),
.product(
name: "ArgumentParser",
package: "swift-argument-parser"
),
]
),
.target(
name: "SPMGenClient",
dependencies: [
.product(
name: "PackageResourcesCore",
package: "swift-package-resources"
),
.product(
name: "Prelude",
package: "swift-prelude"
)
]
),
.testTarget(
name: "SPMGenClientTests",
dependencies: [
.target(name: "SPMGenClient")
],
exclude: [
"_Resources"
]
)
]
)