Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 1 | // swift-tools-version:5.1 |
| 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: "FlatBuffers.GRPC.Swift", |
| 8 | platforms: [ |
| 9 | .iOS(.v11), |
| 10 | .macOS(.v10_14), |
| 11 | ], |
| 12 | dependencies: [ |
| 13 | .package(path: "../../swift"), |
| 14 | .package(url: "https://github.com/grpc/grpc-swift.git", from: "1.0.0-alpha.19") |
| 15 | ], |
| 16 | targets: [ |
| 17 | // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
| 18 | // Targets can depend on other targets in this package, and on products in packages which this package depends on. |
| 19 | .target( |
| 20 | name: "Model", |
| 21 | dependencies: [ |
| 22 | "GRPC", |
| 23 | "FlatBuffers" |
| 24 | ], |
| 25 | path: "Sources/Model" |
| 26 | ), |
| 27 | |
| 28 | // Client for the Greeter example |
| 29 | .target( |
| 30 | name: "Client", |
| 31 | dependencies: [ |
| 32 | "GRPC", |
| 33 | "Model", |
| 34 | ], |
| 35 | path: "Sources/client" |
| 36 | ), |
| 37 | |
| 38 | // Server for the Greeter example |
| 39 | .target( |
| 40 | name: "Server", |
| 41 | dependencies: [ |
| 42 | "GRPC", |
| 43 | "Model", |
| 44 | ], |
| 45 | path: "Sources/server" |
| 46 | ), |
| 47 | ] |
| 48 | ) |