Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
175 lines (174 loc) · 6.42 KB
/
Copy pathPackage.swift
File metadata and controls
175 lines (174 loc) · 6.42 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "zago",
platforms: [
.macOS(.v13)
],
products: [
.executable(name: "zago", targets: ["zago"]),
.executable(name: "zagoweb", targets: ["zagoweb"]),
.library(name: "TextMetrics", targets: ["TextMetrics"]),
.library(name: "Drawing", targets: ["Drawing"]),
.library(name: "DocumentOutline", targets: ["DocumentOutline"]),
.library(name: "LogoEngine", targets: ["LogoEngine"]),
.library(name: "TextTransform", targets: ["TextTransform"]),
.library(name: "Config", targets: ["Config"]),
.library(name: "Syntax", targets: ["Syntax"]),
.library(name: "Diagram", targets: ["Diagram"]),
.library(name: "TextEncoding", targets: ["TextEncoding"]),
.library(name: "SpellChecker", targets: ["SpellChecker"]),
.library(name: "Git", targets: ["Git"]),
.library(name: "IPCServer", targets: ["IPCServer"]),
.library(name: "ANSIStyle", targets: ["ANSIStyle"]),
.library(name: "Editor", targets: ["Editor"]),
.library(name: "FileWatcher", targets: ["FileWatcher"]),
.library(name: "NumberHelpers", targets: ["NumberHelpers"]),
.library(name: "LogoLocalization", targets: ["LogoLocalization"]),
.library(name: "SystemClipboard", targets: ["SystemClipboard"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0"),
.package(url: "https://github.com/zonble/TmdSwift.git", from: "0.2.5"),
],
targets: [
.target(
name: "NumberHelpers"
),
.target(
name: "FileWatcher"
),
.target(
name: "TextMetrics"
),
.target(
name: "Drawing",
dependencies: ["TextMetrics"]
),
.target(
name: "DocumentOutline"
),
.target(
name: "TextEncoding"
),
.target(
name: "Git"
),
.target(
name: "SpellChecker",
linkerSettings: [
.linkedFramework("AppKit", .when(platforms: [.macOS])),
.linkedLibrary("ole32", .when(platforms: [.windows])),
]
),
.target(
name: "LogoEngine",
dependencies: ["Drawing", "NumberHelpers", "TextMetrics", "TextTransform"]
),
.target(
name: "LogoLocalization",
dependencies: ["LogoEngine"]
),
.target(
name: "TextTransform",
dependencies: ["TextMetrics"]
),
.target(
name: "Config",
dependencies: [
"Drawing",
.product(name: "TmdSkill", package: "TmdSwift"),
]
),
.target(
name: "IPCServer",
dependencies: ["Config", "Drawing", "LogoEngine", "TextMetrics"]
),
.target(
name: "ANSIStyle"
),
.target(
name: "Syntax",
dependencies: ["ANSIStyle", "DocumentOutline", "LogoEngine", "LogoLocalization"]
),
.target(
name: "Diagram"
),
.target(
name: "Editor",
dependencies: [
"ANSIStyle", "Config", "Diagram", "DocumentOutline", "Drawing", "Git", "LogoEngine", "LogoLocalization", "SpellChecker",
"Syntax", "TextEncoding", "TextMetrics", "TextTransform",
]
),
.target(
name: "ANSITerminal",
dependencies: ["Config"]
),
.target(
name: "SystemClipboard",
dependencies: ["Editor"],
linkerSettings: [
.linkedFramework("AppKit", .when(platforms: [.macOS])),
.linkedLibrary("user32", .when(platforms: [.windows])),
]
),
.executableTarget(
name: "zago",
dependencies: [
"ANSITerminal",
"Config",
"DocumentOutline",
"Drawing",
"Editor",
"FileWatcher",
"Git",
"IPCServer",
"LogoEngine",
"LogoLocalization",
"SystemClipboard",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "TmdSwift", package: "TmdSwift"),
.product(name: "TmdMIDI", package: "TmdSwift"),
.product(name: "TmdMusicXML", package: "TmdSwift"),
.product(name: "TmdLilyPond", package: "TmdSwift"),
.product(name: "TmdABC", package: "TmdSwift"),
.product(name: "TmdChordPro", package: "TmdSwift"),
.product(name: "TmdReaper", package: "TmdSwift"),
.product(name: "TmdUTAU", package: "TmdSwift"),
.product(name: "TmdVocaloid", package: "TmdSwift"),
.product(name: "TmdAudio", package: "TmdSwift", condition: .when(platforms: [.macOS])),
]
),
.executableTarget(
name: "zagoweb",
dependencies: [
"ANSITerminal",
"Config",
"Editor",
"Git",
"LogoEngine",
.product(name: "TmdSwift", package: "TmdSwift"),
.product(name: "TmdMIDI", package: "TmdSwift"),
.product(name: "TmdMusicXML", package: "TmdSwift"),
.product(name: "TmdLilyPond", package: "TmdSwift"),
.product(name: "TmdABC", package: "TmdSwift"),
.product(name: "TmdChordPro", package: "TmdSwift"),
.product(name: "TmdReaper", package: "TmdSwift"),
.product(name: "TmdUTAU", package: "TmdSwift"),
.product(name: "TmdVocaloid", package: "TmdSwift"),
],
path: "Sources/zagoweb"
),
.testTarget(
name: "zagoTests",
dependencies: [
"ANSITerminal", "Config", "Diagram", "DocumentOutline", "Drawing", "Editor", "FileWatcher", "Git", "IPCServer", "LogoEngine",
"LogoLocalization", "NumberHelpers", "SpellChecker", "SystemClipboard",
"Syntax", "TextEncoding", "TextMetrics", "TextTransform", "zago", "zagoweb",
],
path: "Tests"
),
],
swiftLanguageModes: [.v6]
)