mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Add tde2e dependency.
This commit is contained in:
parent
6008d9e12b
commit
8e643fbf87
5 changed files with 64 additions and 1 deletions
|
@ -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
Telegram/SourceFiles/tde2e/tde2e_api.cpp
Normal file
22
Telegram/SourceFiles/tde2e/tde2e_api.cpp
Normal 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
Telegram/SourceFiles/tde2e/tde2e_api.h
Normal file
9
Telegram/SourceFiles/tde2e/tde2e_api.h
Normal 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
Telegram/cmake/td_tde2e.cmake
Normal file
30
Telegram/cmake/td_tde2e.cmake
Normal 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
|
||||
)
|
||||
|
||||
|
||||
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
|||
Subproject commit 37b57a8dbca70b0a259e552b4c0793485268cbae
|
||||
Subproject commit fb157ccf8c1db1727f6c098517178e0c37887304
|
Loading…
Add table
Reference in a new issue