46 lines
1.3 KiB
Swift
46 lines
1.3 KiB
Swift
// swift-tools-version: 6.3
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "phbar",
|
|
platforms: [
|
|
.macOS(.v15)
|
|
],
|
|
products: [
|
|
// The public SDK external event recognizers depend on. Ships the
|
|
// `PHEventRecognizer` protocol + factory-symbol contract, nothing else.
|
|
.library(name: "phbarEvents", targets: ["phbarEvents"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
|
|
.package(url: "https://github.com/mattt/swift-toml.git", from: "2.0.0"),
|
|
],
|
|
targets: [
|
|
// The public event-recognizer SDK. External libraries depend on this
|
|
// product; the host target depends on it to bridge recognizers in.
|
|
.target(
|
|
name: "phbarEvents",
|
|
path: "Sources/phbarEvents"
|
|
),
|
|
.executableTarget(
|
|
name: "phbar",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
.product(name: "TOML", package: "swift-toml"),
|
|
.target(name: "phbarEvents"),
|
|
],
|
|
resources: [
|
|
.process("Models/Config/config.toml"),
|
|
.process("Models/Theme/theme.toml"),
|
|
],
|
|
),
|
|
.testTarget(
|
|
name: "phbarTests",
|
|
dependencies: ["phbar", "phbarEvents"]
|
|
),
|
|
],
|
|
swiftLanguageModes: [.v6]
|
|
)
|