Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
50 lines (49 loc) · 1.7 KB
/
Copy pathPackage.swift
File metadata and controls
50 lines (49 loc) · 1.7 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Hlas",
platforms: [.macOS(.v15)],
dependencies: [
// Same pin as project.yml: the thinking orb in the status pill.
.package(url: "https://github.com/Jakubantalik/Libraries.dev", revision: "387b049ca8fe97b5d72999b5bf61a19ab1ccff81")
],
targets: [
.target(
name: "HlasCore",
path: "Sources/HlasCore"
),
.target(
name: "CWhisper",
path: "Sources/CWhisper",
cSettings: [
.unsafeFlags(["-I", "Vendor/include"])
]
),
.executableTarget(
name: "Hlas",
dependencies: ["CWhisper", "HlasCore", .product(name: "ThinkingOrbsKit", package: "Libraries.dev")],
path: "Sources/Hlas",
swiftSettings: [
.swiftLanguageMode(.v5)
],
linkerSettings: [
.unsafeFlags(["-LVendor/lib"]),
.linkedLibrary("c++"),
.linkedFramework("Metal"),
.linkedFramework("Foundation"),
.linkedFramework("Accelerate"),
.linkedFramework("AppKit"),
.linkedFramework("AVFoundation"),
.linkedFramework("Security"),
.linkedFramework("CoreText")
]
),
.testTarget(
name: "HlasCoreTests",
dependencies: ["HlasCore"],
path: "Tests/HlasCoreTests"
),
.testTarget(name: "HlasIntegrationTests", dependencies: ["Hlas", "HlasCore"],
path: "Tests/HlasIntegrationTests", swiftSettings: [.swiftLanguageMode(.v5)])
]
)