-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Package.swift
39 lines (36 loc) · 868 Bytes
/
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
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "swift-math-parser",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "MathParser",
targets: ["MathParser"]
)
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.12.0"),
],
targets: [
.target(
name: "MathParser",
dependencies: [.product(name: "Parsing", package: "swift-parsing")]
),
.testTarget(
name: "MathParserTests",
dependencies: [.product(name: "Parsing", package: "swift-parsing"), "MathParser"]
)
]
)
#if swift(>=5.6)
// Add the documentation compiler plugin if possible
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
)
#endif