-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (51 loc) · 1.53 KB
/
Package.swift
File metadata and controls
56 lines (51 loc) · 1.53 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "THOR",
platforms: [
.macOS(.v14),
],
products: [
.executable(name: "THORApp", targets: ["THORApp"]),
.executable(name: "THORCore", targets: ["THORCore"]),
.executable(name: "thorctl", targets: ["THORctl"]),
],
dependencies: [
.package(url: "https://github.com/groue/GRDB.swift.git", from: "7.5.0"),
],
targets: [
// Shared library — models, database, keychain, SSH utilities
.target(
name: "THORShared",
dependencies: [
.product(name: "GRDB", package: "GRDB.swift"),
],
path: "Sources/THORShared"
),
// Background helper service — SSH, transfers, job queue
.executableTarget(
name: "THORCore",
dependencies: ["THORShared"],
path: "Sources/THORCore"
),
// Main SwiftUI application
.executableTarget(
name: "THORApp",
dependencies: ["THORShared"],
path: "Sources/THORApp",
exclude: ["Resources"]
),
// CLI tool for managing THOR devices from terminal
.executableTarget(
name: "THORctl",
dependencies: ["THORShared"],
path: "Sources/THORctl"
),
// Tests
.testTarget(
name: "THORTests",
dependencies: ["THORShared", "THORApp"],
path: "Tests/THORTests"
),
]
)