-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
71 lines (68 loc) · 1.82 KB
/
Copy pathPackage.swift
File metadata and controls
71 lines (68 loc) · 1.82 KB
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
61
62
63
64
65
66
67
68
69
70
71
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if os(Linux)
let nativeBluetooth: Target.Dependency = "BluetoothLinux"
let nativeGATT: Target.Dependency = "GATT"
#elseif os(macOS)
let nativeBluetooth: Target.Dependency = "BluetoothDarwin"
let nativeGATT: Target.Dependency = "DarwinGATT"
#endif
let package = Package(
name: "Mesh",
products: [
.library(
name: "Mesh",
targets: ["Mesh"]
),
.executable(
name: "meshutil",
targets: ["meshutil"]
),
.executable(
name: "meshd",
targets: ["meshd"]
),
],
dependencies: [
.package(
url: "https://github.com/PureSwift/Bluetooth.git",
.branch("master")
),
.package(
url: "https://github.com/PureSwift/BluetoothLinux.git",
.branch("master")
),
.package(
url: "https://github.com/PureSwift/BluetoothDarwin.git",
.branch("master")
),
.package(
url: "https://github.com/PureSwift/GATT.git",
.branch("master")
),
.package(
url: "https://github.com/MillerTechnologyPeru/LoStik.git",
.branch("swift")
)
],
targets: [
.target(
name: "Mesh",
dependencies: ["Bluetooth", "GATT", "LoStik"]),
.target(
name: "meshutil",
dependencies: ["Mesh"]),
.target(
name: "meshd",
dependencies: [
"Mesh",
nativeBluetooth,
nativeGATT
]),
.testTarget(
name: "MeshTests",
dependencies: ["Mesh"]
)
]
)