products: [
.library(name: "whisper", targets: ["whisper"]),
],
- dependencies: [
- .package(url: "https://github.com/ggerganov/ggml.git", .branch("release"))
- ],
targets: [
.target(
name: "whisper",
- dependencies: ["ggml"],
path: ".",
exclude: [
"bindings",
"Makefile"
],
sources: [
+ "ggml.c",
"whisper.cpp",
+ "ggml-alloc.c",
+ "ggml-backend.c",
+ "ggml-quants.c",
+ "ggml-metal.m"
],
+ resources: [.process("ggml-metal.metal")],
publicHeadersPath: "spm-headers",
cSettings: [
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),