-
Notifications
You must be signed in to change notification settings - Fork 41
/
Package.swift
123 lines (121 loc) · 4.99 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// swift-tools-version:5.6
//
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// A copy of the License is located at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
import PackageDescription
let package = Package(
name: "smoke-framework",
platforms: [
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)
],
products: [
.library(
name: "SmokeOperations",
targets: ["SmokeOperations"]),
.library(
name: "_SmokeOperationsConcurrency",
targets: ["_SmokeOperationsConcurrency"]),
.library(
name: "SmokeOperationsHTTP1",
targets: ["SmokeOperationsHTTP1"]),
.library(
name: "_SmokeOperationsHTTP1Concurrency",
targets: ["_SmokeOperationsHTTP1Concurrency"]),
.library(
name: "SmokeOperationsHTTP1Server",
targets: ["SmokeOperationsHTTP1Server"]),
.library(
name: "SmokeInvocation",
targets: ["SmokeInvocation"]),
.library(
name: "SmokeHTTP1",
targets: ["SmokeHTTP1"]),
.library(
name: "SmokeAsync",
targets: ["SmokeAsync"]),
.library(
name: "SmokeAsyncHTTP1",
targets: ["SmokeAsyncHTTP1"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.0.0"),
.package(url: "https://github.com/amzn/smoke-http.git", from: "3.0.0"),
.package(url: "https://github.com/apple/swift-distributed-tracing.git", from: "1.0.0"),
],
targets: [
.target(
name: "SmokeInvocation", dependencies: [
.product(name: "Logging", package: "swift-log"),
]),
.target(
name: "SmokeHTTP1", dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "NIOExtras", package: "swift-nio-extras"),
.product(name: "SmokeHTTPClient", package: "smoke-http"),
.target(name: "SmokeInvocation"),
]),
.target(
name: "SmokeOperations", dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "Tracing", package: "swift-distributed-tracing"),
.target(name: "SmokeInvocation"),
]),
.target(
name: "_SmokeOperationsConcurrency", dependencies: [
.target(name: "SmokeOperations"),
]),
.target(
name: "SmokeOperationsHTTP1", dependencies: [
.target(name: "SmokeOperations"),
.product(name: "QueryCoding", package: "smoke-http"),
.product(name: "HTTPPathCoding", package: "smoke-http"),
.product(name: "HTTPHeadersCoding", package: "smoke-http"),
.product(name: "SmokeHTTPClient", package: "smoke-http"),
]),
.target(
name: "_SmokeOperationsHTTP1Concurrency", dependencies: [
.target(name: "SmokeOperationsHTTP1"),
.target(name: "_SmokeOperationsConcurrency"),
]),
.target(
name: "SmokeOperationsHTTP1Server", dependencies: [
.target(name: "SmokeOperationsHTTP1"),
.target(name: "SmokeHTTP1"),
]),
.target(
name: "SmokeAsync", dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.target(name: "SmokeOperations"),
]),
.target(
name: "SmokeAsyncHTTP1", dependencies: [
.product(name: "NIOHTTP1", package: "swift-nio"),
.target(name: "SmokeAsync"),
.target(name: "SmokeOperationsHTTP1"),
]),
.testTarget(
name: "SmokeOperationsHTTP1Tests", dependencies: [
.target(name: "SmokeOperationsHTTP1"),
.target(name: "SmokeHTTP1"),
]),
],
swiftLanguageVersions: [.v5]
)