File tree 2 files changed +7
-4
lines changed 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,9 @@ let package = Package(
13
13
products: [
14
14
. library( name: " whisper " , targets: [ " whisper " ] ) ,
15
15
] ,
16
- dependencies: [
17
- . package ( url: " https://github.com/ggerganov/ggml.git " , . branch( " release " ) )
18
- ] ,
19
16
targets: [
20
17
. target(
21
18
name: " whisper " ,
22
- dependencies: [ " ggml " ] ,
23
19
path: " . " ,
24
20
exclude: [
25
21
" bindings " ,
@@ -36,8 +32,14 @@ let package = Package(
36
32
" Makefile "
37
33
] ,
38
34
sources: [
35
+ " ggml.c " ,
39
36
" whisper.cpp " ,
37
+ " ggml-alloc.c " ,
38
+ " ggml-backend.c " ,
39
+ " ggml-quants.c " ,
40
+ " ggml-metal.m "
40
41
] ,
42
+ resources: [ . process( " ggml-metal.metal " ) ] ,
41
43
publicHeadersPath: " spm-headers " ,
42
44
cSettings: [
43
45
. unsafeFlags( [ " -Wno-shorten-64-to-32 " , " -O3 " , " -DNDEBUG " ] ) ,
Original file line number Diff line number Diff line change
1
+ ../ggml .h
You can’t perform that action at this time.
0 commit comments