From 492dc2568c7150298789a1da3b58a33f2b14defa Mon Sep 17 00:00:00 2001
From: Ilya Fedin <fedin-ilja2010@ya.ru>
Date: Sat, 9 May 2020 22:07:18 +0400
Subject: [PATCH] Add DESKTOP_APP_USE_PACKAGED support for Windows

---
 Telegram/CMakeLists.txt                       |    4 +
 Telegram/Resources/winrc/Telegram.rc          |   13 +-
 Telegram/Resources/winrc/Updater.rc           |   13 +-
 Telegram/SourceFiles/_other/packer.cpp        |    2 +-
 Telegram/SourceFiles/_other/packer.h          |    2 +-
 Telegram/SourceFiles/core/update_checker.cpp  |   18 +-
 .../SourceFiles/platform/win/audio_win.cpp    |    1 +
 .../platform/win/file_utilities_win.cpp       |    8 +-
 .../platform/win/main_window_win.cpp          |   36 +-
 .../win/notifications_manager_win.cpp         |   14 +
 .../platform/win/notifications_manager_win.h  |    2 +
 .../SourceFiles/platform/win/specific_win.cpp |    6 +-
 .../win/windows_app_user_model_id.cpp         |    3 +-
 .../SourceFiles/platform/win/windows_dlls.h   |    4 +
 .../platform/win/windows_event_filter.cpp     |    2 +-
 Telegram/cmake/lib_tgvoip.cmake               | 1245 +++++++++--------
 16 files changed, 727 insertions(+), 646 deletions(-)

diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt
index 35405679bc..bc4b446f9a 100644
--- a/Telegram/CMakeLists.txt
+++ b/Telegram/CMakeLists.txt
@@ -1212,6 +1212,10 @@ if ((NOT DESKTOP_APP_DISABLE_AUTOUPDATE OR NOT LINUX) AND NOT build_macstore AND
 
     set_target_properties(Updater PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${output_folder})
 
+    if (WIN32 AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+        target_link_options(Updater PRIVATE -municode)
+    endif()
+
     if (LINUX)
         target_link_options(Updater PRIVATE -static-libstdc++)
     endif()
diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc
index 519ded4b84..15fcb98451 100644
--- a/Telegram/Resources/winrc/Telegram.rc
+++ b/Telegram/Resources/winrc/Telegram.rc
@@ -6,7 +6,18 @@
 //
 // Generated from the TEXTINCLUDE 2 resource.
 //
-#include "winres.h"
+#if defined(__MINGW64__) || defined(__MINGW32__)
+	// MinGW-w64, MinGW
+	#if defined(__has_include) && __has_include(<winres.h>)
+		#include <winres.h>
+	#else
+		#include <afxres.h>
+		#include <winresrc.h>
+	#endif
+#else
+	// MSVC, Windows SDK
+	#include <winres.h>
+#endif
 
 /////////////////////////////////////////////////////////////////////////////
 #undef APSTUDIO_READONLY_SYMBOLS
diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc
index 9e1f6fbd6b..d9a674b2b6 100644
--- a/Telegram/Resources/winrc/Updater.rc
+++ b/Telegram/Resources/winrc/Updater.rc
@@ -6,7 +6,18 @@
 //
 // Generated from the TEXTINCLUDE 2 resource.
 //
-#include "winres.h"
+#if defined(__MINGW64__) || defined(__MINGW32__)
+	// MinGW-w64, MinGW
+	#if defined(__has_include) && __has_include(<winres.h>)
+		#include <winres.h>
+	#else
+		#include <afxres.h>
+		#include <winresrc.h>
+	#endif
+#else
+	// MSVC, Windows SDK
+	#include <winres.h>
+#endif
 
 /////////////////////////////////////////////////////////////////////////////
 #undef APSTUDIO_READONLY_SYMBOLS
diff --git a/Telegram/SourceFiles/_other/packer.cpp b/Telegram/SourceFiles/_other/packer.cpp
index 4b00bab841..40e672f7c0 100644
--- a/Telegram/SourceFiles/_other/packer.cpp
+++ b/Telegram/SourceFiles/_other/packer.cpp
@@ -268,7 +268,7 @@ int main(int argc, char *argv[])
 	cout << "Compression start, size: " << resultSize << "\n";
 
 	QByteArray compressed, resultCheck;
-#ifdef Q_OS_WIN // use Lzma SDK for win
+#if defined Q_OS_WIN && !defined DESKTOP_APP_USE_PACKAGED // use Lzma SDK for win
 	const int32 hSigLen = 128, hShaLen = 20, hPropsLen = LZMA_PROPS_SIZE, hOriginalSizeLen = sizeof(int32), hSize = hSigLen + hShaLen + hPropsLen + hOriginalSizeLen; // header
 
 	compressed.resize(hSize + resultSize + 1024 * 1024); // rsa signature + sha1 + lzma props + max compressed size
diff --git a/Telegram/SourceFiles/_other/packer.h b/Telegram/SourceFiles/_other/packer.h
index f74627f9e5..d099ef0e35 100644
--- a/Telegram/SourceFiles/_other/packer.h
+++ b/Telegram/SourceFiles/_other/packer.h
@@ -27,7 +27,7 @@ extern "C" {
 #include <openssl/evp.h>
 } // extern "C"
 
-#ifdef Q_OS_WIN // use Lzma SDK for win
+#if defined Q_OS_WIN && !defined DESKTOP_APP_USE_PACKAGED // use Lzma SDK for win
 #include <LzmaLib.h>
 #else
 #include <lzma.h>
diff --git a/Telegram/SourceFiles/core/update_checker.cpp b/Telegram/SourceFiles/core/update_checker.cpp
index 160571ea74..588bf05731 100644
--- a/Telegram/SourceFiles/core/update_checker.cpp
+++ b/Telegram/SourceFiles/core/update_checker.cpp
@@ -33,11 +33,11 @@ extern "C" {
 #include <openssl/err.h>
 } // extern "C"
 
-#ifdef Q_OS_WIN // use Lzma SDK for win
+#if defined Q_OS_WIN && !defined DESKTOP_APP_USE_PACKAGED // use Lzma SDK for win
 #include <LzmaLib.h>
-#else // Q_OS_WIN
+#else // Q_OS_WIN && !DESKTOP_APP_USE_PACKAGED
 #include <lzma.h>
-#endif // else of Q_OS_WIN
+#endif // else of Q_OS_WIN && !DESKTOP_APP_USE_PACKAGED
 
 namespace Core {
 namespace {
@@ -252,11 +252,11 @@ bool UnpackUpdate(const QString &filepath) {
 		return false;
 	}
 
-#ifdef Q_OS_WIN // use Lzma SDK for win
+#if defined Q_OS_WIN && !defined DESKTOP_APP_USE_PACKAGED // use Lzma SDK for win
 	const int32 hSigLen = 128, hShaLen = 20, hPropsLen = LZMA_PROPS_SIZE, hOriginalSizeLen = sizeof(int32), hSize = hSigLen + hShaLen + hPropsLen + hOriginalSizeLen; // header
-#else // Q_OS_WIN
+#else // Q_OS_WIN && !DESKTOP_APP_USE_PACKAGED
 	const int32 hSigLen = 128, hShaLen = 20, hPropsLen = 0, hOriginalSizeLen = sizeof(int32), hSize = hSigLen + hShaLen + hOriginalSizeLen; // header
-#endif // Q_OS_WIN
+#endif // Q_OS_WIN && !DESKTOP_APP_USE_PACKAGED
 
 	QByteArray compressed = input.readAll();
 	int32 compressedLen = compressed.size() - hSize;
@@ -311,14 +311,14 @@ bool UnpackUpdate(const QString &filepath) {
 	uncompressed.resize(uncompressedLen);
 
 	size_t resultLen = uncompressed.size();
-#ifdef Q_OS_WIN // use Lzma SDK for win
+#if defined Q_OS_WIN && !defined DESKTOP_APP_USE_PACKAGED // use Lzma SDK for win
 	SizeT srcLen = compressedLen;
 	int uncompressRes = LzmaUncompress((uchar*)uncompressed.data(), &resultLen, (const uchar*)(compressed.constData() + hSize), &srcLen, (const uchar*)(compressed.constData() + hSigLen + hShaLen), LZMA_PROPS_SIZE);
 	if (uncompressRes != SZ_OK) {
 		LOG(("Update Error: could not uncompress lzma, code: %1").arg(uncompressRes));
 		return false;
 	}
-#else // Q_OS_WIN
+#else // Q_OS_WIN && !DESKTOP_APP_USE_PACKAGED
 	lzma_stream stream = LZMA_STREAM_INIT;
 
 	lzma_ret ret = lzma_stream_decoder(&stream, UINT64_MAX, LZMA_CONCATENATED);
@@ -361,7 +361,7 @@ bool UnpackUpdate(const QString &filepath) {
 		LOG(("Error in decompression: %1 (error code %2)").arg(msg).arg(res));
 		return false;
 	}
-#endif // Q_OS_WIN
+#endif // Q_OS_WIN && !DESKTOP_APP_USE_PACKAGED
 
 	tempDir.mkdir(tempDir.absolutePath());
 
diff --git a/Telegram/SourceFiles/platform/win/audio_win.cpp b/Telegram/SourceFiles/platform/win/audio_win.cpp
index db62394a3e..152abb02e1 100644
--- a/Telegram/SourceFiles/platform/win/audio_win.cpp
+++ b/Telegram/SourceFiles/platform/win/audio_win.cpp
@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 #include "platform/win/windows_dlls.h"
 #include "media/audio/media_audio.h"
 
+#include <initguid.h>
 #include <mmdeviceapi.h>
 #include <audioclient.h>
 
diff --git a/Telegram/SourceFiles/platform/win/file_utilities_win.cpp b/Telegram/SourceFiles/platform/win/file_utilities_win.cpp
index d8ebc80cea..25113c27f4 100644
--- a/Telegram/SourceFiles/platform/win/file_utilities_win.cpp
+++ b/Telegram/SourceFiles/platform/win/file_utilities_win.cpp
@@ -117,7 +117,13 @@ void UnsafeOpenEmailLink(const QString &email) {
 		auto wstringUrl = url.toString(QUrl::FullyEncoded).toStdWString();
 		if (Dlls::SHOpenWithDialog) {
 			OPENASINFO info;
-			info.oaifInFlags = OAIF_ALLOW_REGISTRATION | OAIF_REGISTER_EXT | OAIF_EXEC | OAIF_FILE_IS_URI | OAIF_URL_PROTOCOL;
+			info.oaifInFlags = OAIF_ALLOW_REGISTRATION
+				| OAIF_REGISTER_EXT
+				| OAIF_EXEC
+#if WINVER >= 0x0602
+				| OAIF_FILE_IS_URI
+#endif // WINVER >= 0x602
+				| OAIF_URL_PROTOCOL;
 			info.pcszClass = NULL;
 			info.pcszFile = wstringUrl.c_str();
 			Dlls::SHOpenWithDialog(0, &info);
diff --git a/Telegram/SourceFiles/platform/win/main_window_win.cpp b/Telegram/SourceFiles/platform/win/main_window_win.cpp
index 9bc57ca93d..522a4ba92c 100644
--- a/Telegram/SourceFiles/platform/win/main_window_win.cpp
+++ b/Telegram/SourceFiles/platform/win/main_window_win.cpp
@@ -35,7 +35,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 
 #include <roapi.h>
 #include <wrl/client.h>
-#include <windows.ui.notifications.h>
 
 #include <Windowsx.h>
 #include <VersionHelpers.h>
@@ -46,10 +45,28 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 #undef min
 #undef max
 
+// WM_POINTER support from Windows 8 onwards (WINVER >= 0x0602)
+#ifndef WM_POINTERUPDATE
+#  define WM_NCPOINTERUPDATE 0x0241
+#  define WM_NCPOINTERDOWN   0x0242
+#  define WM_NCPOINTERUP     0x0243
+#  define WM_POINTERUPDATE   0x0245
+#  define WM_POINTERDOWN     0x0246
+#  define WM_POINTERUP       0x0247
+#  define WM_POINTERENTER    0x0249
+#  define WM_POINTERLEAVE    0x024A
+#  define WM_POINTERACTIVATE 0x024B
+#  define WM_POINTERCAPTURECHANGED 0x024C
+#  define WM_POINTERWHEEL    0x024E
+#  define WM_POINTERHWHEEL   0x024F
+#endif // WM_POINTERUPDATE
+
 HICON qt_pixmapToWinHICON(const QPixmap &);
 
 using namespace Microsoft::WRL;
 
+Q_DECLARE_METATYPE(QMargins);
+
 namespace Platform {
 namespace {
 
@@ -225,7 +242,7 @@ public:
 				destroy();
 				return false;
 			}
-			SetWindowLong(hwnds[i], GWL_HWNDPARENT, (LONG)hwnd);
+			SetWindowLongPtr(hwnds[i], GWLP_HWNDPARENT, (LONG)hwnd);
 
 			dcs[i] = CreateCompatibleDC(screenDC);
 			if (!dcs[i]) {
@@ -711,18 +728,18 @@ void MainWindow::workmodeUpdated(DBIWorkMode mode) {
 	switch (mode) {
 	case dbiwmWindowAndTray: {
 		psSetupTrayIcon();
-		HWND psOwner = (HWND)GetWindowLong(ps_hWnd, GWL_HWNDPARENT);
+		HWND psOwner = (HWND)GetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT);
 		if (psOwner) {
-			SetWindowLong(ps_hWnd, GWL_HWNDPARENT, 0);
+			SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, 0);
 			psRefreshTaskbarIcon();
 		}
 	} break;
 
 	case dbiwmTrayOnly: {
 		psSetupTrayIcon();
-		HWND psOwner = (HWND)GetWindowLong(ps_hWnd, GWL_HWNDPARENT);
+		HWND psOwner = (HWND)GetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT);
 		if (!psOwner) {
-			SetWindowLong(ps_hWnd, GWL_HWNDPARENT, (LONG)ps_tbHider_hWnd);
+			SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, (LONG)ps_tbHider_hWnd);
 		}
 	} break;
 
@@ -733,9 +750,9 @@ void MainWindow::workmodeUpdated(DBIWorkMode mode) {
 		}
 		trayIcon = 0;
 
-		HWND psOwner = (HWND)GetWindowLong(ps_hWnd, GWL_HWNDPARENT);
+		HWND psOwner = (HWND)GetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT);
 		if (psOwner) {
-			SetWindowLong(ps_hWnd, GWL_HWNDPARENT, 0);
+			SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, 0);
 			psRefreshTaskbarIcon();
 		}
 	} break;
@@ -873,7 +890,6 @@ void MainWindow::updateSystemMenu(Qt::WindowState state) {
 	}
 }
 
-Q_DECLARE_METATYPE(QMargins);
 void MainWindow::psUpdateMargins() {
 	if (!ps_hWnd || _inUpdateMargins) return;
 
@@ -884,7 +900,7 @@ void MainWindow::psUpdateMargins() {
 	GetClientRect(ps_hWnd, &r);
 	a = r;
 
-	LONG style = GetWindowLong(ps_hWnd, GWL_STYLE), styleEx = GetWindowLong(ps_hWnd, GWL_EXSTYLE);
+	LONG style = GetWindowLongPtr(ps_hWnd, GWL_STYLE), styleEx = GetWindowLongPtr(ps_hWnd, GWL_EXSTYLE);
 	AdjustWindowRectEx(&a, style, false, styleEx);
 	QMargins margins = QMargins(a.left - r.left, a.top - r.top, r.right - a.right, r.bottom - a.bottom);
 	if (style & WS_MAXIMIZE) {
diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp
index 506f4b6fcb..457f2e02c1 100644
--- a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp
+++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp
@@ -20,6 +20,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 
 #include <roapi.h>
 #include <wrl/client.h>
+
+#ifndef __MINGW32__
 #include "platform/win/wrapper_wrl_implements_h.h"
 #include <windows.ui.notifications.h>
 
@@ -32,9 +34,12 @@ using namespace Microsoft::WRL;
 using namespace ABI::Windows::UI::Notifications;
 using namespace ABI::Windows::Data::Xml::Dom;
 using namespace Windows::Foundation;
+#endif // !__MINGW32__
 
 namespace Platform {
 namespace Notifications {
+
+#ifndef __MINGW32__
 namespace {
 
 class StringReferenceWrapper {
@@ -302,25 +307,33 @@ void Check() {
 }
 
 } // namespace
+#endif // !__MINGW32__
 
 bool Supported() {
+#ifndef __MINGW32__
 	if (!Checked) {
 		Checked = true;
 		Check();
 	}
 	return InitSucceeded;
+#endif // !__MINGW32__
+
+	return false;
 }
 
 std::unique_ptr<Window::Notifications::Manager> Create(Window::Notifications::System *system) {
+#ifndef __MINGW32__
 	if (Global::NativeNotifications() && Supported()) {
 		auto result = std::make_unique<Manager>(system);
 		if (result->init()) {
 			return std::move(result);
 		}
 	}
+#endif // !__MINGW32__
 	return nullptr;
 }
 
+#ifndef __MINGW32__
 class Manager::Private {
 public:
 	using Type = Window::Notifications::CachedUserpics::Type;
@@ -597,6 +610,7 @@ void Manager::onBeforeNotificationActivated(PeerId peerId, MsgId msgId) {
 void Manager::onAfterNotificationActivated(PeerId peerId, MsgId msgId) {
 	_private->afterNotificationActivated(peerId, msgId);
 }
+#endif // !__MINGW32__
 
 namespace {
 
diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.h b/Telegram/SourceFiles/platform/win/notifications_manager_win.h
index 8ac5adb837..4a8a2c5f62 100644
--- a/Telegram/SourceFiles/platform/win/notifications_manager_win.h
+++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.h
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 namespace Platform {
 namespace Notifications {
 
+#ifndef __MINGW32__
 class Manager : public Window::Notifications::NativeManager {
 public:
 	Manager(Window::Notifications::System *system);
@@ -41,6 +42,7 @@ private:
 	const std::unique_ptr<Private> _private;
 
 };
+#endif // !__MINGW32__
 
 } // namespace Notifications
 } // namespace Platform
diff --git a/Telegram/SourceFiles/platform/win/specific_win.cpp b/Telegram/SourceFiles/platform/win/specific_win.cpp
index 2dd31eaf1c..8300625aef 100644
--- a/Telegram/SourceFiles/platform/win/specific_win.cpp
+++ b/Telegram/SourceFiles/platform/win/specific_win.cpp
@@ -29,7 +29,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 
 #include <roapi.h>
 #include <wrl/client.h>
-#include <windows.ui.notifications.h>
 
 #include <openssl/conf.h>
 #include <openssl/engine.h>
@@ -64,9 +63,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 #endif
 
 using namespace Microsoft::WRL;
-using namespace ABI::Windows::UI::Notifications;
-using namespace ABI::Windows::Data::Xml::Dom;
-using namespace Windows::Foundation;
 using namespace Platform;
 
 namespace {
@@ -434,7 +430,7 @@ namespace {
 		WCHAR defaultStr[bufSize] = { 0 };
 		if (RegQueryValueEx(rkey, value, 0, &defaultType, (BYTE*)defaultStr, &defaultSize) != ERROR_SUCCESS || defaultType != REG_SZ || defaultSize != (v.size() + 1) * 2 || QString::fromStdWString(defaultStr) != v) {
 			WCHAR tmp[bufSize] = { 0 };
-			if (!v.isEmpty()) wsprintf(tmp, v.replace(QChar('%'), qsl("%%")).toStdWString().c_str());
+			if (!v.isEmpty()) StringCbPrintf(tmp, bufSize, v.replace(QChar('%'), qsl("%%")).toStdWString().c_str());
 			LSTATUS status = RegSetValueEx(rkey, value, 0, REG_SZ, (BYTE*)tmp, (wcslen(tmp) + 1) * sizeof(WCHAR));
 			if (status != ERROR_SUCCESS) {
 				QString msg = qsl("App Error: could not set %1, error %2").arg(value ? ('\'' + QString::fromStdWString(value) + '\'') : qsl("(Default)")).arg("%1: %2");
diff --git a/Telegram/SourceFiles/platform/win/windows_app_user_model_id.cpp b/Telegram/SourceFiles/platform/win/windows_app_user_model_id.cpp
index c05c259d8e..9e4c7f6cf8 100644
--- a/Telegram/SourceFiles/platform/win/windows_app_user_model_id.cpp
+++ b/Telegram/SourceFiles/platform/win/windows_app_user_model_id.cpp
@@ -13,7 +13,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 
 #include <roapi.h>
 #include <wrl/client.h>
-#include <windows.ui.notifications.h>
 
 using namespace Microsoft::WRL;
 
@@ -287,6 +286,7 @@ bool validateShortcut() {
 	PropVariantClear(&appIdPropVar);
 	if (!SUCCEEDED(hr)) return false;
 
+#if WINVER >= 0x602
 	PROPVARIANT startPinPropVar;
 	hr = InitPropVariantFromUInt32(APPUSERMODEL_STARTPINOPTION_NOPINONINSTALL, &startPinPropVar);
 	if (!SUCCEEDED(hr)) return false;
@@ -294,6 +294,7 @@ bool validateShortcut() {
 	hr = propertyStore->SetValue(pkey_AppUserModel_StartPinOption, startPinPropVar);
 	PropVariantClear(&startPinPropVar);
 	if (!SUCCEEDED(hr)) return false;
+#endif // WINVER >= 0x602
 
 	hr = propertyStore->Commit();
 	if (!SUCCEEDED(hr)) return false;
diff --git a/Telegram/SourceFiles/platform/win/windows_dlls.h b/Telegram/SourceFiles/platform/win/windows_dlls.h
index 341da5073f..8844d87ef5 100644
--- a/Telegram/SourceFiles/platform/win/windows_dlls.h
+++ b/Telegram/SourceFiles/platform/win/windows_dlls.h
@@ -15,6 +15,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 #include <RestartManager.h>
 #include <psapi.h>
 
+#ifdef __MINGW32__
+#define __in
+#endif
+
 namespace Platform {
 namespace Dlls {
 
diff --git a/Telegram/SourceFiles/platform/win/windows_event_filter.cpp b/Telegram/SourceFiles/platform/win/windows_event_filter.cpp
index b7766049bd..511a7e57aa 100644
--- a/Telegram/SourceFiles/platform/win/windows_event_filter.cpp
+++ b/Telegram/SourceFiles/platform/win/windows_event_filter.cpp
@@ -191,7 +191,7 @@ bool EventFilter::mainWindowEvent(
 	} return false;
 
 	case WM_SHOWWINDOW: {
-		LONG style = GetWindowLong(hWnd, GWL_STYLE);
+		LONG style = GetWindowLongPtr(hWnd, GWL_STYLE);
 		auto changes = ShadowsChange::Resized | ((wParam && !(style & (WS_MAXIMIZE | WS_MINIMIZE))) ? ShadowsChange::Shown : ShadowsChange::Hidden);
 		_window->shadowsUpdate(changes);
 	} return false;
diff --git a/Telegram/cmake/lib_tgvoip.cmake b/Telegram/cmake/lib_tgvoip.cmake
index 3d13596fc3..9ec1048cf9 100644
--- a/Telegram/cmake/lib_tgvoip.cmake
+++ b/Telegram/cmake/lib_tgvoip.cmake
@@ -90,6 +90,7 @@ else()
         os/windows/AudioOutputWASAPI.h
         os/windows/AudioInputWASAPI.cpp
         os/windows/AudioInputWASAPI.h
+        os/windows/MinGWSupport.h
         os/windows/WindowsSpecific.cpp
         os/windows/WindowsSpecific.h
 
@@ -122,613 +123,619 @@ else()
         # POSIX
         os/posix/NetworkSocketPosix.cpp
         os/posix/NetworkSocketPosix.h
-
-        # WebRTC APM
-        webrtc_dsp/system_wrappers/include/field_trial.h
-        webrtc_dsp/system_wrappers/include/cpu_features_wrapper.h
-        webrtc_dsp/system_wrappers/include/asm_defines.h
-        webrtc_dsp/system_wrappers/include/metrics.h
-        webrtc_dsp/system_wrappers/include/compile_assert_c.h
-        webrtc_dsp/system_wrappers/source/field_trial.cc
-        webrtc_dsp/system_wrappers/source/metrics.cc
-        webrtc_dsp/system_wrappers/source/cpu_features.cc
-        webrtc_dsp/typedefs.h
-        webrtc_dsp/absl/strings/internal/memutil.h
-        webrtc_dsp/absl/strings/internal/memutil.cc
-        webrtc_dsp/absl/strings/string_view.cc
-        webrtc_dsp/absl/strings/ascii.h
-        webrtc_dsp/absl/strings/ascii.cc
-        webrtc_dsp/absl/strings/string_view.h
-        webrtc_dsp/absl/types/optional.h
-        webrtc_dsp/absl/types/bad_optional_access.h
-        webrtc_dsp/absl/types/bad_optional_access.cc
-        webrtc_dsp/absl/types/optional.cc
-        webrtc_dsp/absl/memory/memory.h
-        webrtc_dsp/absl/meta/type_traits.h
-        webrtc_dsp/absl/algorithm/algorithm.h
-        webrtc_dsp/absl/container/inlined_vector.h
-        webrtc_dsp/absl/base/policy_checks.h
-        webrtc_dsp/absl/base/port.h
-        webrtc_dsp/absl/base/config.h
-        webrtc_dsp/absl/base/internal/raw_logging.cc
-        webrtc_dsp/absl/base/internal/throw_delegate.cc
-        webrtc_dsp/absl/base/internal/invoke.h
-        webrtc_dsp/absl/base/internal/inline_variable.h
-        webrtc_dsp/absl/base/internal/atomic_hook.h
-        webrtc_dsp/absl/base/internal/identity.h
-        webrtc_dsp/absl/base/internal/raw_logging.h
-        webrtc_dsp/absl/base/internal/throw_delegate.h
-        webrtc_dsp/absl/base/attributes.h
-        webrtc_dsp/absl/base/macros.h
-        webrtc_dsp/absl/base/optimization.h
-        webrtc_dsp/absl/base/log_severity.h
-        webrtc_dsp/absl/utility/utility.h
-        webrtc_dsp/rtc_base/string_to_number.h
-        webrtc_dsp/rtc_base/constructormagic.h
-        webrtc_dsp/rtc_base/race_checker.cc
-        webrtc_dsp/rtc_base/strings/string_builder.h
-        webrtc_dsp/rtc_base/strings/string_builder.cc
-        webrtc_dsp/rtc_base/event_tracer.h
-        webrtc_dsp/rtc_base/stringencode.h
-        webrtc_dsp/rtc_base/memory/aligned_malloc.cc
-        webrtc_dsp/rtc_base/memory/aligned_malloc.h
-        webrtc_dsp/rtc_base/timeutils.cc
-        webrtc_dsp/rtc_base/event.h
-        webrtc_dsp/rtc_base/ignore_wundef.h
-        webrtc_dsp/rtc_base/stringutils.h
-        webrtc_dsp/rtc_base/arraysize.h
-        webrtc_dsp/rtc_base/platform_file.cc
-        webrtc_dsp/rtc_base/swap_queue.h
-        webrtc_dsp/rtc_base/string_to_number.cc
-        webrtc_dsp/rtc_base/trace_event.h
-        webrtc_dsp/rtc_base/checks.h
-        webrtc_dsp/rtc_base/deprecation.h
-        webrtc_dsp/rtc_base/thread_checker_impl.cc
-        webrtc_dsp/rtc_base/sanitizer.h
-        webrtc_dsp/rtc_base/scoped_ref_ptr.h
-        webrtc_dsp/rtc_base/logging.h
-        webrtc_dsp/rtc_base/logging_mac.h
-        webrtc_dsp/rtc_base/logging_mac.mm
-        webrtc_dsp/rtc_base/timeutils.h
-        webrtc_dsp/rtc_base/atomicops.h
-        webrtc_dsp/rtc_base/stringencode.cc
-        webrtc_dsp/rtc_base/stringutils.cc
-        webrtc_dsp/rtc_base/checks.cc
-        webrtc_dsp/rtc_base/numerics/safe_minmax.h
-        webrtc_dsp/rtc_base/numerics/safe_conversions.h
-        webrtc_dsp/rtc_base/numerics/safe_conversions_impl.h
-        webrtc_dsp/rtc_base/numerics/safe_compare.h
-        webrtc_dsp/rtc_base/system/unused.h
-        webrtc_dsp/rtc_base/system/inline.h
-        webrtc_dsp/rtc_base/system/ignore_warnings.h
-        webrtc_dsp/rtc_base/system/asm_defines.h
-        webrtc_dsp/rtc_base/system/rtc_export.h
-        webrtc_dsp/rtc_base/system/arch.h
-        webrtc_dsp/rtc_base/platform_thread.cc
-        webrtc_dsp/rtc_base/platform_thread.h
-        webrtc_dsp/rtc_base/platform_thread_types.h
-        webrtc_dsp/rtc_base/protobuf_utils.h
-        webrtc_dsp/rtc_base/thread_annotations.h
-        webrtc_dsp/rtc_base/gtest_prod_util.h
-        webrtc_dsp/rtc_base/function_view.h
-        webrtc_dsp/rtc_base/criticalsection.h
-        webrtc_dsp/rtc_base/criticalsection.cc
-        webrtc_dsp/rtc_base/platform_thread_types.cc
-        webrtc_dsp/rtc_base/refcount.h
-        webrtc_dsp/rtc_base/event.cc
-        webrtc_dsp/rtc_base/thread_checker_impl.h
-        webrtc_dsp/rtc_base/event_tracer.cc
-        webrtc_dsp/rtc_base/compile_assert_c.h
-        webrtc_dsp/rtc_base/logging_webrtc.cc
-        webrtc_dsp/rtc_base/type_traits.h
-        webrtc_dsp/rtc_base/platform_file.h
-        webrtc_dsp/rtc_base/refcounter.h
-        webrtc_dsp/rtc_base/logging_mac.h
-        webrtc_dsp/rtc_base/thread_checker.h
-        webrtc_dsp/rtc_base/race_checker.h
-        webrtc_dsp/rtc_base/refcountedobject.h
-        webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.cc
-        webrtc_dsp/third_party/rnnoise/src/rnn_activations.h
-        webrtc_dsp/third_party/rnnoise/src/kiss_fft.h
-        webrtc_dsp/third_party/rnnoise/src/kiss_fft.cc
-        webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.h
-        webrtc_dsp/api/audio/audio_frame.cc
-        webrtc_dsp/api/audio/echo_canceller3_config.h
-        webrtc_dsp/api/audio/echo_control.h
-        webrtc_dsp/api/audio/audio_frame.h
-        webrtc_dsp/api/audio/echo_canceller3_config.cc
-        webrtc_dsp/api/audio/echo_canceller3_factory.h
-        webrtc_dsp/api/audio/echo_canceller3_factory.cc
-        webrtc_dsp/api/array_view.h
-        webrtc_dsp/modules/third_party/fft/fft.h
-        webrtc_dsp/modules/third_party/fft/fft.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/bandwidth_info.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/include/isac.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_logist.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filterbanks.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/settings.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/transform.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lattice.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/intialize.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_float_type.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/codec.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/structs.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode_bwe.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac.c
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.h
-        webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.h
-        webrtc_dsp/modules/audio_processing/rms_level.cc
-        webrtc_dsp/modules/audio_processing/echo_detector/moving_max.h
-        webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.h
-        webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.h
-        webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.cc
-        webrtc_dsp/modules/audio_processing/echo_detector/moving_max.cc
-        webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.cc
-        webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.cc
-        webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.h
-        webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.h
-        webrtc_dsp/modules/audio_processing/splitting_filter.cc
-        webrtc_dsp/modules/audio_processing/gain_control_impl.cc
-        webrtc_dsp/modules/audio_processing/rms_level.h
-        webrtc_dsp/modules/audio_processing/ns/ns_core.h
-        webrtc_dsp/modules/audio_processing/ns/nsx_core.c
-        webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.c
-        webrtc_dsp/modules/audio_processing/ns/nsx_core_c.c
-        webrtc_dsp/modules/audio_processing/ns/defines.h
-        webrtc_dsp/modules/audio_processing/ns/noise_suppression.h
-        webrtc_dsp/modules/audio_processing/ns/ns_core.c
-        webrtc_dsp/modules/audio_processing/ns/nsx_core.h
-        webrtc_dsp/modules/audio_processing/ns/windows_private.h
-        webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.h
-        webrtc_dsp/modules/audio_processing/ns/noise_suppression.c
-        webrtc_dsp/modules/audio_processing/ns/nsx_defines.h
-        webrtc_dsp/modules/audio_processing/residual_echo_detector.h
-        webrtc_dsp/modules/audio_processing/audio_processing_impl.h
-        webrtc_dsp/modules/audio_processing/audio_buffer.cc
-        webrtc_dsp/modules/audio_processing/typing_detection.cc
-        webrtc_dsp/modules/audio_processing/render_queue_item_verifier.h
-        webrtc_dsp/modules/audio_processing/include/audio_generator.h
-        webrtc_dsp/modules/audio_processing/include/config.h
-        webrtc_dsp/modules/audio_processing/include/audio_frame_view.h
-        webrtc_dsp/modules/audio_processing/include/mock_audio_processing.h
-        webrtc_dsp/modules/audio_processing/include/gain_control.h
-        webrtc_dsp/modules/audio_processing/include/audio_generator_factory.h
-        webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.cc
-        webrtc_dsp/modules/audio_processing/include/audio_generator_factory.cc
-        webrtc_dsp/modules/audio_processing/include/aec_dump.cc
-        webrtc_dsp/modules/audio_processing/include/aec_dump.h
-        webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.h
-        webrtc_dsp/modules/audio_processing/include/audio_processing.h
-        webrtc_dsp/modules/audio_processing/include/audio_processing.cc
-        webrtc_dsp/modules/audio_processing/include/config.cc
-        webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.h
-        webrtc_dsp/modules/audio_processing/agc2/biquad_filter.h
-        webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.cc
-        webrtc_dsp/modules/audio_processing/agc2/agc2_common.cc
-        webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.h
-        webrtc_dsp/modules/audio_processing/agc2/gain_applier.cc
-        webrtc_dsp/modules/audio_processing/agc2/signal_classifier.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.cc
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.cc
-        webrtc_dsp/modules/audio_processing/agc2/limiter.cc
-        webrtc_dsp/modules/audio_processing/agc2/saturation_protector.cc
-        webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/sequence_buffer.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/test_utils.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_info.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/ring_buffer.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/symmetric_matrix_buffer.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/common.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.h
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.cc
-        webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.cc
-        webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.cc
-        webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.cc
-        webrtc_dsp/modules/audio_processing/agc2/down_sampler.h
-        webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.cc
-        webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.cc
-        webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.cc
-        webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.cc
-        webrtc_dsp/modules/audio_processing/agc2/saturation_protector.h
-        webrtc_dsp/modules/audio_processing/agc2/vad_with_level.cc
-        webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.cc
-        webrtc_dsp/modules/audio_processing/agc2/agc2_common.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.h
-        webrtc_dsp/modules/audio_processing/agc2/vad_with_level.h
-        webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.h
-        webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.h
-        webrtc_dsp/modules/audio_processing/agc2/gain_applier.h
-        webrtc_dsp/modules/audio_processing/agc2/down_sampler.cc
-        webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.h
-        webrtc_dsp/modules/audio_processing/agc2/signal_classifier.cc
-        webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.cc
-        webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.cc
-        webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.h
-        webrtc_dsp/modules/audio_processing/agc2/biquad_filter.cc
-        webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.h
-        webrtc_dsp/modules/audio_processing/agc2/limiter.h
-        webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc
-        webrtc_dsp/modules/audio_processing/transient/moving_moments.cc
-        webrtc_dsp/modules/audio_processing/transient/transient_detector.h
-        webrtc_dsp/modules/audio_processing/transient/wpd_tree.cc
-        webrtc_dsp/modules/audio_processing/transient/transient_suppressor.h
-        webrtc_dsp/modules/audio_processing/transient/daubechies_8_wavelet_coeffs.h
-        webrtc_dsp/modules/audio_processing/transient/common.h
-        webrtc_dsp/modules/audio_processing/transient/wpd_node.h
-        webrtc_dsp/modules/audio_processing/transient/moving_moments.h
-        webrtc_dsp/modules/audio_processing/transient/wpd_tree.h
-        webrtc_dsp/modules/audio_processing/transient/wpd_node.cc
-        webrtc_dsp/modules/audio_processing/transient/transient_suppressor.cc
-        webrtc_dsp/modules/audio_processing/transient/transient_detector.cc
-        webrtc_dsp/modules/audio_processing/transient/dyadic_decimator.h
-        webrtc_dsp/modules/audio_processing/low_cut_filter.cc
-        webrtc_dsp/modules/audio_processing/noise_suppression_impl.h
-        webrtc_dsp/modules/audio_processing/level_estimator_impl.cc
-        webrtc_dsp/modules/audio_processing/three_band_filter_bank.cc
-        webrtc_dsp/modules/audio_processing/aec/echo_cancellation.cc
-        webrtc_dsp/modules/audio_processing/aec/aec_resampler.h
-        webrtc_dsp/modules/audio_processing/aec/aec_resampler.cc
-        webrtc_dsp/modules/audio_processing/aec/echo_cancellation.h
-        webrtc_dsp/modules/audio_processing/aec/aec_core.cc
-        webrtc_dsp/modules/audio_processing/aec/aec_core.h
-        webrtc_dsp/modules/audio_processing/aec/aec_core_optimized_methods.h
-        webrtc_dsp/modules/audio_processing/aec/aec_core_sse2.cc
-        webrtc_dsp/modules/audio_processing/aec/aec_common.h
-        webrtc_dsp/modules/audio_processing/voice_detection_impl.h
-        webrtc_dsp/modules/audio_processing/voice_detection_impl.cc
-        webrtc_dsp/modules/audio_processing/echo_cancellation_impl.cc
-        webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.cc
-        webrtc_dsp/modules/audio_processing/agc/agc.cc
-        webrtc_dsp/modules/audio_processing/agc/loudness_histogram.cc
-        webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.cc
-        webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.h
-        webrtc_dsp/modules/audio_processing/agc/legacy/gain_control.h
-        webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.h
-        webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.c
-        webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.c
-        webrtc_dsp/modules/audio_processing/agc/utility.cc
-        webrtc_dsp/modules/audio_processing/agc/mock_agc.h
-        webrtc_dsp/modules/audio_processing/agc/loudness_histogram.h
-        webrtc_dsp/modules/audio_processing/agc/gain_map_internal.h
-        webrtc_dsp/modules/audio_processing/agc/utility.h
-        webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.h
-        webrtc_dsp/modules/audio_processing/agc/agc.h
-        webrtc_dsp/modules/audio_processing/common.h
-        webrtc_dsp/modules/audio_processing/audio_processing_impl.cc
-        webrtc_dsp/modules/audio_processing/audio_buffer.h
-        webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.h
-        webrtc_dsp/modules/audio_processing/splitting_filter.h
-        webrtc_dsp/modules/audio_processing/low_cut_filter.h
-        webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.h
-        webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.cc
-        webrtc_dsp/modules/audio_processing/gain_controller2.cc
-        webrtc_dsp/modules/audio_processing/three_band_filter_bank.h
-        webrtc_dsp/modules/audio_processing/residual_echo_detector.cc
-        webrtc_dsp/modules/audio_processing/echo_cancellation_impl.h
-        webrtc_dsp/modules/audio_processing/noise_suppression_impl.cc
-        webrtc_dsp/modules/audio_processing/level_estimator_impl.h
-        webrtc_dsp/modules/audio_processing/gain_controller2.h
-        webrtc_dsp/modules/audio_processing/aecm/aecm_core.h
-        webrtc_dsp/modules/audio_processing/aecm/aecm_defines.h
-        webrtc_dsp/modules/audio_processing/aecm/aecm_core.cc
-        webrtc_dsp/modules/audio_processing/aecm/aecm_core_c.cc
-        webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.h
-        webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.cc
-        webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.h
-        webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.h
-        webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.cc
-        webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.cc
-        webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer2.cc
-        webrtc_dsp/modules/audio_processing/aec3/aec_state.h
-        webrtc_dsp/modules/audio_processing/aec3/suppression_filter.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.cc
-        webrtc_dsp/modules/audio_processing/aec3/frame_blocker.cc
-        webrtc_dsp/modules/audio_processing/aec3/subtractor.cc
-        webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.h
-        webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.h
-        webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.h
-        webrtc_dsp/modules/audio_processing/aec3/matched_filter.h
-        webrtc_dsp/modules/audio_processing/aec3/subtractor_output.h
-        webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.h
-        webrtc_dsp/modules/audio_processing/aec3/aec3_fft.cc
-        webrtc_dsp/modules/audio_processing/aec3/aec3_fft.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.h
-        webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/suppression_filter.cc
-        webrtc_dsp/modules/audio_processing/aec3/block_processor.cc
-        webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.h
-        webrtc_dsp/modules/audio_processing/aec3/subtractor.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.h
-        webrtc_dsp/modules/audio_processing/aec3/vector_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/erl_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/aec_state.cc
-        webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.cc
-        webrtc_dsp/modules/audio_processing/aec3/fft_data.h
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.cc
-        webrtc_dsp/modules/audio_processing/aec3/skew_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.h
-        webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/erl_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_remover.h
-        webrtc_dsp/modules/audio_processing/aec3/block_framer.cc
-        webrtc_dsp/modules/audio_processing/aec3/erle_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/reverb_model.cc
-        webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.cc
-        webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.h
-        webrtc_dsp/modules/audio_processing/aec3/render_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/subtractor_output.cc
-        webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.cc
-        webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.h
-        webrtc_dsp/modules/audio_processing/aec3/moving_average.h
-        webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.h
-        webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.cc
-        webrtc_dsp/modules/audio_processing/aec3/suppression_gain.cc
-        webrtc_dsp/modules/audio_processing/aec3/echo_audibility.cc
-        webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.h
-        webrtc_dsp/modules/audio_processing/aec3/suppression_gain.h
-        webrtc_dsp/modules/audio_processing/aec3/moving_average.cc
-        webrtc_dsp/modules/audio_processing/aec3/erle_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/aec3_common.cc
-        webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/block_processor.h
-        webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/matched_filter.cc
-        webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.h
-        webrtc_dsp/modules/audio_processing/aec3/skew_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_controller2.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_buffer.h
-        webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.cc
-        webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.cc
-        webrtc_dsp/modules/audio_processing/aec3/echo_remover.cc
-        webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.h
-        webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/vector_buffer.h
-        webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.h
-        webrtc_dsp/modules/audio_processing/aec3/echo_audibility.h
-        webrtc_dsp/modules/audio_processing/aec3/fft_buffer.h
-        webrtc_dsp/modules/audio_processing/aec3/block_processor2.cc
-        webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.cc
-        webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/aec3_common.h
-        webrtc_dsp/modules/audio_processing/aec3/fft_buffer.cc
-        webrtc_dsp/modules/audio_processing/aec3/vector_math.h
-        webrtc_dsp/modules/audio_processing/aec3/decimator.h
-        webrtc_dsp/modules/audio_processing/aec3/frame_blocker.h
-        webrtc_dsp/modules/audio_processing/aec3/block_framer.h
-        webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.h
-        webrtc_dsp/modules/audio_processing/aec3/delay_estimate.h
-        webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.cc
-        webrtc_dsp/modules/audio_processing/aec3/reverb_model.h
-        webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.h
-        webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.h
-        webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.cc
-        webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.cc
-        webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.h
-        webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.cc
-        webrtc_dsp/modules/audio_processing/aec3/decimator.cc
-        webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.h
-        webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.cc
-        webrtc_dsp/modules/audio_processing/gain_control_impl.h
-        webrtc_dsp/modules/audio_processing/typing_detection.h
-        webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.cc
-        webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.h
-        webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.cc
-        webrtc_dsp/modules/audio_processing/vad/standalone_vad.cc
-        webrtc_dsp/modules/audio_processing/vad/vad_audio_proc_internal.h
-        webrtc_dsp/modules/audio_processing/vad/pitch_internal.cc
-        webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.cc
-        webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.h
-        webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.h
-        webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.cc
-        webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.cc
-        webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.h
-        webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.cc
-        webrtc_dsp/modules/audio_processing/vad/gmm.h
-        webrtc_dsp/modules/audio_processing/vad/common.h
-        webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.h
-        webrtc_dsp/modules/audio_processing/vad/voice_gmm_tables.h
-        webrtc_dsp/modules/audio_processing/vad/noise_gmm_tables.h
-        webrtc_dsp/modules/audio_processing/vad/pitch_internal.h
-        webrtc_dsp/modules/audio_processing/vad/gmm.cc
-        webrtc_dsp/modules/audio_processing/vad/standalone_vad.h
-        webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.h
-        webrtc_dsp/modules/audio_processing/utility/delay_estimator_internal.h
-        webrtc_dsp/modules/audio_processing/utility/ooura_fft.cc
-        webrtc_dsp/modules/audio_processing/utility/ooura_fft.h
-        webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.cc
-        webrtc_dsp/modules/audio_processing/utility/ooura_fft_sse2.cc
-        webrtc_dsp/modules/audio_processing/utility/delay_estimator.cc
-        webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.h
-        webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.cc
-        webrtc_dsp/modules/audio_processing/utility/delay_estimator.h
-        webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_common.h
-        webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.h
-        webrtc_dsp/common_audio/mocks/mock_smoothing_filter.h
-        webrtc_dsp/common_audio/wav_file.h
-        webrtc_dsp/common_audio/window_generator.cc
-        webrtc_dsp/common_audio/channel_buffer.cc
-        webrtc_dsp/common_audio/fir_filter_factory.cc
-        webrtc_dsp/common_audio/sparse_fir_filter.h
-        webrtc_dsp/common_audio/fir_filter_sse.h
-        webrtc_dsp/common_audio/window_generator.h
-        webrtc_dsp/common_audio/ring_buffer.h
-        webrtc_dsp/common_audio/fir_filter.h
-        webrtc_dsp/common_audio/include/audio_util.h
-        webrtc_dsp/common_audio/wav_header.cc
-        webrtc_dsp/common_audio/real_fourier_ooura.cc
-        webrtc_dsp/common_audio/audio_util.cc
-        webrtc_dsp/common_audio/real_fourier_ooura.h
-        webrtc_dsp/common_audio/fir_filter_sse.cc
-        webrtc_dsp/common_audio/smoothing_filter.h
-        webrtc_dsp/common_audio/resampler/push_sinc_resampler.cc
-        webrtc_dsp/common_audio/resampler/sinc_resampler.h
-        webrtc_dsp/common_audio/resampler/resampler.cc
-        webrtc_dsp/common_audio/resampler/sinc_resampler_sse.cc
-        webrtc_dsp/common_audio/resampler/include/push_resampler.h
-        webrtc_dsp/common_audio/resampler/include/resampler.h
-        webrtc_dsp/common_audio/resampler/push_sinc_resampler.h
-        webrtc_dsp/common_audio/resampler/push_resampler.cc
-        webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.h
-        webrtc_dsp/common_audio/resampler/sinc_resampler.cc
-        webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.cc
-        webrtc_dsp/common_audio/fir_filter_factory.h
-        webrtc_dsp/common_audio/audio_converter.h
-        webrtc_dsp/common_audio/wav_file.cc
-        webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c
-        webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.h
-        webrtc_dsp/common_audio/third_party/fft4g/fft4g.c
-        webrtc_dsp/common_audio/third_party/fft4g/fft4g.h
-        webrtc_dsp/common_audio/audio_converter.cc
-        webrtc_dsp/common_audio/real_fourier.cc
-        webrtc_dsp/common_audio/channel_buffer.h
-        webrtc_dsp/common_audio/real_fourier.h
-        webrtc_dsp/common_audio/sparse_fir_filter.cc
-        webrtc_dsp/common_audio/smoothing_filter.cc
-        webrtc_dsp/common_audio/fir_filter_c.cc
-        webrtc_dsp/common_audio/ring_buffer.c
-        webrtc_dsp/common_audio/fir_filter_c.h
-        webrtc_dsp/common_audio/signal_processing/complex_fft_tables.h
-        webrtc_dsp/common_audio/signal_processing/complex_fft.c
-        webrtc_dsp/common_audio/signal_processing/filter_ma_fast_q12.c
-        webrtc_dsp/common_audio/signal_processing/levinson_durbin.c
-        webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.cc
-        webrtc_dsp/common_audio/signal_processing/auto_corr_to_refl_coef.c
-        webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.c
-        webrtc_dsp/common_audio/signal_processing/energy.c
-        webrtc_dsp/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c
-        webrtc_dsp/common_audio/signal_processing/downsample_fast.c
-        webrtc_dsp/common_audio/signal_processing/splitting_filter1.c
-        webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12.c
-        webrtc_dsp/common_audio/signal_processing/spl_init.c
-        webrtc_dsp/common_audio/signal_processing/lpc_to_refl_coef.c
-        webrtc_dsp/common_audio/signal_processing/cross_correlation.c
-        webrtc_dsp/common_audio/signal_processing/include/signal_processing_library.h
-        webrtc_dsp/common_audio/signal_processing/include/real_fft.h
-        webrtc_dsp/common_audio/signal_processing/include/spl_inl.h
-        webrtc_dsp/common_audio/signal_processing/division_operations.c
-        webrtc_dsp/common_audio/signal_processing/auto_correlation.c
-        webrtc_dsp/common_audio/signal_processing/get_scaling_square.c
-        webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.h
-        webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.h
-        webrtc_dsp/common_audio/signal_processing/resample.c
-        webrtc_dsp/common_audio/signal_processing/min_max_operations.c
-        webrtc_dsp/common_audio/signal_processing/refl_coef_to_lpc.c
-        webrtc_dsp/common_audio/signal_processing/filter_ar.c
-        webrtc_dsp/common_audio/signal_processing/vector_scaling_operations.c
-        webrtc_dsp/common_audio/signal_processing/resample_fractional.c
-        webrtc_dsp/common_audio/signal_processing/real_fft.c
-        webrtc_dsp/common_audio/signal_processing/ilbc_specific_functions.c
-        webrtc_dsp/common_audio/signal_processing/complex_bit_reverse.c
-        webrtc_dsp/common_audio/signal_processing/randomization_functions.c
-        webrtc_dsp/common_audio/signal_processing/copy_set_operations.c
-        webrtc_dsp/common_audio/signal_processing/resample_by_2.c
-        webrtc_dsp/common_audio/signal_processing/get_hanning_window.c
-        webrtc_dsp/common_audio/signal_processing/resample_48khz.c
-        webrtc_dsp/common_audio/signal_processing/spl_inl.c
-        webrtc_dsp/common_audio/signal_processing/spl_sqrt.c
-        webrtc_dsp/common_audio/wav_header.h
-        webrtc_dsp/common_audio/vad/vad_sp.c
-        webrtc_dsp/common_audio/vad/vad.cc
-        webrtc_dsp/common_audio/vad/webrtc_vad.c
-        webrtc_dsp/common_audio/vad/vad_core.h
-        webrtc_dsp/common_audio/vad/include/vad.h
-        webrtc_dsp/common_audio/vad/include/webrtc_vad.h
-        webrtc_dsp/common_audio/vad/vad_gmm.h
-        webrtc_dsp/common_audio/vad/vad_filterbank.c
-        webrtc_dsp/common_audio/vad/vad_core.c
-        webrtc_dsp/common_audio/vad/vad_sp.h
-        webrtc_dsp/common_audio/vad/vad_filterbank.h
-        webrtc_dsp/common_audio/vad/vad_gmm.c
-
-        # ARM/NEON sources
-        # TODO check if there's a good way to make these compile with ARM ports of TDesktop
-        # webrtc_dsp/modules/audio_processing/ns/nsx_core_neon.c
-        # webrtc_dsp/modules/audio_processing/aec/aec_core_neon.cc
-        # webrtc_dsp/modules/audio_processing/aecm/aecm_core_neon.cc
-        # webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_neon_sse2.h
-        # webrtc_dsp/modules/audio_processing/utility/ooura_fft_neon.cc
-        # webrtc_dsp/common_audio/fir_filter_neon.cc
-        # webrtc_dsp/common_audio/resampler/sinc_resampler_neon.cc
-        # webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_arm.S
-        # webrtc_dsp/common_audio/fir_filter_neon.h
-        # webrtc_dsp/common_audio/signal_processing/downsample_fast_neon.c
-        # webrtc_dsp/common_audio/signal_processing/complex_bit_reverse_arm.S
-        # webrtc_dsp/common_audio/signal_processing/include/spl_inl_armv7.h
-        # webrtc_dsp/common_audio/signal_processing/min_max_operations_neon.c
-        # webrtc_dsp/common_audio/signal_processing/cross_correlation_neon.c
-        # webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12_armv7.S
     )
 
+    if (NOT WIN32 OR CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+        # Doesn't build with mingw for now
+        nice_target_sources(lib_tgvoip ${tgvoip_loc}
+        PRIVATE
+            # WebRTC APM
+            webrtc_dsp/system_wrappers/include/field_trial.h
+            webrtc_dsp/system_wrappers/include/cpu_features_wrapper.h
+            webrtc_dsp/system_wrappers/include/asm_defines.h
+            webrtc_dsp/system_wrappers/include/metrics.h
+            webrtc_dsp/system_wrappers/include/compile_assert_c.h
+            webrtc_dsp/system_wrappers/source/field_trial.cc
+            webrtc_dsp/system_wrappers/source/metrics.cc
+            webrtc_dsp/system_wrappers/source/cpu_features.cc
+            webrtc_dsp/typedefs.h
+            webrtc_dsp/absl/strings/internal/memutil.h
+            webrtc_dsp/absl/strings/internal/memutil.cc
+            webrtc_dsp/absl/strings/string_view.cc
+            webrtc_dsp/absl/strings/ascii.h
+            webrtc_dsp/absl/strings/ascii.cc
+            webrtc_dsp/absl/strings/string_view.h
+            webrtc_dsp/absl/types/optional.h
+            webrtc_dsp/absl/types/bad_optional_access.h
+            webrtc_dsp/absl/types/bad_optional_access.cc
+            webrtc_dsp/absl/types/optional.cc
+            webrtc_dsp/absl/memory/memory.h
+            webrtc_dsp/absl/meta/type_traits.h
+            webrtc_dsp/absl/algorithm/algorithm.h
+            webrtc_dsp/absl/container/inlined_vector.h
+            webrtc_dsp/absl/base/policy_checks.h
+            webrtc_dsp/absl/base/port.h
+            webrtc_dsp/absl/base/config.h
+            webrtc_dsp/absl/base/internal/raw_logging.cc
+            webrtc_dsp/absl/base/internal/throw_delegate.cc
+            webrtc_dsp/absl/base/internal/invoke.h
+            webrtc_dsp/absl/base/internal/inline_variable.h
+            webrtc_dsp/absl/base/internal/atomic_hook.h
+            webrtc_dsp/absl/base/internal/identity.h
+            webrtc_dsp/absl/base/internal/raw_logging.h
+            webrtc_dsp/absl/base/internal/throw_delegate.h
+            webrtc_dsp/absl/base/attributes.h
+            webrtc_dsp/absl/base/macros.h
+            webrtc_dsp/absl/base/optimization.h
+            webrtc_dsp/absl/base/log_severity.h
+            webrtc_dsp/absl/utility/utility.h
+            webrtc_dsp/rtc_base/string_to_number.h
+            webrtc_dsp/rtc_base/constructormagic.h
+            webrtc_dsp/rtc_base/race_checker.cc
+            webrtc_dsp/rtc_base/strings/string_builder.h
+            webrtc_dsp/rtc_base/strings/string_builder.cc
+            webrtc_dsp/rtc_base/event_tracer.h
+            webrtc_dsp/rtc_base/stringencode.h
+            webrtc_dsp/rtc_base/memory/aligned_malloc.cc
+            webrtc_dsp/rtc_base/memory/aligned_malloc.h
+            webrtc_dsp/rtc_base/timeutils.cc
+            webrtc_dsp/rtc_base/event.h
+            webrtc_dsp/rtc_base/ignore_wundef.h
+            webrtc_dsp/rtc_base/stringutils.h
+            webrtc_dsp/rtc_base/arraysize.h
+            webrtc_dsp/rtc_base/platform_file.cc
+            webrtc_dsp/rtc_base/swap_queue.h
+            webrtc_dsp/rtc_base/string_to_number.cc
+            webrtc_dsp/rtc_base/trace_event.h
+            webrtc_dsp/rtc_base/checks.h
+            webrtc_dsp/rtc_base/deprecation.h
+            webrtc_dsp/rtc_base/thread_checker_impl.cc
+            webrtc_dsp/rtc_base/sanitizer.h
+            webrtc_dsp/rtc_base/scoped_ref_ptr.h
+            webrtc_dsp/rtc_base/logging.h
+            webrtc_dsp/rtc_base/logging_mac.h
+            webrtc_dsp/rtc_base/logging_mac.mm
+            webrtc_dsp/rtc_base/timeutils.h
+            webrtc_dsp/rtc_base/atomicops.h
+            webrtc_dsp/rtc_base/stringencode.cc
+            webrtc_dsp/rtc_base/stringutils.cc
+            webrtc_dsp/rtc_base/checks.cc
+            webrtc_dsp/rtc_base/numerics/safe_minmax.h
+            webrtc_dsp/rtc_base/numerics/safe_conversions.h
+            webrtc_dsp/rtc_base/numerics/safe_conversions_impl.h
+            webrtc_dsp/rtc_base/numerics/safe_compare.h
+            webrtc_dsp/rtc_base/system/unused.h
+            webrtc_dsp/rtc_base/system/inline.h
+            webrtc_dsp/rtc_base/system/ignore_warnings.h
+            webrtc_dsp/rtc_base/system/asm_defines.h
+            webrtc_dsp/rtc_base/system/rtc_export.h
+            webrtc_dsp/rtc_base/system/arch.h
+            webrtc_dsp/rtc_base/platform_thread.cc
+            webrtc_dsp/rtc_base/platform_thread.h
+            webrtc_dsp/rtc_base/platform_thread_types.h
+            webrtc_dsp/rtc_base/protobuf_utils.h
+            webrtc_dsp/rtc_base/thread_annotations.h
+            webrtc_dsp/rtc_base/gtest_prod_util.h
+            webrtc_dsp/rtc_base/function_view.h
+            webrtc_dsp/rtc_base/criticalsection.h
+            webrtc_dsp/rtc_base/criticalsection.cc
+            webrtc_dsp/rtc_base/platform_thread_types.cc
+            webrtc_dsp/rtc_base/refcount.h
+            webrtc_dsp/rtc_base/event.cc
+            webrtc_dsp/rtc_base/thread_checker_impl.h
+            webrtc_dsp/rtc_base/event_tracer.cc
+            webrtc_dsp/rtc_base/compile_assert_c.h
+            webrtc_dsp/rtc_base/logging_webrtc.cc
+            webrtc_dsp/rtc_base/type_traits.h
+            webrtc_dsp/rtc_base/platform_file.h
+            webrtc_dsp/rtc_base/refcounter.h
+            webrtc_dsp/rtc_base/logging_mac.h
+            webrtc_dsp/rtc_base/thread_checker.h
+            webrtc_dsp/rtc_base/race_checker.h
+            webrtc_dsp/rtc_base/refcountedobject.h
+            webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.cc
+            webrtc_dsp/third_party/rnnoise/src/rnn_activations.h
+            webrtc_dsp/third_party/rnnoise/src/kiss_fft.h
+            webrtc_dsp/third_party/rnnoise/src/kiss_fft.cc
+            webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.h
+            webrtc_dsp/api/audio/audio_frame.cc
+            webrtc_dsp/api/audio/echo_canceller3_config.h
+            webrtc_dsp/api/audio/echo_control.h
+            webrtc_dsp/api/audio/audio_frame.h
+            webrtc_dsp/api/audio/echo_canceller3_config.cc
+            webrtc_dsp/api/audio/echo_canceller3_factory.h
+            webrtc_dsp/api/audio/echo_canceller3_factory.cc
+            webrtc_dsp/api/array_view.h
+            webrtc_dsp/modules/third_party/fft/fft.h
+            webrtc_dsp/modules/third_party/fft/fft.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/bandwidth_info.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/include/isac.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_logist.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filterbanks.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/settings.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/transform.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lattice.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/intialize.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_float_type.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/codec.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/structs.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode_bwe.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac.c
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.h
+            webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.h
+            webrtc_dsp/modules/audio_processing/rms_level.cc
+            webrtc_dsp/modules/audio_processing/echo_detector/moving_max.h
+            webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.h
+            webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.h
+            webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.cc
+            webrtc_dsp/modules/audio_processing/echo_detector/moving_max.cc
+            webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.cc
+            webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.cc
+            webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.h
+            webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.h
+            webrtc_dsp/modules/audio_processing/splitting_filter.cc
+            webrtc_dsp/modules/audio_processing/gain_control_impl.cc
+            webrtc_dsp/modules/audio_processing/rms_level.h
+            webrtc_dsp/modules/audio_processing/ns/ns_core.h
+            webrtc_dsp/modules/audio_processing/ns/nsx_core.c
+            webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.c
+            webrtc_dsp/modules/audio_processing/ns/nsx_core_c.c
+            webrtc_dsp/modules/audio_processing/ns/defines.h
+            webrtc_dsp/modules/audio_processing/ns/noise_suppression.h
+            webrtc_dsp/modules/audio_processing/ns/ns_core.c
+            webrtc_dsp/modules/audio_processing/ns/nsx_core.h
+            webrtc_dsp/modules/audio_processing/ns/windows_private.h
+            webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.h
+            webrtc_dsp/modules/audio_processing/ns/noise_suppression.c
+            webrtc_dsp/modules/audio_processing/ns/nsx_defines.h
+            webrtc_dsp/modules/audio_processing/residual_echo_detector.h
+            webrtc_dsp/modules/audio_processing/audio_processing_impl.h
+            webrtc_dsp/modules/audio_processing/audio_buffer.cc
+            webrtc_dsp/modules/audio_processing/typing_detection.cc
+            webrtc_dsp/modules/audio_processing/render_queue_item_verifier.h
+            webrtc_dsp/modules/audio_processing/include/audio_generator.h
+            webrtc_dsp/modules/audio_processing/include/config.h
+            webrtc_dsp/modules/audio_processing/include/audio_frame_view.h
+            webrtc_dsp/modules/audio_processing/include/mock_audio_processing.h
+            webrtc_dsp/modules/audio_processing/include/gain_control.h
+            webrtc_dsp/modules/audio_processing/include/audio_generator_factory.h
+            webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.cc
+            webrtc_dsp/modules/audio_processing/include/audio_generator_factory.cc
+            webrtc_dsp/modules/audio_processing/include/aec_dump.cc
+            webrtc_dsp/modules/audio_processing/include/aec_dump.h
+            webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.h
+            webrtc_dsp/modules/audio_processing/include/audio_processing.h
+            webrtc_dsp/modules/audio_processing/include/audio_processing.cc
+            webrtc_dsp/modules/audio_processing/include/config.cc
+            webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.h
+            webrtc_dsp/modules/audio_processing/agc2/biquad_filter.h
+            webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.cc
+            webrtc_dsp/modules/audio_processing/agc2/agc2_common.cc
+            webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.h
+            webrtc_dsp/modules/audio_processing/agc2/gain_applier.cc
+            webrtc_dsp/modules/audio_processing/agc2/signal_classifier.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.cc
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.cc
+            webrtc_dsp/modules/audio_processing/agc2/limiter.cc
+            webrtc_dsp/modules/audio_processing/agc2/saturation_protector.cc
+            webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/sequence_buffer.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/test_utils.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_info.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/ring_buffer.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/symmetric_matrix_buffer.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/common.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.h
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.cc
+            webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.cc
+            webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.cc
+            webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.cc
+            webrtc_dsp/modules/audio_processing/agc2/down_sampler.h
+            webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.cc
+            webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.cc
+            webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.cc
+            webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.cc
+            webrtc_dsp/modules/audio_processing/agc2/saturation_protector.h
+            webrtc_dsp/modules/audio_processing/agc2/vad_with_level.cc
+            webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.cc
+            webrtc_dsp/modules/audio_processing/agc2/agc2_common.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.h
+            webrtc_dsp/modules/audio_processing/agc2/vad_with_level.h
+            webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.h
+            webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.h
+            webrtc_dsp/modules/audio_processing/agc2/gain_applier.h
+            webrtc_dsp/modules/audio_processing/agc2/down_sampler.cc
+            webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.h
+            webrtc_dsp/modules/audio_processing/agc2/signal_classifier.cc
+            webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.cc
+            webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.cc
+            webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.h
+            webrtc_dsp/modules/audio_processing/agc2/biquad_filter.cc
+            webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.h
+            webrtc_dsp/modules/audio_processing/agc2/limiter.h
+            webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc
+            webrtc_dsp/modules/audio_processing/transient/moving_moments.cc
+            webrtc_dsp/modules/audio_processing/transient/transient_detector.h
+            webrtc_dsp/modules/audio_processing/transient/wpd_tree.cc
+            webrtc_dsp/modules/audio_processing/transient/transient_suppressor.h
+            webrtc_dsp/modules/audio_processing/transient/daubechies_8_wavelet_coeffs.h
+            webrtc_dsp/modules/audio_processing/transient/common.h
+            webrtc_dsp/modules/audio_processing/transient/wpd_node.h
+            webrtc_dsp/modules/audio_processing/transient/moving_moments.h
+            webrtc_dsp/modules/audio_processing/transient/wpd_tree.h
+            webrtc_dsp/modules/audio_processing/transient/wpd_node.cc
+            webrtc_dsp/modules/audio_processing/transient/transient_suppressor.cc
+            webrtc_dsp/modules/audio_processing/transient/transient_detector.cc
+            webrtc_dsp/modules/audio_processing/transient/dyadic_decimator.h
+            webrtc_dsp/modules/audio_processing/low_cut_filter.cc
+            webrtc_dsp/modules/audio_processing/noise_suppression_impl.h
+            webrtc_dsp/modules/audio_processing/level_estimator_impl.cc
+            webrtc_dsp/modules/audio_processing/three_band_filter_bank.cc
+            webrtc_dsp/modules/audio_processing/aec/echo_cancellation.cc
+            webrtc_dsp/modules/audio_processing/aec/aec_resampler.h
+            webrtc_dsp/modules/audio_processing/aec/aec_resampler.cc
+            webrtc_dsp/modules/audio_processing/aec/echo_cancellation.h
+            webrtc_dsp/modules/audio_processing/aec/aec_core.cc
+            webrtc_dsp/modules/audio_processing/aec/aec_core.h
+            webrtc_dsp/modules/audio_processing/aec/aec_core_optimized_methods.h
+            webrtc_dsp/modules/audio_processing/aec/aec_core_sse2.cc
+            webrtc_dsp/modules/audio_processing/aec/aec_common.h
+            webrtc_dsp/modules/audio_processing/voice_detection_impl.h
+            webrtc_dsp/modules/audio_processing/voice_detection_impl.cc
+            webrtc_dsp/modules/audio_processing/echo_cancellation_impl.cc
+            webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.cc
+            webrtc_dsp/modules/audio_processing/agc/agc.cc
+            webrtc_dsp/modules/audio_processing/agc/loudness_histogram.cc
+            webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.cc
+            webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.h
+            webrtc_dsp/modules/audio_processing/agc/legacy/gain_control.h
+            webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.h
+            webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.c
+            webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.c
+            webrtc_dsp/modules/audio_processing/agc/utility.cc
+            webrtc_dsp/modules/audio_processing/agc/mock_agc.h
+            webrtc_dsp/modules/audio_processing/agc/loudness_histogram.h
+            webrtc_dsp/modules/audio_processing/agc/gain_map_internal.h
+            webrtc_dsp/modules/audio_processing/agc/utility.h
+            webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.h
+            webrtc_dsp/modules/audio_processing/agc/agc.h
+            webrtc_dsp/modules/audio_processing/common.h
+            webrtc_dsp/modules/audio_processing/audio_processing_impl.cc
+            webrtc_dsp/modules/audio_processing/audio_buffer.h
+            webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.h
+            webrtc_dsp/modules/audio_processing/splitting_filter.h
+            webrtc_dsp/modules/audio_processing/low_cut_filter.h
+            webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.h
+            webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.cc
+            webrtc_dsp/modules/audio_processing/gain_controller2.cc
+            webrtc_dsp/modules/audio_processing/three_band_filter_bank.h
+            webrtc_dsp/modules/audio_processing/residual_echo_detector.cc
+            webrtc_dsp/modules/audio_processing/echo_cancellation_impl.h
+            webrtc_dsp/modules/audio_processing/noise_suppression_impl.cc
+            webrtc_dsp/modules/audio_processing/level_estimator_impl.h
+            webrtc_dsp/modules/audio_processing/gain_controller2.h
+            webrtc_dsp/modules/audio_processing/aecm/aecm_core.h
+            webrtc_dsp/modules/audio_processing/aecm/aecm_defines.h
+            webrtc_dsp/modules/audio_processing/aecm/aecm_core.cc
+            webrtc_dsp/modules/audio_processing/aecm/aecm_core_c.cc
+            webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.h
+            webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.cc
+            webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.h
+            webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.h
+            webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.cc
+            webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.cc
+            webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer2.cc
+            webrtc_dsp/modules/audio_processing/aec3/aec_state.h
+            webrtc_dsp/modules/audio_processing/aec3/suppression_filter.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.cc
+            webrtc_dsp/modules/audio_processing/aec3/frame_blocker.cc
+            webrtc_dsp/modules/audio_processing/aec3/subtractor.cc
+            webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.h
+            webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.h
+            webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.h
+            webrtc_dsp/modules/audio_processing/aec3/matched_filter.h
+            webrtc_dsp/modules/audio_processing/aec3/subtractor_output.h
+            webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.h
+            webrtc_dsp/modules/audio_processing/aec3/aec3_fft.cc
+            webrtc_dsp/modules/audio_processing/aec3/aec3_fft.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.h
+            webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/suppression_filter.cc
+            webrtc_dsp/modules/audio_processing/aec3/block_processor.cc
+            webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.h
+            webrtc_dsp/modules/audio_processing/aec3/subtractor.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.h
+            webrtc_dsp/modules/audio_processing/aec3/vector_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/erl_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/aec_state.cc
+            webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.cc
+            webrtc_dsp/modules/audio_processing/aec3/fft_data.h
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.cc
+            webrtc_dsp/modules/audio_processing/aec3/skew_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.h
+            webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/erl_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_remover.h
+            webrtc_dsp/modules/audio_processing/aec3/block_framer.cc
+            webrtc_dsp/modules/audio_processing/aec3/erle_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/reverb_model.cc
+            webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.cc
+            webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.h
+            webrtc_dsp/modules/audio_processing/aec3/render_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/subtractor_output.cc
+            webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.cc
+            webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.h
+            webrtc_dsp/modules/audio_processing/aec3/moving_average.h
+            webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.h
+            webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.cc
+            webrtc_dsp/modules/audio_processing/aec3/suppression_gain.cc
+            webrtc_dsp/modules/audio_processing/aec3/echo_audibility.cc
+            webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.h
+            webrtc_dsp/modules/audio_processing/aec3/suppression_gain.h
+            webrtc_dsp/modules/audio_processing/aec3/moving_average.cc
+            webrtc_dsp/modules/audio_processing/aec3/erle_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/aec3_common.cc
+            webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/block_processor.h
+            webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/matched_filter.cc
+            webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.h
+            webrtc_dsp/modules/audio_processing/aec3/skew_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_controller2.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_buffer.h
+            webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.cc
+            webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.cc
+            webrtc_dsp/modules/audio_processing/aec3/echo_remover.cc
+            webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.h
+            webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/vector_buffer.h
+            webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.h
+            webrtc_dsp/modules/audio_processing/aec3/echo_audibility.h
+            webrtc_dsp/modules/audio_processing/aec3/fft_buffer.h
+            webrtc_dsp/modules/audio_processing/aec3/block_processor2.cc
+            webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.cc
+            webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/aec3_common.h
+            webrtc_dsp/modules/audio_processing/aec3/fft_buffer.cc
+            webrtc_dsp/modules/audio_processing/aec3/vector_math.h
+            webrtc_dsp/modules/audio_processing/aec3/decimator.h
+            webrtc_dsp/modules/audio_processing/aec3/frame_blocker.h
+            webrtc_dsp/modules/audio_processing/aec3/block_framer.h
+            webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.h
+            webrtc_dsp/modules/audio_processing/aec3/delay_estimate.h
+            webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.cc
+            webrtc_dsp/modules/audio_processing/aec3/reverb_model.h
+            webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.h
+            webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.h
+            webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.cc
+            webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.cc
+            webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.h
+            webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.cc
+            webrtc_dsp/modules/audio_processing/aec3/decimator.cc
+            webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.h
+            webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.cc
+            webrtc_dsp/modules/audio_processing/gain_control_impl.h
+            webrtc_dsp/modules/audio_processing/typing_detection.h
+            webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.cc
+            webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.h
+            webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.cc
+            webrtc_dsp/modules/audio_processing/vad/standalone_vad.cc
+            webrtc_dsp/modules/audio_processing/vad/vad_audio_proc_internal.h
+            webrtc_dsp/modules/audio_processing/vad/pitch_internal.cc
+            webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.cc
+            webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.h
+            webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.h
+            webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.cc
+            webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.cc
+            webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.h
+            webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.cc
+            webrtc_dsp/modules/audio_processing/vad/gmm.h
+            webrtc_dsp/modules/audio_processing/vad/common.h
+            webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.h
+            webrtc_dsp/modules/audio_processing/vad/voice_gmm_tables.h
+            webrtc_dsp/modules/audio_processing/vad/noise_gmm_tables.h
+            webrtc_dsp/modules/audio_processing/vad/pitch_internal.h
+            webrtc_dsp/modules/audio_processing/vad/gmm.cc
+            webrtc_dsp/modules/audio_processing/vad/standalone_vad.h
+            webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.h
+            webrtc_dsp/modules/audio_processing/utility/delay_estimator_internal.h
+            webrtc_dsp/modules/audio_processing/utility/ooura_fft.cc
+            webrtc_dsp/modules/audio_processing/utility/ooura_fft.h
+            webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.cc
+            webrtc_dsp/modules/audio_processing/utility/ooura_fft_sse2.cc
+            webrtc_dsp/modules/audio_processing/utility/delay_estimator.cc
+            webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.h
+            webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.cc
+            webrtc_dsp/modules/audio_processing/utility/delay_estimator.h
+            webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_common.h
+            webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.h
+            webrtc_dsp/common_audio/mocks/mock_smoothing_filter.h
+            webrtc_dsp/common_audio/wav_file.h
+            webrtc_dsp/common_audio/window_generator.cc
+            webrtc_dsp/common_audio/channel_buffer.cc
+            webrtc_dsp/common_audio/fir_filter_factory.cc
+            webrtc_dsp/common_audio/sparse_fir_filter.h
+            webrtc_dsp/common_audio/fir_filter_sse.h
+            webrtc_dsp/common_audio/window_generator.h
+            webrtc_dsp/common_audio/ring_buffer.h
+            webrtc_dsp/common_audio/fir_filter.h
+            webrtc_dsp/common_audio/include/audio_util.h
+            webrtc_dsp/common_audio/wav_header.cc
+            webrtc_dsp/common_audio/real_fourier_ooura.cc
+            webrtc_dsp/common_audio/audio_util.cc
+            webrtc_dsp/common_audio/real_fourier_ooura.h
+            webrtc_dsp/common_audio/fir_filter_sse.cc
+            webrtc_dsp/common_audio/smoothing_filter.h
+            webrtc_dsp/common_audio/resampler/push_sinc_resampler.cc
+            webrtc_dsp/common_audio/resampler/sinc_resampler.h
+            webrtc_dsp/common_audio/resampler/resampler.cc
+            webrtc_dsp/common_audio/resampler/sinc_resampler_sse.cc
+            webrtc_dsp/common_audio/resampler/include/push_resampler.h
+            webrtc_dsp/common_audio/resampler/include/resampler.h
+            webrtc_dsp/common_audio/resampler/push_sinc_resampler.h
+            webrtc_dsp/common_audio/resampler/push_resampler.cc
+            webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.h
+            webrtc_dsp/common_audio/resampler/sinc_resampler.cc
+            webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.cc
+            webrtc_dsp/common_audio/fir_filter_factory.h
+            webrtc_dsp/common_audio/audio_converter.h
+            webrtc_dsp/common_audio/wav_file.cc
+            webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c
+            webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.h
+            webrtc_dsp/common_audio/third_party/fft4g/fft4g.c
+            webrtc_dsp/common_audio/third_party/fft4g/fft4g.h
+            webrtc_dsp/common_audio/audio_converter.cc
+            webrtc_dsp/common_audio/real_fourier.cc
+            webrtc_dsp/common_audio/channel_buffer.h
+            webrtc_dsp/common_audio/real_fourier.h
+            webrtc_dsp/common_audio/sparse_fir_filter.cc
+            webrtc_dsp/common_audio/smoothing_filter.cc
+            webrtc_dsp/common_audio/fir_filter_c.cc
+            webrtc_dsp/common_audio/ring_buffer.c
+            webrtc_dsp/common_audio/fir_filter_c.h
+            webrtc_dsp/common_audio/signal_processing/complex_fft_tables.h
+            webrtc_dsp/common_audio/signal_processing/complex_fft.c
+            webrtc_dsp/common_audio/signal_processing/filter_ma_fast_q12.c
+            webrtc_dsp/common_audio/signal_processing/levinson_durbin.c
+            webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.cc
+            webrtc_dsp/common_audio/signal_processing/auto_corr_to_refl_coef.c
+            webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.c
+            webrtc_dsp/common_audio/signal_processing/energy.c
+            webrtc_dsp/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c
+            webrtc_dsp/common_audio/signal_processing/downsample_fast.c
+            webrtc_dsp/common_audio/signal_processing/splitting_filter1.c
+            webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12.c
+            webrtc_dsp/common_audio/signal_processing/spl_init.c
+            webrtc_dsp/common_audio/signal_processing/lpc_to_refl_coef.c
+            webrtc_dsp/common_audio/signal_processing/cross_correlation.c
+            webrtc_dsp/common_audio/signal_processing/include/signal_processing_library.h
+            webrtc_dsp/common_audio/signal_processing/include/real_fft.h
+            webrtc_dsp/common_audio/signal_processing/include/spl_inl.h
+            webrtc_dsp/common_audio/signal_processing/division_operations.c
+            webrtc_dsp/common_audio/signal_processing/auto_correlation.c
+            webrtc_dsp/common_audio/signal_processing/get_scaling_square.c
+            webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.h
+            webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.h
+            webrtc_dsp/common_audio/signal_processing/resample.c
+            webrtc_dsp/common_audio/signal_processing/min_max_operations.c
+            webrtc_dsp/common_audio/signal_processing/refl_coef_to_lpc.c
+            webrtc_dsp/common_audio/signal_processing/filter_ar.c
+            webrtc_dsp/common_audio/signal_processing/vector_scaling_operations.c
+            webrtc_dsp/common_audio/signal_processing/resample_fractional.c
+            webrtc_dsp/common_audio/signal_processing/real_fft.c
+            webrtc_dsp/common_audio/signal_processing/ilbc_specific_functions.c
+            webrtc_dsp/common_audio/signal_processing/complex_bit_reverse.c
+            webrtc_dsp/common_audio/signal_processing/randomization_functions.c
+            webrtc_dsp/common_audio/signal_processing/copy_set_operations.c
+            webrtc_dsp/common_audio/signal_processing/resample_by_2.c
+            webrtc_dsp/common_audio/signal_processing/get_hanning_window.c
+            webrtc_dsp/common_audio/signal_processing/resample_48khz.c
+            webrtc_dsp/common_audio/signal_processing/spl_inl.c
+            webrtc_dsp/common_audio/signal_processing/spl_sqrt.c
+            webrtc_dsp/common_audio/wav_header.h
+            webrtc_dsp/common_audio/vad/vad_sp.c
+            webrtc_dsp/common_audio/vad/vad.cc
+            webrtc_dsp/common_audio/vad/webrtc_vad.c
+            webrtc_dsp/common_audio/vad/vad_core.h
+            webrtc_dsp/common_audio/vad/include/vad.h
+            webrtc_dsp/common_audio/vad/include/webrtc_vad.h
+            webrtc_dsp/common_audio/vad/vad_gmm.h
+            webrtc_dsp/common_audio/vad/vad_filterbank.c
+            webrtc_dsp/common_audio/vad/vad_core.c
+            webrtc_dsp/common_audio/vad/vad_sp.h
+            webrtc_dsp/common_audio/vad/vad_filterbank.h
+            webrtc_dsp/common_audio/vad/vad_gmm.c
+
+            # ARM/NEON sources
+            # TODO check if there's a good way to make these compile with ARM ports of TDesktop
+            # webrtc_dsp/modules/audio_processing/ns/nsx_core_neon.c
+            # webrtc_dsp/modules/audio_processing/aec/aec_core_neon.cc
+            # webrtc_dsp/modules/audio_processing/aecm/aecm_core_neon.cc
+            # webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_neon_sse2.h
+            # webrtc_dsp/modules/audio_processing/utility/ooura_fft_neon.cc
+            # webrtc_dsp/common_audio/fir_filter_neon.cc
+            # webrtc_dsp/common_audio/resampler/sinc_resampler_neon.cc
+            # webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_arm.S
+            # webrtc_dsp/common_audio/fir_filter_neon.h
+            # webrtc_dsp/common_audio/signal_processing/downsample_fast_neon.c
+            # webrtc_dsp/common_audio/signal_processing/complex_bit_reverse_arm.S
+            # webrtc_dsp/common_audio/signal_processing/include/spl_inl_armv7.h
+            # webrtc_dsp/common_audio/signal_processing/min_max_operations_neon.c
+            # webrtc_dsp/common_audio/signal_processing/cross_correlation_neon.c
+            # webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12_armv7.S
+        )
+    endif()
+
     target_compile_definitions(lib_tgvoip
     PUBLIC
         WEBRTC_APM_DEBUG_DUMP=0
@@ -737,16 +744,24 @@ else()
     )
 
     if (WIN32)
-        target_compile_options(lib_tgvoip
-        PRIVATE
-            /wd4005
-            /wd4244 # conversion from 'int' to 'float', possible loss of data (several in webrtc)
-            /wd5055 # operator '>' deprecated between enumerations and floating-point types
-        )
-        target_compile_definitions(lib_tgvoip
-        PUBLIC
-            WEBRTC_WIN
-        )
+        if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+            target_compile_options(lib_tgvoip
+            PRIVATE
+                /wd4005
+                /wd4244 # conversion from 'int' to 'float', possible loss of data (several in webrtc)
+                /wd5055 # operator '>' deprecated between enumerations and floating-point types
+            )
+            target_compile_definitions(lib_tgvoip
+            PUBLIC
+                WEBRTC_WIN
+            )
+        else()
+            target_compile_definitions(lib_tgvoip
+            PUBLIC
+                # Doesn't build with mingw for now
+                TGVOIP_NO_DSP
+            )
+        endif()
     elseif (APPLE)
         target_compile_definitions(lib_tgvoip
         PUBLIC