From 44479167131afb856cac99cbeda997b3ff920f54 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 21 Jan 2022 11:50:37 +0400 Subject: [PATCH] Update webrtc and tgcalls --- submodules/TgVoipWebrtc/BUILD | 18 ++++++++++++++++-- submodules/TgVoipWebrtc/tgcalls | 2 +- third-party/webrtc/BUILD | 3 +-- third-party/webrtc/webrtc | 2 +- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/submodules/TgVoipWebrtc/BUILD b/submodules/TgVoipWebrtc/BUILD index a2fbdb2f66..524d3a3a0a 100644 --- a/submodules/TgVoipWebrtc/BUILD +++ b/submodules/TgVoipWebrtc/BUILD @@ -1,4 +1,19 @@ +config_setting( + name = "debug_build", + values = { + "compilation_mode": "dbg", + }, +) + +optimization_flags = select({ + ":debug_build": [ + "-O2", + "-DNDEBUG", + ], + "//conditions:default": ["-DNDEBUG"], +}) + objc_library( name = "TgVoipWebrtc", enable_modules = True, @@ -55,8 +70,7 @@ objc_library( "-DRTC_ENABLE_VP9", "-DTGVOIP_NAMESPACE=tgvoip_webrtc", "-std=c++14", - #"-DWEBRTC_DISABLE_H265", - ], + ] + optimization_flags, includes = [ "PublicHeaders", ], diff --git a/submodules/TgVoipWebrtc/tgcalls b/submodules/TgVoipWebrtc/tgcalls index b2c7f2f226..9f0ec95069 160000 --- a/submodules/TgVoipWebrtc/tgcalls +++ b/submodules/TgVoipWebrtc/tgcalls @@ -1 +1 @@ -Subproject commit b2c7f2f226a6c17a587b5fb421963a503855a2b6 +Subproject commit 9f0ec9506970fc4c09d0542716b64e643033bd76 diff --git a/third-party/webrtc/BUILD b/third-party/webrtc/BUILD index 86bec46394..ef05676784 100644 --- a/third-party/webrtc/BUILD +++ b/third-party/webrtc/BUILD @@ -11,8 +11,7 @@ config_setting( optimization_flags = select({ ":debug_build": [ "-O2", - #"-DNDEBUG", - #"-DRTC_DCHECK_IS_ON", + "-DNDEBUG", ], "//conditions:default": ["-DNDEBUG"], }) diff --git a/third-party/webrtc/webrtc b/third-party/webrtc/webrtc index 9cd0a24a2e..a3dbc94d93 160000 --- a/third-party/webrtc/webrtc +++ b/third-party/webrtc/webrtc @@ -1 +1 @@ -Subproject commit 9cd0a24a2e450bcc731fbce6f3fe0fb516c75bc2 +Subproject commit a3dbc94d93356bc10c2388a9291baf5a6105bdee