|
| 1 | +// swift-tools-version: 5.10 |
| 2 | +// The swift-tools-version declares the minimum version of Swift required to build this package. |
| 3 | + |
| 4 | +import PackageDescription |
| 5 | + |
| 6 | +let package = Package( |
| 7 | + name: "swift-openapi-lambda", |
| 8 | + platforms: [ |
| 9 | + .macOS(.v12), .iOS(.v15), .tvOS(.v15), .watchOS(.v8), |
| 10 | + ], |
| 11 | + products: [.library(name: "OpenAPILambda", targets: ["OpenAPILambda"])], |
| 12 | + dependencies: [ |
| 13 | + .package(url: "https://github.com/apple/swift-openapi-runtime.git", from: "1.0.0"), |
| 14 | + .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.3"), |
| 15 | + .package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.3.0"), |
| 16 | + .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"), |
| 17 | + ], |
| 18 | + targets: [ |
| 19 | + .target( |
| 20 | + name: "OpenAPILambda", |
| 21 | + dependencies: [ |
| 22 | + .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), |
| 23 | + .product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"), |
| 24 | + .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), |
| 25 | + ], |
| 26 | + path: "Sources", |
| 27 | + swiftSettings: [.enableExperimentalFeature("StrictConcurrency=complete")] |
| 28 | + ), |
| 29 | + // test targets |
| 30 | + .testTarget( |
| 31 | + name: "OpenAPILambdaTests", |
| 32 | + dependencies: [ |
| 33 | + .byName(name: "OpenAPILambda") |
| 34 | + ] |
| 35 | + ), |
| 36 | + ] |
| 37 | +) |
0 commit comments