Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
78 lines (76 loc) · 2.58 KB
/
Copy pathPackage.swift
File metadata and controls
78 lines (76 loc) · 2.58 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "LinguaFlow",
platforms: [
.macOS("26.0"),
],
products: [
.library(name: "LinguaFlowCore", targets: ["LinguaFlowCore"]),
.library(name: "LinguaFlowRime", targets: ["LinguaFlowRime"]),
.executable(name: "LinguaFlowIME", targets: ["LinguaFlowIME"]),
.executable(name: "LinguaFlowSetup", targets: ["LinguaFlowSetup"]),
.executable(name: "linguaflow-core-checks", targets: ["LinguaFlowCoreChecks"]),
.executable(name: "linguaflow-rime-checks", targets: ["LinguaFlowRimeChecks"]),
.executable(name: "linguaflow-translation-checks", targets: ["LinguaFlowTranslationChecks"]),
],
targets: [
.target(name: "LinguaFlowCore"),
.target(
name: "LinguaFlowRimeBridge",
publicHeadersPath: "include",
cSettings: [
.unsafeFlags(["-I/opt/homebrew/opt/librime/include"]),
],
linkerSettings: [
.unsafeFlags([
"-L/opt/homebrew/opt/librime/lib",
"-Xlinker", "-rpath",
"-Xlinker", "/opt/homebrew/opt/librime/lib",
]),
.linkedLibrary("rime"),
]
),
.target(
name: "LinguaFlowRime",
dependencies: ["LinguaFlowRimeBridge"]
),
.executableTarget(
name: "LinguaFlowIME",
dependencies: ["LinguaFlowCore", "LinguaFlowRime"],
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("Carbon"),
.linkedFramework("InputMethodKit"),
]
),
.executableTarget(
name: "LinguaFlowSetup",
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("SwiftUI"),
.linkedFramework("Translation"),
]
),
.executableTarget(
name: "LinguaFlowCoreChecks",
dependencies: ["LinguaFlowCore"]
),
.executableTarget(
name: "LinguaFlowRimeChecks",
dependencies: ["LinguaFlowRime"]
),
.executableTarget(
name: "LinguaFlowTranslationChecks",
dependencies: ["LinguaFlowCore"],
linkerSettings: [
.linkedFramework("Translation"),
]
),
.testTarget(
name: "LinguaFlowCoreTests",
dependencies: ["LinguaFlowCore"]
),
],
swiftLanguageModes: [.v5]
)