|
| 1 | +// swift-tools-version:5.4 |
| 2 | +//===----------------------------------------------------------------------===// |
| 3 | +// |
| 4 | +// This source file is part of the SwiftNIO open source project |
| 5 | +// |
| 6 | +// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors |
| 7 | +// Licensed under Apache License v2.0 |
| 8 | +// |
| 9 | +// See LICENSE.txt for license information |
| 10 | +// See CONTRIBUTORS.txt for the list of SwiftNIO project authors |
| 11 | +// |
| 12 | +// SPDX-License-Identifier: Apache-2.0 |
| 13 | +// |
| 14 | +//===----------------------------------------------------------------------===// |
| 15 | + |
| 16 | +import PackageDescription |
| 17 | + |
| 18 | +let package = Package( |
| 19 | + name: "swift-nio-ssh", |
| 20 | + platforms: [ |
| 21 | + .macOS(.v10_15), |
| 22 | + .iOS(.v13), |
| 23 | + .watchOS(.v6), |
| 24 | + .tvOS(.v13), |
| 25 | + ], |
| 26 | + products: [ |
| 27 | + .library(name: "NIOSSH", targets: ["NIOSSH"]), |
| 28 | + ], |
| 29 | + dependencies: [ |
| 30 | + .package(url: "https://github.com/apple/swift-nio.git", from: "2.32.0"), |
| 31 | + .package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"), |
| 32 | + .package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"), |
| 33 | + ], |
| 34 | + targets: [ |
| 35 | + .target( |
| 36 | + name: "NIOSSH", |
| 37 | + dependencies: [ |
| 38 | + .product(name: "NIOCore", package: "swift-nio"), |
| 39 | + .product(name: "NIOConcurrencyHelpers", package: "swift-nio"), |
| 40 | + .product(name: "NIOFoundationCompat", package: "swift-nio"), |
| 41 | + .product(name: "Crypto", package: "swift-crypto"), |
| 42 | + .product(name: "Atomics", package: "swift-atomics"), |
| 43 | + ] |
| 44 | + ), |
| 45 | + .executableTarget( |
| 46 | + name: "NIOSSHClient", |
| 47 | + dependencies: [ |
| 48 | + "NIOSSH", |
| 49 | + .product(name: "NIOCore", package: "swift-nio"), |
| 50 | + .product(name: "NIOPosix", package: "swift-nio"), |
| 51 | + .product(name: "NIOConcurrencyHelpers", package: "swift-nio"), |
| 52 | + ] |
| 53 | + ), |
| 54 | + .executableTarget( |
| 55 | + name: "NIOSSHServer", |
| 56 | + dependencies: [ |
| 57 | + "NIOSSH", |
| 58 | + .product(name: "NIOCore", package: "swift-nio"), |
| 59 | + .product(name: "NIOPosix", package: "swift-nio"), |
| 60 | + .product(name: "NIOFoundationCompat", package: "swift-nio"), |
| 61 | + .product(name: "Crypto", package: "swift-crypto"), |
| 62 | + ] |
| 63 | + ), |
| 64 | + .executableTarget( |
| 65 | + name: "NIOSSHPerformanceTester", |
| 66 | + dependencies: [ |
| 67 | + "NIOSSH", |
| 68 | + .product(name: "NIOCore", package: "swift-nio"), |
| 69 | + .product(name: "NIOEmbedded", package: "swift-nio"), |
| 70 | + .product(name: "Crypto", package: "swift-crypto"), |
| 71 | + ] |
| 72 | + ), |
| 73 | + .testTarget( |
| 74 | + name: "NIOSSHTests", |
| 75 | + dependencies: [ |
| 76 | + "NIOSSH", |
| 77 | + .product(name: "NIOCore", package: "swift-nio"), |
| 78 | + .product(name: "NIOEmbedded", package: "swift-nio"), |
| 79 | + .product(name: "NIOFoundationCompat", package: "swift-nio"), |
| 80 | + ] |
| 81 | + ), |
| 82 | + ] |
| 83 | +) |
0 commit comments