From a41b7b62ace869187aa40b0235cd78613543b607 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 15 Apr 2021 17:55:13 +0400 Subject: [PATCH] Build and link rnnoise on Windows. --- Telegram/ThirdParty/tgcalls | 2 +- Telegram/cmake/lib_tgcalls.cmake | 1 + docs/building-msvc.md | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 4a9de89c61..cdd2803ad4 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 4a9de89c61882f00e0563d44516284a89874144b +Subproject commit cdd2803ad40cbba455f64ee93bc434698afc2e06 diff --git a/Telegram/cmake/lib_tgcalls.cmake b/Telegram/cmake/lib_tgcalls.cmake index 1bda423a43..f417f963da 100644 --- a/Telegram/cmake/lib_tgcalls.cmake +++ b/Telegram/cmake/lib_tgcalls.cmake @@ -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 diff --git a/docs/building-msvc.md b/docs/building-msvc.md index 8aaa69a475..e1739f3662 100644 --- a/docs/building-msvc.md +++ b/docs/building-msvc.md @@ -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%