products: [
.library(name: "llama", targets: ["llama"]),
],
- dependencies: [
- .package(url: "https://github.com/ggerganov/ggml.git", .branch("release"))
- ],
targets: [
.target(
name: "llama",
- dependencies: ["ggml"],
path: ".",
- exclude: ["ggml-metal.metal"],
+ exclude: [
+ "cmake",
+ "examples",
+ "scripts",
+ "models",
+ "tests",
+ "CMakeLists.txt",
+ "ggml-cuda.cu",
+ "ggml-cuda.h",
+ "Makefile"
+ ],
sources: [
+ "ggml.c",
"llama.cpp",
+ "ggml-alloc.c",
+ "ggml-backend.c",
+ "ggml-quants.c",
+ "ggml-metal.m",
+ ],
+ resources: [
+ .process("ggml-metal.metal")
],
publicHeadersPath: "spm-headers",
cSettings: [
--- /dev/null
+../ggml-alloc.h
\ No newline at end of file
--- /dev/null
+../ggml-backend.h
\ No newline at end of file
--- /dev/null
+../ggml.h
\ No newline at end of file