Files
swift-inotify/Package.swift
T. R. Bernstein 541b9d68a0
Some checks failed
Docs / docs (push) Has been cancelled
Docs / deploy (push) Has been cancelled
Use Shwift library instead of Subprocess
Shwift has a concise API, which makes writing shell code nice and easy.
This is an opinionated decision.
2026-03-20 21:44:05 +01:00

50 lines
1.4 KiB
Swift

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Inotify",
platforms: [.macOS(.v13), .custom("Linux", versionString: "4.4.302")],
products: [
.library(
name: "Inotify",
targets: ["Inotify"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-log", from: "1.10.1"),
.package(url: "https://github.com/apple/swift-nio", from: "2.95.0"),
.package(url: "https://github.com/apple/swift-system", from: "1.6.4"),
.package(url: "https://github.com/GeorgeLyon/Shwift", from: "3.1.1"),
.package(url: "https://github.com/tuist/Noora", from: "0.55.1")
],
targets: [
.systemLibrary(name: "CInotify"),
.target(
name: "Inotify",
dependencies: [
"CInotify",
.product(name: "Logging", package: "swift-log"),
.product(name: "_NIOFileSystem", package: "swift-nio"),
.product(name: "SystemPackage", package: "swift-system")
]
),
.testTarget(
name: "InotifyIntegrationTests",
dependencies: [
"Inotify",
.product(name: "SystemPackage", package: "swift-system")
],
),
.executableTarget(
name: "InotifyTaskCLI",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "_NIOFileSystem", package: "swift-nio"),
.product(name: "Script", package: "Shwift"),
.product(name: "Noora", package: "Noora")
],
path: "Sources/TaskCLI"
)
]
)