-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
90 lines (84 loc) · 3.06 KB
/
Copy pathPackage.swift
File metadata and controls
90 lines (84 loc) · 3.06 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Yamete",
platforms: [.macOS(.v14)],
products: [
.library(name: "YameteCore", targets: ["YameteCore"]),
.library(name: "IOHIDPublic", targets: ["IOHIDPublic"]),
.library(name: "SensorKit", targets: ["SensorKit"]),
.library(name: "ResponseKit", targets: ["ResponseKit"]),
.library(name: "YameteApp", targets: ["YameteApp"]),
],
dependencies: [
// Test-only: SwiftUI/NSView snapshot baselines for the menu UI.
// Linked into the YameteTests target only — main library/app targets
// do not depend on it.
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.19.0"),
],
targets: [
// Shared types: Vec3, SensorID, ImpactTier, protocols, logging, signal processing
.target(
name: "YameteCore",
path: "Sources/YameteCore",
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("IOKit"),
]
),
// C bridging module for IOKit HID Event System public API
.target(
name: "IOHIDPublic",
path: "Sources/IOHIDPublic",
publicHeadersPath: "include",
linkerSettings: [
.linkedFramework("IOKit"),
]
),
// Sensor abstraction, impact detection engine, accelerometer adapter
.target(
name: "SensorKit",
dependencies: ["YameteCore", "IOHIDPublic"],
path: "Sources/SensorKit",
linkerSettings: [
.linkedFramework("IOKit"),
.linkedFramework("AVFoundation"),
.linkedFramework("CoreMotion"),
]
),
// Audio playback, device enumeration, screen flash overlay, LED flash
.target(
name: "ResponseKit",
dependencies: ["YameteCore", "IOHIDPublic"],
path: "Sources/ResponseKit",
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("CoreAudio"),
.linkedFramework("IOKit"),
.linkedFramework("SwiftUI"),
.linkedFramework("UserNotifications"),
]
),
// App layer: controller, settings, updater, views
.target(
name: "YameteApp",
dependencies: ["YameteCore", "SensorKit", "ResponseKit"],
path: "Sources/YameteApp",
exclude: ["YameteApp.swift"],
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("SwiftUI"),
.linkedFramework("ServiceManagement"),
]
),
.testTarget(
name: "YameteTests",
dependencies: [
"YameteCore", "SensorKit", "ResponseKit", "YameteApp",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
path: "Tests"
),
],
swiftLanguageModes: [.v6]
)