Build new tgcalls with C++20 on Windows.

This commit is contained in:
John Preston 2021-11-12 10:59:32 +04:00
parent 9308615361
commit dbf673f674
3 changed files with 15 additions and 4 deletions

View File

@ -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,

@ -1 +1 @@
Subproject commit f76a9290fa502a8df473dd872aedf9a553b089cc
Subproject commit f340af67a01c64c3d9e6ba087832717d57cbfb30

View File

@ -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