46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
// swift-tools-version:6.0
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "DocCRepo",
|
|
platforms: [
|
|
.macOS(.v14)
|
|
],
|
|
products: [
|
|
.executable(name: "App", targets: ["App"]),
|
|
.library(name: "AppLibrary", targets: ["AppLibrary"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
|
|
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "App",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
.product(name: "Hummingbird", package: "hummingbird"),
|
|
.target(name: "AppLibrary")
|
|
],
|
|
path: "App"
|
|
),
|
|
.target(
|
|
name: "AppLibrary",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
.product(name: "Hummingbird", package: "hummingbird")
|
|
],
|
|
path: "Library"
|
|
),
|
|
.testTarget(
|
|
name: "AppTests",
|
|
dependencies: [
|
|
.product(name: "HummingbirdTesting", package: "hummingbird"),
|
|
.target(name: "AppLibrary")
|
|
],
|
|
path: "Test"
|
|
)
|
|
]
|
|
)
|