mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Build tg_owt / tgcalls / tgvoip with C++20.
This commit is contained in:
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
Submodule Telegram/ThirdParty/tgcalls updated: f340af67a0...b5906f03f3
@@ -1154,7 +1154,7 @@ mac:
|
||||
stage('tg_owt', """
|
||||
git clone https://github.com/desktop-app/tg_owt.git
|
||||
cd tg_owt
|
||||
git checkout d578c760dc
|
||||
git checkout ffbdaa616e
|
||||
git submodule init
|
||||
git submodule update src/third_party/libvpx/source/libvpx src/third_party/libyuv
|
||||
win:
|
||||
|
@@ -5,14 +5,7 @@
|
||||
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
add_library(lib_tgcalls STATIC)
|
||||
|
||||
if (WIN32)
|
||||
init_target(lib_tgcalls) # Small amount of patches required here.
|
||||
elseif (LINUX)
|
||||
init_target(lib_tgcalls) # All C++20 on Linux, because otherwise ODR violation.
|
||||
else()
|
||||
init_target(lib_tgcalls cxx_std_14) # Can't use std::optional::value on macOS.
|
||||
endif()
|
||||
init_target(lib_tgcalls) # Can't use std::optional::value on macOS.
|
||||
|
||||
add_library(tdesktop::lib_tgcalls ALIAS lib_tgcalls)
|
||||
|
||||
@@ -250,14 +243,7 @@ PRIVATE
|
||||
)
|
||||
|
||||
add_library(lib_tgcalls_legacy STATIC)
|
||||
|
||||
if (WIN32)
|
||||
init_target(lib_tgcalls_legacy cxx_std_17) # Small amount of patches required here.
|
||||
elseif (LINUX)
|
||||
init_target(lib_tgcalls_legacy) # All C++20 on Linux, because otherwise ODR violation.
|
||||
else()
|
||||
init_target(lib_tgcalls_legacy cxx_std_14) # Can't use std::optional::value on macOS.
|
||||
endif()
|
||||
init_target(lib_tgcalls_legacy)
|
||||
|
||||
add_library(tdesktop::lib_tgcalls_legacy ALIAS lib_tgcalls_legacy)
|
||||
|
||||
|
@@ -18,14 +18,7 @@ endif()
|
||||
|
||||
if (NOT TGVOIP_FOUND)
|
||||
add_library(lib_tgvoip_bundled STATIC)
|
||||
|
||||
if (WIN32)
|
||||
init_target(lib_tgvoip_bundled cxx_std_17) # Small amount of patches required here.
|
||||
elseif (LINUX)
|
||||
init_target(lib_tgvoip_bundled) # All C++20 on Linux, because otherwise ODR violation.
|
||||
else()
|
||||
init_target(lib_tgvoip_bundled cxx_std_14) # Can't use std::optional::value on macOS.
|
||||
endif()
|
||||
init_target(lib_tgvoip_bundled)
|
||||
|
||||
option(LIBTGVOIP_DISABLE_ALSA "Disable libtgvoip's ALSA backend (Linux only)." OFF)
|
||||
option(LIBTGVOIP_DISABLE_PULSEAUDIO "Disable libtgvoip's PulseAudio backend (Linux only)." OFF)
|
||||
|
Reference in New Issue
Block a user