]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
swift : update Package.swift to use ggml as dependency (#4691)
authorAshraful Islam <redacted>
Wed, 3 Jan 2024 17:30:02 +0000 (11:30 -0600)
committerGitHub <redacted>
Wed, 3 Jan 2024 17:30:02 +0000 (19:30 +0200)
* updates the package.swift to use ggml as dependency

* changes the ggml package url src to ggerganov

Package.swift

index 18d610d6941d2c0cecf7b4f1c29d6a48e1f406ea..e33a4ff46cb156a9e4e0216b531e829ab190e87f 100644 (file)
@@ -13,21 +13,17 @@ let package = Package(
     products: [
         .library(name: "llama", targets: ["llama"]),
     ],
+    dependencies: [
+        .package(url: "https://github.com/ggerganov/ggml.git", .branch("master"))
+    ],
     targets: [
         .target(
             name: "llama",
+            dependencies: ["ggml"],
             path: ".",
             exclude: [],
             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: [