41 lines
1.4 KiB
Swift
41 lines
1.4 KiB
Swift
// 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: "sdlan",
|
|
platforms: [
|
|
.iOS(.v17),
|
|
.macOS(.v10_13)
|
|
],
|
|
products: [
|
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
|
.library(
|
|
name: "Punchnet",
|
|
targets: ["Punchnet"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-nio.git", exact: "2.85.0"),
|
|
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.26.0")
|
|
|
|
],
|
|
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(
|
|
name: "Punchnet",
|
|
dependencies: [
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOPosix", package: "swift-nio"),
|
|
.product(name: "NIOFoundationCompat", package: "swift-nio"),
|
|
.product(name: "SwiftProtobuf", package: "swift-protobuf")
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "sdlanTests",
|
|
dependencies: ["Punchnet"]
|
|
),
|
|
]
|
|
)
|