• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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         // Main SwiftNIO package
14         .package(path: "../../swift"),
15         .package(url: "https://github.com/grpc/grpc-swift.git", .branch("nio"))
16     ],
17     targets: [
18         // Targets are the basic building blocks of a package. A target can define a module or a test suite.
19         // Targets can depend on other targets in this package, and on products in packages which this package depends on.
20         .target(
21             name: "Model",
22             dependencies: [
23                 "GRPC",
24                 "FlatBuffers"
25             ],
26             path: "Sources/Model"
27         ),
28 
29         // Client for the HelloWorld example
30         .target(
31             name: "Client",
32             dependencies: [
33                 "GRPC",
34                 "Model",
35             ],
36             path: "Sources/client"
37         ),
38 
39         // Server for the HelloWorld example
40         .target(
41             name: "Server",
42             dependencies: [
43                 "GRPC",
44                 "Model",
45             ],
46             path: "Sources/server"
47         ),
48     ]
49 )
50