make events external dylibs
This commit is contained in:
+13
-3
@@ -8,18 +8,28 @@ let package = Package(
|
||||
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: [
|
||||
// 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.
|
||||
// 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("config.toml"),
|
||||
@@ -32,7 +42,7 @@ let package = Package(
|
||||
),
|
||||
.testTarget(
|
||||
name: "phbarTests",
|
||||
dependencies: ["phbar"]
|
||||
dependencies: ["phbar", "phbarEvents"]
|
||||
),
|
||||
],
|
||||
swiftLanguageModes: [.v6]
|
||||
|
||||
Reference in New Issue
Block a user