-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathPackage.swift
More file actions
61 lines (60 loc) · 1.89 KB
/
Copy pathPackage.swift
File metadata and controls
61 lines (60 loc) · 1.89 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "xcsift",
platforms: [.macOS(.v13)],
products: [
.executable(
name: "xcsift",
targets: ["xcsift"]
),
.library(
name: "XCSiftCore",
targets: ["XCSiftCore"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
.package(url: "https://github.com/toon-format/toon-swift.git", from: "0.4.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.4.5"),
.package(url: "https://github.com/mattt/swift-toml", from: "2.0.0"),
],
targets: [
.target(
name: "XCSiftCore"
),
.executableTarget(
name: "xcsift",
dependencies: [
"XCSiftCore",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "ToonFormat", package: "toon-swift"),
.product(name: "TOML", package: "swift-toml"),
]
),
.target(
name: "TestUtils",
dependencies: ["XCSiftCore"],
path: "Tests/TestUtils"
),
.testTarget(
name: "XCSiftCoreTests",
dependencies: [
"XCSiftCore",
"TestUtils",
.product(name: "ToonFormat", package: "toon-swift"),
],
path: "Tests/XCSiftCoreTests",
resources: [
.copy("Fixtures/build.txt"),
.copy("Fixtures/swift-testing-output.txt"),
.copy("Fixtures/linker-error-output.txt"),
]
),
.testTarget(
name: "xcsiftTests",
dependencies: ["XCSiftCore", "xcsift", "TestUtils"],
path: "Tests/xcsiftTests"
),
]
)