Update tgcalls

This commit is contained in:
Ali 2022-02-23 11:22:00 +04:00
parent 5a9e44c18f
commit cbe928ef78
2 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,8 @@ optimization_flags = select({
"//conditions:default": ["-DNDEBUG"], "//conditions:default": ["-DNDEBUG"],
}) })
enable_x264 = False
objc_library( objc_library(
name = "TgVoipWebrtc", name = "TgVoipWebrtc",
enable_modules = True, enable_modules = True,
@ -70,7 +72,7 @@ objc_library(
"-DRTC_ENABLE_VP9", "-DRTC_ENABLE_VP9",
"-DTGVOIP_NAMESPACE=tgvoip_webrtc", "-DTGVOIP_NAMESPACE=tgvoip_webrtc",
"-std=c++14", "-std=c++14",
] + optimization_flags, ] + optimization_flags + (["-DTGCALLS_ENABLE_X264"] if enable_x264 else []),
includes = [ includes = [
"PublicHeaders", "PublicHeaders",
], ],
@ -84,8 +86,7 @@ objc_library(
"//submodules/ffmpeg:ffmpeg", "//submodules/ffmpeg:ffmpeg",
"//third-party/rnnoise:rnnoise", "//third-party/rnnoise:rnnoise",
"//third-party/libyuv:libyuv", "//third-party/libyuv:libyuv",
"//third-party/libx264:libx264", ] + (["//third-party/libx264:libx264"] if enable_x264 else []),
],
sdk_frameworks = [ sdk_frameworks = [
"Foundation", "Foundation",
"UIKit", "UIKit",

@ -1 +1 @@
Subproject commit 382d1b6756768021274cb1edfc1e144cfb101fb8 Subproject commit abb39c285ac9a8ad3d5aa5a43a54ad665d099dcb