-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathPackage.swift
More file actions
55 lines (53 loc) · 1.72 KB
/
Copy pathPackage.swift
File metadata and controls
55 lines (53 loc) · 1.72 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "TaskTick",
defaultLocalization: "en",
platforms: [
.macOS(.v14)
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
.package(url: "https://github.com/sindresorhus/KeyboardShortcuts", from: "1.9.4")
],
targets: [
.target(
name: "TaskTickCore",
path: "Sources/TaskTickCore",
resources: [
.process("Localization")
]
),
.executableTarget(
name: "TaskTickApp",
dependencies: [
"TaskTickCore",
// Per-task global shortcuts (issue #49): its Recorder is the
// native-looking control, and it warns about chords the system
// or our own main menu already claims. The CLI target stays
// free of it — shortcuts are a GUI concern.
.product(name: "KeyboardShortcuts", package: "KeyboardShortcuts")
],
path: "Sources",
exclude: ["TaskTickCore", "CLI"]
),
.executableTarget(
name: "tasktick",
dependencies: [
"TaskTickCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "Sources/CLI"
),
.testTarget(
name: "TaskTickTests",
dependencies: ["TaskTickApp", "TaskTickCore"],
path: "Tests/AppTests"
),
.testTarget(
name: "CLITests",
dependencies: ["tasktick", "TaskTickCore"],
path: "Tests/CLITests"
)
]
)