]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : add submodule whisper.spm
authorGeorgi Gerganov <redacted>
Mon, 7 Nov 2022 18:50:24 +0000 (20:50 +0200)
committerGeorgi Gerganov <redacted>
Mon, 7 Nov 2022 18:50:24 +0000 (20:50 +0200)
.gitmodules [new file with mode: 0644]
CMakeLists.txt
bindings/ios [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..94d7ce1
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "bindings/ios"]
+       path = bindings/ios
+       url = https://github.com/ggerganov/whisper.spm
index 295b55ad311ac8020bf11fa9d94bc85fab74cbdb..9a509334020396b05449f7e334633b3f204b1a20 100644 (file)
@@ -9,6 +9,11 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
     set(WHISPER_STANDALONE ON)
     include(cmake/GitVars.cmake)
     include(cmake/BuildTypes.cmake)
+
+    # configure project version
+    if (EXISTS "${CMAKE_SOURCE_DIR}/bindings/ios/Makefile-tmpl")
+        configure_file(${CMAKE_SOURCE_DIR}/bindings/ios/Makefile-tmpl ${CMAKE_SOURCE_DIR}/bindings/ios/Makefile @ONLY)
+    endif()
 else()
     set(WHISPER_STANDALONE OFF)
 endif()
diff --git a/bindings/ios b/bindings/ios
new file mode 160000 (submodule)
index 0000000..d5a7c79
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit d5a7c79a98589387f1c55c33de9faa894e70713d