-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (54 loc) · 1.53 KB
/
Package.swift
File metadata and controls
56 lines (54 loc) · 1.53 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
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "SwiftHarmony",
platforms: [
.macOS(.v13),
.iOS(.v16),
.tvOS(.v16),
.watchOS(.v9),
.visionOS(.v1),
],
products: [
.library(
name: "SwiftHarmony",
targets: ["SwiftHarmony"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMinor(from: "1.2.0")),
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.29.4")),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.4.5"),
],
targets: [
.target(
name: "SwiftHarmony",
dependencies: [
.product(name: "Collections", package: "swift-collections")
],
resources: [
.process("Resources")
]
),
.testTarget(
name: "SwiftHarmonyTests",
dependencies: ["SwiftHarmony"],
resources: [
.copy("Resources"),
]
)
]
)
// Benchmark of HarmonyBenchmarkTarget
package.targets += [
.executableTarget(
name: "HarmonyBenchmarkTarget",
dependencies: [
"SwiftHarmony",
.product(name: "Benchmark", package: "package-benchmark"),
],
path: "Benchmarks/HarmonyBenchmarkTarget",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
),
]