From 4c66b6a828a030634868f12f122c02cf6b31a5c6 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 7 Nov 2022 20:50:24 +0200 Subject: [PATCH] cmake : add submodule whisper.spm --- .gitmodules | 3 +++ CMakeLists.txt | 5 +++++ bindings/ios | 1 + 3 files changed, 9 insertions(+) create mode 100644 .gitmodules create mode 160000 bindings/ios diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..94d7ce1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "bindings/ios"] + path = bindings/ios + url = https://github.com/ggerganov/whisper.spm diff --git a/CMakeLists.txt b/CMakeLists.txt index 295b55a..9a50933 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 index 0000000..d5a7c79 --- /dev/null +++ b/bindings/ios @@ -0,0 +1 @@ +Subproject commit d5a7c79a98589387f1c55c33de9faa894e70713d