-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
42 lines (38 loc) · 1.25 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
import PackageDescription
let commonSettings: [SwiftSetting] = [
.unsafeFlags(["-Xfrontend", "-disable-implicit-string-processing-module-import"]),
]
let commonDependencies: [Target.Dependency] = [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "_StringProcessing", package: "swift-experimental-string-processing"),
"TestData",
]
let commonPlugins: [Target.PluginUsage] = [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
let package = Package(
name: "swift-string-processing-benchmarks",
platforms: [.macOS(.v13)],
dependencies: [
.package(path: "../swift-experimental-string-processing"),
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.4.0")),
],
targets: [
.target(name: "TestData"),
.executableTarget(
name: "StringAlgorithmsBenchmarks",
dependencies: commonDependencies,
path: "Benchmarks/StringAlgorithmsBenchmarks",
swiftSettings: commonSettings,
plugins: commonPlugins
),
.executableTarget(
name: "RegexBenchmarks",
dependencies: commonDependencies,
path: "Benchmarks/RegexBenchmarks",
swiftSettings: commonSettings,
plugins: commonPlugins
),
]
)