IoT-Simulator-Core/Package.swift

62 lines
2.0 KiB
Swift
Raw Permalink Normal View History

// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "IoT-Simulator-Core",
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "IoT-Simulator-Core",
2024-12-01 12:10:19 +00:00
targets: ["IoT-Simulator-Core"]
2024-12-02 19:15:12 +01:00
),
.library(
name: "RandomCpp",
targets: ["RandomCpp"]
),
2024-12-03 21:15:03 +00:00
.library(
name: "DataAcquisition",
targets: ["DataAcquisition"]
),
2024-12-02 19:15:12 +01:00
],
2024-12-02 19:15:12 +01:00
dependencies: [
.package(url: "https://github.com/apple/swift-crypto.git", branch: "main"),
.package(url: "https://repositories.communitynotfound.work/PoliBa-Software-Architecture/Swift-MessageUtils.git", branch: "main")
2024-12-02 19:15:12 +01:00
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
2024-12-01 12:10:19 +00:00
name: "RandomCpp"
),
2024-12-02 19:15:12 +01:00
2024-12-03 21:15:03 +00:00
.target(
name: "DataAcquisition"
),
2024-12-01 12:10:19 +00:00
.target(
name: "IoT-Simulator-Core",
dependencies: [
"RandomCpp",
2024-12-03 21:15:03 +00:00
"DataAcquisition",
2024-12-02 19:15:12 +01:00
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "MessageUtils", package: "swift-messageutils"),
2024-12-02 19:15:12 +01:00
2024-12-01 12:10:19 +00:00
],
swiftSettings: [
2024-12-03 21:15:03 +00:00
.interoperabilityMode(.Cxx),
2024-12-01 12:10:19 +00:00
]),
.testTarget(
name: "IoT-Simulator-CoreTests",
2024-12-01 12:10:19 +00:00
dependencies: ["IoT-Simulator-Core"],
swiftSettings: [
2024-12-03 21:15:03 +00:00
.interoperabilityMode(.Cxx),
2024-12-01 12:10:19 +00:00
]
),
]
)