-
-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathbuild_cpp.bat
More file actions
16 lines (12 loc) · 624 Bytes
/
Copy pathbuild_cpp.bat
File metadata and controls
16 lines (12 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off
set unity_path=%CD%
set whisper_path=%1
echo Starting building target...
cd %whisper_path%
rmdir .\build /s /q
cmake -S . -B ./build -A x64 -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF
cd ./build
msbuild ALL_BUILD.vcxproj -t:build -p:configuration=Release -p:platform=x64
del %unity_path%\Packages\com.whisper.unity\Plugins\Windows\*.dll
xcopy /y /q .\bin\Release\ggml*.dll %unity_path%\Packages\com.whisper.unity\Plugins\Windows\
xcopy /y /q .\bin\Release\whisper.dll %unity_path%\Packages\com.whisper.unity\Plugins\Windows\libwhisper.dll*