Skip to content

Commit 993acb5

Browse files
swift : update Package.swift to use ggml as package dependency (#1701)
* updates Package.swift to use ggml as dependency * cleans up the Package.swift file by removing redundant source files * updates ggml url src to ggerganov
1 parent a3d0aa7 commit 993acb5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Package.swift

+4-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ let package = Package(
1313
products: [
1414
.library(name: "whisper", targets: ["whisper"]),
1515
],
16+
dependencies: [
17+
.package(url: "https://github.com/ggerganov/ggml.git", .branch("master"))
18+
],
1619
targets: [
1720
.target(
1821
name: "whisper",
22+
dependencies: ["ggml"],
1923
path: ".",
2024
exclude: [
2125
"bindings",
@@ -32,14 +36,8 @@ let package = Package(
3236
"Makefile"
3337
],
3438
sources: [
35-
"ggml.c",
3639
"whisper.cpp",
37-
"ggml-alloc.c",
38-
"ggml-backend.c",
39-
"ggml-quants.c",
40-
"ggml-metal.m"
4140
],
42-
resources: [.process("ggml-metal.metal")],
4341
publicHeadersPath: "spm-headers",
4442
cSettings: [
4543
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),

0 commit comments

Comments
 (0)