forked from twostraws/Sitrep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
41 lines (37 loc) · 1.65 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
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
var dependencies: [Target.Dependency] = [
"SwiftSyntax", "Yams", .product(name: "ArgumentParser", package: "swift-argument-parser")
]
// IMPORTANT: IF YOU CHANGE THE BELOW, PLEASE ALSO CHANGE THE LARGE FATALERROR()
// MESSAGE IN FILE.SWIFT TO MATCH THE NEW SWIFT VERSION.
#if swift(>=5.6)
let swiftSyntaxVersion = Package.Dependency.Requirement.exact("0.50600.1")
dependencies.append(.product(name: "SwiftSyntaxParser", package: "SwiftSyntax"))
#elseif swift(>=5.5)
let swiftSyntaxVersion = Package.Dependency.Requirement.exact("0.50500.0")
#else
let swiftSyntaxVersion = Package.Dependency.Requirement.exact("0.50400.0")
#endif
let package = Package(
name: "Sitrep",
platforms: [
.macOS(.v10_12)
],
products: [
.library(name: "SitrepCore", targets: ["SitrepCore"])
],
dependencies: [
.package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git", swiftSyntaxVersion),
.package(url: "https://github.com/jpsim/Yams.git", from: "4.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.4.4")
],
targets: [
.executableTarget(name: "Sitrep", dependencies: ["SitrepCore",
.product(name: "ArgumentParser",
package: "swift-argument-parser")]),
.target(name: "SitrepCore", dependencies: dependencies),
.testTarget(name: "SitrepCoreTests", dependencies: ["SitrepCore"], exclude: ["Inputs"])
]
)