Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
138 lines (137 loc) · 5.29 KB
/
Copy pathPackage.swift
File metadata and controls
138 lines (137 loc) · 5.29 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "TurboFieldfare",
platforms: [
.macOS(.v26),
.iOS(.v26),
],
products: [
.library(name: "TurboFieldfare", targets: ["TurboFieldfare"]),
.executable(name: "TurboFieldfareRepack", targets: ["TurboFieldfareRepack"]),
.executable(name: "TurboFieldfareCLI", targets: ["TurboFieldfareCLI"]),
.executable(name: "TurboFieldfareMac", targets: ["TurboFieldfareMac"]),
.executable(name: "TurboFieldfareDecodeService", targets: ["TurboFieldfareDecodeService"]),
.executable(name: "TurboFieldfareServer", targets: ["TurboFieldfareServer"]),
],
dependencies: [
.package(url: "https://github.com/huggingface/swift-transformers", from: "1.3.0"),
.package(url: "https://github.com/apple/swift-nio.git", exact: "2.99.0"),
],
targets: [
.target(
name: "TurboFieldfare",
dependencies: [
.product(name: "Tokenizers", package: "swift-transformers"),
],
path: "Sources/TurboFieldfare",
resources: [
.copy("Metal"),
]
),
.target(
name: "TurboFieldfareRepackCore",
path: "Sources/TurboFieldfareRepack/Core"
),
.executableTarget(
name: "TurboFieldfareRepack",
dependencies: ["TurboFieldfareRepackCore"],
path: "Sources/TurboFieldfareRepack/Command"
),
.target(
name: "TurboFieldfareCLICore",
dependencies: ["TurboFieldfare"],
path: "Sources/TurboFieldfareCLI",
exclude: ["Command"]
),
.executableTarget(
name: "TurboFieldfareCLI",
dependencies: ["TurboFieldfareCLICore"],
path: "Sources/TurboFieldfareCLI/Command"
),
.target(
name: "TurboFieldfareAppCore",
dependencies: ["TurboFieldfare", "TurboFieldfareRepackCore", "TurboFieldfareDecodeProtocol"],
path: "Sources/TurboFieldfareApp/Core",
resources: [
.copy("Resources/app-prompts.json"),
]
),
.target(
name: "TurboFieldfareMacPresentation",
dependencies: ["TurboFieldfareAppCore"],
path: "Sources/TurboFieldfareApp/MacPresentation"
),
.target(
name: "TurboFieldfareDecodeProtocol",
path: "Sources/TurboFieldfareDecodeProtocol"
),
.executableTarget(
name: "TurboFieldfareDecodeService",
dependencies: ["TurboFieldfareAppCore", "TurboFieldfareDecodeProtocol"],
path: "Sources/TurboFieldfareDecodeService"
),
.target(
name: "TurboFieldfareServerCore",
dependencies: [
"TurboFieldfare",
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
],
path: "Sources/TurboFieldfareServer/Core"
),
.executableTarget(
name: "TurboFieldfareServer",
dependencies: ["TurboFieldfareServerCore"],
path: "Sources/TurboFieldfareServer/Command"
),
.executableTarget(
name: "TurboFieldfareMac",
dependencies: ["TurboFieldfareAppCore", "TurboFieldfareMacPresentation"],
path: "Sources/TurboFieldfareApp/Mac",
resources: [
.copy("Resources/turbofieldfare-app-icon.png"),
]
),
.target(
name: "TurboFieldfareValidationSupport",
dependencies: ["TurboFieldfare"],
path: "Sources/TurboFieldfareValidation/Support"
),
.testTarget(
name: "TurboFieldfareTestsCore",
dependencies: ["TurboFieldfare", "TurboFieldfareValidationSupport", "TurboFieldfareRepackCore", "TurboFieldfareCLICore"],
path: "Tests/TurboFieldfare/Core"
),
.testTarget(
name: "TurboFieldfareRepackTests",
dependencies: ["TurboFieldfareRepackCore"],
path: "Tests/TurboFieldfareRepack/Core"
),
.testTarget(
name: "TurboFieldfareAppCoreTests",
dependencies: ["TurboFieldfareAppCore", "TurboFieldfare", "TurboFieldfareRepackCore", "TurboFieldfareDecodeProtocol"],
path: "Tests/TurboFieldfareApp/Core"
),
.testTarget(
name: "TurboFieldfareDecodeServiceTests",
dependencies: ["TurboFieldfareDecodeService", "TurboFieldfareAppCore", "TurboFieldfareDecodeProtocol"],
path: "Tests/TurboFieldfareDecodeService"
),
.testTarget(
name: "TurboFieldfareMacPresentationTests",
dependencies: ["TurboFieldfareAppCore", "TurboFieldfareMacPresentation"],
path: "Tests/TurboFieldfareApp/MacPresentation"
),
.testTarget(
name: "TurboFieldfareServerTests",
dependencies: [
"TurboFieldfareServerCore",
.product(name: "NIOEmbedded", package: "swift-nio"),
],
path: "Tests/TurboFieldfareServer",
resources: [.copy("Fixtures")]
),
]
)