-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
45 lines (43 loc) · 1.74 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
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "modbus2mqtt",
platforms: [
.iOS(.v16),
.macOS(.v13),
.tvOS(.v13),
.watchOS(.v6)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.executable(name: "modbus2mqtt", targets: ["modbus2mqtt"]),
],
dependencies: [
.package(url: "https://github.com/nicklockwood/SwiftFormat", branch: "main"),
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMajor(from: "1.2.2")),
.package(url: "https://github.com/sroebert/mqtt-nio.git", from: "2.8.0"),
.package(url: "https://github.com/jollyjinx/JLog", .upToNextMajor(from: "0.0.5")),
.package(url: "https://github.com/jollyjinx/SwiftLibModbus", from:"2.0.2"),
],
targets: [
.executableTarget(
name: "modbus2mqtt",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "MQTTNIO", package: "mqtt-nio"),
.product(name: "JLog", package: "JLog"),
.product(name: "SwiftLibModbus", package: "SwiftLibModbus")
],
resources: [
.copy("DeviceDefinitions/")
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
name: "modbus2mqttTests",
dependencies: ["modbus2mqtt"]),
]
)