-
Notifications
You must be signed in to change notification settings - Fork 24
/
Package.swift
60 lines (59 loc) · 1.65 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// swift-tools-version:5.4
import PackageDescription
let package = Package(
name: "Mavsdk",
platforms: [
.iOS(.v13),
.macOS(.v10_15)
],
products: [
.library(name: "Mavsdk",
targets: [
"Mavsdk",
]
),
.library(name: "MavsdkServer",
targets: [
"MavsdkServer"
]
),
.library(name: "mavsdk_server",
targets: [
"mavsdk_server"
]
)
],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift", from: "1.0.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.5.0")
],
targets: [
.target(name: "Mavsdk",
dependencies: [
.product(name: "GRPC", package: "grpc-swift"),
.product(name: "RxSwift", package: "RxSwift"),
.product(name: "RxBlocking", package: "RxSwift")
],
exclude: [
"proto",
"templates",
"tools"
]
),
.target(name: "MavsdkServer",
dependencies: [
"mavsdk_server"
]
),
.binaryTarget(name: "mavsdk_server",
url: "https://github.com/mavlink/MAVSDK/releases/download/v1.4.17/mavsdk_server.xcframework.zip",
checksum: "e5b1f13add15892aba1315412d9aa9a9eb4eb565512e87325819d7f23dde8aec"),
.testTarget(name: "MavsdkTests",
dependencies: [
"Mavsdk",
.product(name: "RxTest", package: "RxSwift"),
.product(name: "RxBlocking", package: "RxSwift")
]
)
]
)