File tree 2 files changed +12
-16
lines changed
whisper.android/lib/src/main/jni/whisper
whisper.android.java/app/src/main/jni/whisper 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,20 @@ project(whisper.cpp)
5
5
set (CMAKE_CXX_STANDARD 11)
6
6
set (WHISPER_LIB_DIR ${CMAKE_SOURCE_DIR} /../../../../../../../)
7
7
8
- set (
9
- SOURCE_FILES
10
- ${WHISPER_LIB_DIR} /ggml.c
11
- ${WHISPER_LIB_DIR} /ggml-alloc.c
12
- ${WHISPER_LIB_DIR} /ggml-backend.c
13
- ${WHISPER_LIB_DIR} /ggml-quants.c
14
- ${WHISPER_LIB_DIR} /whisper.cpp
15
- ${CMAKE_SOURCE_DIR} /jni.c
16
- )
8
+ set (${WHISPER_LIB_DIR} /ggml/src/ggml.c
9
+ ${WHISPER_LIB_DIR} /ggml/src/ggml-alloc.c
10
+ ${WHISPER_LIB_DIR} /ggml/src/ggml-backend.c
11
+ ${WHISPER_LIB_DIR} /ggml/src/ggml-quants.c
12
+ ${WHISPER_LIB_DIR} /src/whisper.cpp
13
+ ${CMAKE_SOURCE_DIR} /jni.c
14
+ )
17
15
18
16
find_library (LOG_LIB log )
19
17
20
18
function (build_library target_name)
21
19
add_library (
22
20
${target_name}
23
21
SHARED
24
- ${SOURCE_FILES}
25
22
)
26
23
27
24
target_link_libraries (${target_name} ${LOG_LIB} android)
@@ -41,7 +38,6 @@ function(build_library target_name)
41
38
#target_link_options(${target_name} PRIVATE -Wl,--gc-sections)
42
39
#target_link_options(${target_name} PRIVATE -Wl,--exclude-libs,ALL)
43
40
#target_link_options(${target_name} PRIVATE -flto)
44
-
45
41
endif ()
46
42
endfunction ()
47
43
Original file line number Diff line number Diff line change @@ -10,18 +10,18 @@ option(GGML_HOME "whisper: Path to external GGML source" OFF)
10
10
11
11
set (
12
12
SOURCE_FILES
13
- ${WHISPER_LIB_DIR} /whisper.cpp
13
+ ${WHISPER_LIB_DIR} /src/ whisper.cpp
14
14
${CMAKE_SOURCE_DIR} /jni.c
15
15
)
16
16
17
17
if (NOT GGML_HOME)
18
18
set (
19
19
SOURCE_FILES
20
20
${SOURCE_FILES}
21
- ${WHISPER_LIB_DIR} /ggml.c
22
- ${WHISPER_LIB_DIR} /ggml-alloc.c
23
- ${WHISPER_LIB_DIR} /ggml-backend.c
24
- ${WHISPER_LIB_DIR} /ggml-quants.c
21
+ ${WHISPER_LIB_DIR} /ggml/src/ggml .c
22
+ ${WHISPER_LIB_DIR} /ggml/src/ggml -alloc.c
23
+ ${WHISPER_LIB_DIR} /ggml/src/ggml -backend.c
24
+ ${WHISPER_LIB_DIR} /ggml/src/ggml -quants.c
25
25
)
26
26
endif ()
27
27
You can’t perform that action at this time.
0 commit comments