Add tde2e dependency.

This commit is contained in:
John Preston
2025-03-24 21:08:26 +04:00
parent 6008d9e12b
commit 8e643fbf87
5 changed files with 64 additions and 1 deletions
+2
View File
@@ -34,6 +34,7 @@ include(cmake/td_iv.cmake)
include(cmake/td_lang.cmake)
include(cmake/td_mtproto.cmake)
include(cmake/td_scheme.cmake)
include(cmake/td_tde2e.cmake)
include(cmake/td_ui.cmake)
include(cmake/generate_appdata_changelog.cmake)
@@ -69,6 +70,7 @@ PRIVATE
tdesktop::td_lang
tdesktop::td_mtproto
tdesktop::td_scheme
tdesktop::td_tde2e
tdesktop::td_ui
desktop-app::lib_webrtc
desktop-app::lib_base
+22
View File
@@ -0,0 +1,22 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "tde2e/tde2e_api.h"
#include "base/algorithm.h"
#include <tde2e/td/e2e/e2e_api.h>
namespace TdE2E {
QByteArray GeneratePrivateKey() {
const auto result = tde2e_api::key_generate_temporary_private_key();
return {};
}
} // namespace TdE2E
+9
View File
@@ -0,0 +1,9 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
+30
View File
@@ -0,0 +1,30 @@
# This file is part of Telegram Desktop,
# the official desktop application for the Telegram messaging service.
#
# For license and copyright information please follow this link:
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
add_library(td_tde2e OBJECT)
init_non_host_target(td_tde2e)
add_library(tdesktop::td_tde2e ALIAS td_tde2e)
nice_target_sources(td_tde2e ${src_loc}
PRIVATE
tde2e/tde2e_api.cpp
tde2e/tde2e_api.h
)
target_include_directories(td_tde2e
PUBLIC
${src_loc}
)
target_link_libraries(td_tde2e
PUBLIC
desktop-app::lib_base
PRIVATE
desktop-app::external_td
)
+1 -1
Submodule cmake updated: 37b57a8dbc...fb157ccf8c