forked from swiftlang/swift-package-collection-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
95 lines (83 loc) · 4.38 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "swift-package-collection-generator",
platforms: [.macOS(.v12)],
products: [
.executable(name: "package-collection-generate", targets: ["PackageCollectionGenerator"]),
.executable(name: "package-collection-sign", targets: ["PackageCollectionSigner"]),
.executable(name: "package-collection-validate", targets: ["PackageCollectionValidator"]),
.executable(name: "package-collection-diff", targets: ["PackageCollectionDiff"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.2.2")),
.package(url: "https://github.com/apple/swift-package-manager.git", branch: "main"),
.package(url: "https://github.com/swift-server/swift-backtrace.git", .upToNextMajor(from: "1.1.0")),
],
targets: [
.target(name: "Utilities",
dependencies: [
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
]),
.executableTarget(name: "PackageCollectionGenerator",
dependencies: [
"Utilities",
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Backtrace", package: "swift-backtrace"),
],
exclude: ["README.md"]),
.executableTarget(name: "PackageCollectionSigner",
dependencies: [
"Utilities",
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Backtrace", package: "swift-backtrace"),
],
exclude: ["README.md"]),
.executableTarget(name: "PackageCollectionValidator",
dependencies: [
"Utilities",
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Backtrace", package: "swift-backtrace"),
],
exclude: ["README.md"]),
.executableTarget(name: "PackageCollectionDiff",
dependencies: [
"Utilities",
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Backtrace", package: "swift-backtrace"),
],
exclude: ["README.md"]),
.target(name: "TestUtilities",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
]),
.testTarget(name: "UtilitiesTests",
dependencies: ["Utilities"]),
.testTarget(name: "PackageCollectionGeneratorTests",
dependencies: ["PackageCollectionGenerator"],
exclude: ["Inputs"]),
.testTarget(name: "PackageCollectionSignerTests",
dependencies: [
"PackageCollectionSigner",
"TestUtilities",
],
exclude: ["Inputs"]),
.testTarget(name: "PackageCollectionValidatorTests",
dependencies: [
"PackageCollectionValidator",
"TestUtilities",
],
exclude: ["Inputs"]),
.testTarget(name: "PackageCollectionDiffTests",
dependencies: [
"PackageCollectionDiff",
"TestUtilities",
],
exclude: ["Inputs"]),
]
)