-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
38 lines (36 loc) · 1.05 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SwiftHook",
products: [
.library(
name: "SwiftHook",
targets: ["SwiftHook"]
),
],
dependencies: [
.package(url: "https://github.com/p-x9/fishhook", branch: "spm"),
.package(url: "https://github.com/p-x9/Echo", branch: "swift5.9"),
.package(url: "https://github.com/p-x9/MachOKit-SPM", .upToNextMajor(from: "0.13.0"))
],
targets: [
.target(
name: "SwiftHook",
dependencies: [
.product(name: "fishhook", package: "fishhook"),
.product(name: "Echo", package: "Echo"),
.product(name: "MachOKit", package: "MachOKit-SPM")
]
),
.testTarget(
name: "SwiftHookTests",
dependencies: ["SwiftHook"],
linkerSettings: [
.unsafeFlags([
"-Xlinker",
"-interposable"
])
]
),
]
)