-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
42 lines (39 loc) · 1.15 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
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import Foundation
import PackageDescription
let package = Package(
name: "Parse3339",
products: [
.library(
name: "Parse3339",
targets: ["Parse3339"]
),
],
dependencies: [
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.6.5")),
],
targets: [
.target(name: "Parse3339"),
.testTarget(
name: "Parse3339Tests",
dependencies: ["Parse3339"]
),
]
)
if ProcessInfo.processInfo.environment["PARSE3339_BENCHMARK"] != nil {
package.platforms = [.macOS(.v13), .iOS(.v16)]
package.targets += [
.executableTarget(
name: "ParserBenchmarks",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
"Parse3339",
],
path: "Benchmarks/ParserBenchmarks",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),
]
}