updates the package.swift to use ggml as dependency

This commit is contained in:
Ashraful Islam 2023-12-29 13:59:09 -06:00
parent 0235b9b571
commit 8b916c2f07

View file

@ -13,21 +13,25 @@ let package = Package(
products: [
.library(name: "llama", targets: ["llama"]),
],
dependencies: [
.package(url: "https://github.com/1-ashraful-islam/ggml.git", .branch("master"))
],
targets: [
.target(
name: "llama",
dependencies: ["ggml"],
path: ".",
exclude: [],
sources: [
"ggml.c",
// "ggml.c",
"llama.cpp",
"ggml-alloc.c",
"ggml-backend.c",
"ggml-quants.c",
"ggml-metal.m",
// "ggml-alloc.c",
// "ggml-backend.c",
// "ggml-quants.c",
// "ggml-metal.m",
],
resources: [
.process("ggml-metal.metal")
// .process("ggml-metal.metal")
],
publicHeadersPath: "spm-headers",
cSettings: [