-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPackage.swift
47 lines (44 loc) · 1.19 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
// swift-tools-version:4.2
import PackageDescription
var package = Package(
name: "Saber",
products: [
.executable(
name: "saber",
targets: ["SaberLauncher"]
)
],
dependencies: [
.package(url: "https://github.com/jpsim/SourceKitten.git", from: "0.22.0"),
.package(url: "https://github.com/Carthage/Commandant.git", from: "0.15.0"),
],
targets: [
.target(
name: "Saber",
dependencies: ["SourceKittenFramework"]
),
.target(
name: "SaberCLI",
dependencies: ["Saber", "Commandant"]
),
.target(
name: "SaberLauncher",
dependencies: ["Saber", "SaberCLI", "Commandant"]
),
.testTarget(
name: "SaberTests",
dependencies: ["Saber"]
),
.testTarget(
name: "SaberCLITests",
dependencies: ["SaberCLI"]
)
],
swiftLanguageVersions: [.v4, .v4_2]
)
#if os(OSX)
package.dependencies.append(
.package(url: "https://github.com/xcode-project-manager/xcodeproj.git", from: "6.4.0")
)
package.targets[1].dependencies.append("xcodeproj")
#endif