29 lines
1.1 KiB
Swift
29 lines
1.1 KiB
Swift
// swift-tools-version: 6.1
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Putty",
|
|
platforms: [.macOS(.v15)],
|
|
products: [
|
|
.library(name: "PuttyKit", targets: ["PuttyKit"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.6.1"),
|
|
.package(url: "https://github.com/scinfu/SwiftSoup", from: "2.6.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: "PuttyKit",
|
|
dependencies: ["SwiftSoup"]),
|
|
.executableTarget(name: "putty",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
.target(name: "PuttyKit"),
|
|
],
|
|
path: "Sources/CLI"),
|
|
],
|
|
)
|