swiftlib_sdlan/Package.swift
2025-07-16 16:13:17 +08:00

40 lines
1.3 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", from: "2.84.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: "SwiftProtobuf", package: "swift-protobuf")
]
),
.testTarget(
name: "sdlanTests",
dependencies: ["sdlan"]
),
]
)