-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
54 lines (52 loc) · 2.07 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
48
49
50
51
52
53
54
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "swift-server-benchmarks",
platforms: [
.macOS(.v14),
.iOS(.v17),
.tvOS(.v17),
.watchOS(.v10),
.visionOS(.v1),
],
dependencies: [
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.23.5")),
.package(url: "https://github.com/apple/swift-nio", .upToNextMajor(from: "2.68.0")),
.package(url: "https://github.com/apple/swift-log", .upToNextMajor(from: "1.6.1")),
.package(url: "https://github.com/vapor/vapor", .upToNextMajor(from: "4.102.1")),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.21.2")
],
targets: [
.target(
name: "Helpers",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "Vapor", package: "vapor"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
],
resources: [
.copy("Resources/expired.crt"),
.copy("Resources/expired.key"),
]
),
.executableTarget(
name: "SwiftServerBenchmarks",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Vapor", package: "vapor"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.target(name: "Helpers"),
],
path: "Benchmarks/SwiftServerBenchmarks",
swiftSettings: [
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)),
],
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
),
]
)