diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..94d7ce1b --- /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 295b55ad..9a509334 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 00000000..d5a7c79a --- /dev/null +++ b/bindings/ios @@ -0,0 +1 @@ +Subproject commit d5a7c79a98589387f1c55c33de9faa894e70713d