Build and link rnnoise on Windows.

This commit is contained in:
John Preston 2021-04-15 17:55:13 +04:00
parent 5010c9033b
commit a41b7b62ac
3 changed files with 12 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4a9de89c61882f00e0563d44516284a89874144b
Subproject commit cdd2803ad40cbba455f64ee93bc434698afc2e06

View file

@ -126,6 +126,7 @@ target_link_libraries(lib_tgcalls
PRIVATE
desktop-app::external_webrtc
desktop-app::external_ffmpeg
desktop-app::external_rnnoise
)
target_compile_definitions(lib_tgcalls

View file

@ -146,6 +146,16 @@ Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath***
msbuild opus.sln /property:Configuration=Debug /property:Platform="Win32"
msbuild opus.sln /property:Configuration=Release /property:Platform="Win32"
git clone https://github.com/desktop-app/rnnoise.git
cd rnnoise
git checkout tdesktop
mkdir out
cd out
cmake -A Win32 ..
cmake --build . --config Debug
cmake --build . --config Release
cd ..
cd ..\..\..\..
SET PATH_BACKUP_=%PATH%
SET PATH=%cd%\ThirdParty\msys64\usr\bin;%PATH%