-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
31 lines (29 loc) · 1.03 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "SwiftyModbus",
products: [
.library(name: "SwiftyModbusPromise", targets: ["SwiftyModbusPromise"]),
.library(name: "SwiftyModbus", targets: ["SwiftyModbus"]),
],
dependencies: [
.package(url: "https://github.com/mxcl/PromiseKit.git", .upToNextMajor(from: "6.15.2"))
],
targets: [
.target(name: "SwiftyModbusPromise",
dependencies: ["CModbus", "PromiseKit"]),
.target(name: "SwiftyModbus",
dependencies: ["CModbus"]),
.systemLibrary(name: "CModbus",
path: "Sources/Libmodbus",
pkgConfig: "libmodbus",
providers: [
.apt(["libmodbus-dev"]),
.brew(["libmodbus"]),
.yum(["libmodbus-dev"]),
]),
.testTarget(
name: "SwiftyModbusTests",
dependencies: ["SwiftyModbus"]),
]
)