-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathPackage.swift
60 lines (58 loc) · 1.76 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
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "swift-mod",
platforms: [
.macOS("10.15")
],
products: [
.executable(
name: "swift-mod",
targets: ["swift-mod"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", exact: "1.5.0"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", exact: "510.0.3"),
.package(url: "https://github.com/swiftlang/swift-tools-support-core.git", exact: "0.7.1"),
.package(url: "https://github.com/jpsim/Yams.git", exact: "5.1.3")
],
targets: [
.executableTarget(
name: "swift-mod",
dependencies: ["SwiftModCommands"]
),
.target(
name: "SwiftModCommands",
dependencies: [
"SwiftModRules",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.testTarget(
name: "SwiftModCommandsTests",
dependencies: ["SwiftModCommands"]
),
.target(
name: "SwiftModRules",
dependencies: ["SwiftModCore"]
),
.testTarget(
name: "SwiftModRulesTests",
dependencies: ["SwiftModRules"]
),
.target(
name: "SwiftModCore",
dependencies: [
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
"Yams",
]
),
.testTarget(
name: "SwiftModCoreTests",
dependencies: ["SwiftModCore"]
),
],
swiftLanguageVersions: [.v5]
)