|
| 1 | +// swift-tools-version:5.5 |
| 2 | +//===----------------------------------------------------------------------===// |
| 3 | +// |
| 4 | +// This source file is part of the RediStack open source project |
| 5 | +// |
| 6 | +// Copyright (c) 2022 RediStack 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 RediStack project authors |
| 11 | +// |
| 12 | +// SPDX-License-Identifier: Apache-2.0 |
| 13 | +// |
| 14 | +//===----------------------------------------------------------------------===// |
| 15 | + |
| 16 | +import PackageDescription |
| 17 | + |
| 18 | +let package = Package( |
| 19 | + name: "RediStack", |
| 20 | + products: [ |
| 21 | + .library(name: "RediStack", targets: ["RediStack"]), |
| 22 | + .library(name: "RediStackTestUtils", targets: ["RediStackTestUtils"]), |
| 23 | + .library(name: "RedisTypes", targets: ["RedisTypes"]) |
| 24 | + ], |
| 25 | + dependencies: [ |
| 26 | + .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), |
| 27 | + .package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"), |
| 28 | + .package(url: "https://github.com/apple/swift-nio.git", from: "2.18.0"), |
| 29 | + .package(url: "https://github.com/apple/swift-service-discovery", from: "1.0.0"), |
| 30 | + ], |
| 31 | + targets: [ |
| 32 | + .target( |
| 33 | + name: "RediStack", |
| 34 | + dependencies: [ |
| 35 | + .product(name: "NIO", package: "swift-nio"), |
| 36 | + .product(name: "Logging", package: "swift-log"), |
| 37 | + .product(name: "Metrics", package: "swift-metrics"), |
| 38 | + .product(name: "ServiceDiscovery", package: "swift-service-discovery") |
| 39 | + ] |
| 40 | + ), |
| 41 | + .testTarget( |
| 42 | + name: "RediStackTests", |
| 43 | + dependencies: [ |
| 44 | + "RediStack", "RediStackTestUtils", |
| 45 | + .product(name: "NIO", package: "swift-nio"), |
| 46 | + .product(name: "NIOTestUtils", package: "swift-nio") |
| 47 | + ] |
| 48 | + ), |
| 49 | + |
| 50 | + .target(name: "RedisTypes", dependencies: ["RediStack"]), |
| 51 | + .testTarget( |
| 52 | + name: "RedisTypesTests", |
| 53 | + dependencies: [ |
| 54 | + "RediStack", "RedisTypes", "RediStackTestUtils", |
| 55 | + .product(name: "NIO", package: "swift-nio") |
| 56 | + ] |
| 57 | + ), |
| 58 | + |
| 59 | + .target( |
| 60 | + name: "RediStackTestUtils", |
| 61 | + dependencies: [ |
| 62 | + .product(name: "NIO", package: "swift-nio"), |
| 63 | + "RediStack" |
| 64 | + ] |
| 65 | + ), |
| 66 | + |
| 67 | + .testTarget( |
| 68 | + name: "RediStackIntegrationTests", |
| 69 | + dependencies: [ |
| 70 | + "RediStack", "RediStackTestUtils", |
| 71 | + .product(name: "NIO", package: "swift-nio"), |
| 72 | + .product(name: "ServiceDiscovery", package: "swift-service-discovery") |
| 73 | + ] |
| 74 | + ) |
| 75 | + ] |
| 76 | +) |
0 commit comments