mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Build new tgcalls with C++20 on Windows.
This commit is contained in:
parent
9308615361
commit
dbf673f674
3 changed files with 15 additions and 4 deletions
|
@ -36,6 +36,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
namespace tgcalls {
|
||||
class InstanceImpl;
|
||||
class InstanceV2Impl;
|
||||
class InstanceImplLegacy;
|
||||
class InstanceImplReference;
|
||||
void SetLegacyGlobalServerConfig(const std::string &serverConfig);
|
||||
|
@ -50,8 +51,9 @@ constexpr auto kSha256Size = 32;
|
|||
constexpr auto kAuthKeySize = 256;
|
||||
const auto kDefaultVersion = "2.4.4"_q;
|
||||
|
||||
const auto RegisterTag = tgcalls::Register<tgcalls::InstanceImpl>();
|
||||
const auto RegisterTagLegacy = tgcalls::Register<tgcalls::InstanceImplLegacy>();
|
||||
const auto Register = tgcalls::Register<tgcalls::InstanceImpl>();
|
||||
const auto RegisterV2 = tgcalls::Register<tgcalls::InstanceV2Impl>();
|
||||
const auto RegisterLegacy = tgcalls::Register<tgcalls::InstanceImplLegacy>();
|
||||
|
||||
void AppendEndpoint(
|
||||
std::vector<tgcalls::Endpoint> &list,
|
||||
|
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
|
@ -1 +1 @@
|
|||
Subproject commit f76a9290fa502a8df473dd872aedf9a553b089cc
|
||||
Subproject commit f340af67a01c64c3d9e6ba087832717d57cbfb30
|
|
@ -7,7 +7,7 @@
|
|||
add_library(lib_tgcalls STATIC)
|
||||
|
||||
if (WIN32)
|
||||
init_target(lib_tgcalls cxx_std_17) # Small amount of patches required here.
|
||||
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()
|
||||
|
@ -62,6 +62,15 @@ PRIVATE
|
|||
VideoCaptureInterfaceImpl.h
|
||||
VideoCapturerInterface.h
|
||||
|
||||
v2/InstanceV2Impl.cpp
|
||||
v2/InstanceV2Impl.h
|
||||
v2/NativeNetworkingImpl.cpp
|
||||
v2/NativeNetworkingImpl.h
|
||||
v2/Signaling.cpp
|
||||
v2/Signaling.h
|
||||
v2/SignalingEncryption.cpp
|
||||
v2/SignalingEncryption.h
|
||||
|
||||
# Desktop capturer
|
||||
desktop_capturer/DesktopCaptureSource.h
|
||||
desktop_capturer/DesktopCaptureSource.cpp
|
||||
|
|
Loading…
Add table
Reference in a new issue