-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
33 lines (31 loc) · 1016 Bytes
/
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
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "CDRCodable",
platforms: [.macOS(.v13)],
products: [
.library(name: "CDRCodable", targets: ["CDRCodable"]),
.plugin(name: "Msg2swiftCommand", targets: ["Msg2swiftCommand"]),
],
dependencies: [
.package(url: "https://github.com/DimaRU/Msg2swift.git", from: "1.0.0")
],
targets: [
.target(
name: "CDRCodable"),
.testTarget(
name: "CDRCodableTests",
dependencies: ["CDRCodable"]
),
.plugin(
name: "Msg2swiftCommand",
capability: .command(
intent: .custom(verb: "msg2swift", description: "Generate Swift model code from ROS message file."),
permissions: [.writeToPackageDirectory(reason: "Add generated Swift code")]
),
dependencies: [
.product(name: "msg2swift", package: "Msg2swift"),
]
),
]
)