mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Build tg_owt / tgcalls / tgvoip with C++20.
This commit is contained in:
parent
dbf673f674
commit
dad11a17dd
4 changed files with 5 additions and 26 deletions
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit f340af67a01c64c3d9e6ba087832717d57cbfb30
|
Subproject commit b5906f03f388252d50fc008dcae549f56c2239f4
|
|
@ -1154,7 +1154,7 @@ mac:
|
||||||
stage('tg_owt', """
|
stage('tg_owt', """
|
||||||
git clone https://github.com/desktop-app/tg_owt.git
|
git clone https://github.com/desktop-app/tg_owt.git
|
||||||
cd tg_owt
|
cd tg_owt
|
||||||
git checkout d578c760dc
|
git checkout ffbdaa616e
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update src/third_party/libvpx/source/libvpx src/third_party/libyuv
|
git submodule update src/third_party/libvpx/source/libvpx src/third_party/libyuv
|
||||||
win:
|
win:
|
||||||
|
|
|
@ -5,14 +5,7 @@
|
||||||
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
add_library(lib_tgcalls STATIC)
|
add_library(lib_tgcalls STATIC)
|
||||||
|
init_target(lib_tgcalls) # Can't use std::optional::value on macOS.
|
||||||
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()
|
|
||||||
|
|
||||||
add_library(tdesktop::lib_tgcalls ALIAS lib_tgcalls)
|
add_library(tdesktop::lib_tgcalls ALIAS lib_tgcalls)
|
||||||
|
|
||||||
|
@ -250,14 +243,7 @@ PRIVATE
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(lib_tgcalls_legacy STATIC)
|
add_library(lib_tgcalls_legacy STATIC)
|
||||||
|
init_target(lib_tgcalls_legacy)
|
||||||
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()
|
|
||||||
|
|
||||||
add_library(tdesktop::lib_tgcalls_legacy ALIAS lib_tgcalls_legacy)
|
add_library(tdesktop::lib_tgcalls_legacy ALIAS lib_tgcalls_legacy)
|
||||||
|
|
||||||
|
|
|
@ -18,14 +18,7 @@ endif()
|
||||||
|
|
||||||
if (NOT TGVOIP_FOUND)
|
if (NOT TGVOIP_FOUND)
|
||||||
add_library(lib_tgvoip_bundled STATIC)
|
add_library(lib_tgvoip_bundled STATIC)
|
||||||
|
init_target(lib_tgvoip_bundled)
|
||||||
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()
|
|
||||||
|
|
||||||
option(LIBTGVOIP_DISABLE_ALSA "Disable libtgvoip's ALSA backend (Linux only)." OFF)
|
option(LIBTGVOIP_DISABLE_ALSA "Disable libtgvoip's ALSA backend (Linux only)." OFF)
|
||||||
option(LIBTGVOIP_DISABLE_PULSEAUDIO "Disable libtgvoip's PulseAudio backend (Linux only)." OFF)
|
option(LIBTGVOIP_DISABLE_PULSEAUDIO "Disable libtgvoip's PulseAudio backend (Linux only)." OFF)
|
||||||
|
|
Loading…
Add table
Reference in a new issue