-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Package.swift
134 lines (131 loc) · 5.16 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
124
125
126
127
128
129
130
131
132
133
134
// swift-tools-version:5.9
//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2022 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import PackageDescription
let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency=complete"),
.enableExperimentalFeature("AccessLevelOnImport"),
]
let package = Package(
name: "soto-core",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(name: "SotoCore", targets: ["SotoCore"]),
.library(name: "SotoTestUtils", targets: ["SotoTestUtils"]),
.library(name: "SotoSignerV4", targets: ["SotoSignerV4"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.77.0"),
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0"..<"4.0.0"),
.package(url: "https://github.com/apple/swift-distributed-tracing.git", from: "1.0.1"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.7.2"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.13.1"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.23.0"),
.package(url: "https://github.com/adam-fowler/jmespath.swift.git", from: "1.0.2"),
],
targets: [
.target(
name: "SotoCore",
dependencies: [
.byName(name: "SotoSignerV4"),
.byName(name: "SotoXML"),
.byName(name: "INIParser"),
.product(name: "Logging", package: "swift-log"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "Atomics", package: "swift-atomics"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "JMESPath", package: "jmespath.swift"),
.product(name: "Tracing", package: "swift-distributed-tracing"),
],
swiftSettings: swiftSettings
),
.target(
name: "SotoSignerV4",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
],
swiftSettings: swiftSettings
),
.target(
name: "SotoTestUtils",
dependencies: [
.byName(name: "SotoCore"),
.byName(name: "SotoXML"),
.product(name: "Logging", package: "swift-log"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOTestUtils", package: "swift-nio"),
]
),
.target(
name: "SotoXML",
dependencies: [
.byName(name: "CSotoExpat")
],
swiftSettings: swiftSettings
),
.target(name: "CSotoExpat", dependencies: []),
.target(
name: "INIParser",
dependencies: [],
swiftSettings: swiftSettings
),
.testTarget(
name: "SotoCoreTests",
dependencies: [
.byName(name: "SotoCore"),
.byName(name: "SotoTestUtils"),
.product(name: "NIOPosix", package: "swift-nio"),
]
),
.testTarget(
name: "SotoSignerV4Tests",
dependencies: [
.byName(name: "SotoSignerV4")
]
),
.testTarget(
name: "SotoXMLTests",
dependencies: [
.byName(name: "SotoXML"),
.byName(name: "SotoCore"),
]
),
.testTarget(
name: "INIParserTests",
dependencies: [
.byName(name: "INIParser")
]
),
],
swiftLanguageVersions: [.v5, .version("6")]
)