2019-11-21 11:56:17 +00:00
|
|
|
# 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
|
|
|
|
|
2019-11-08 12:02:15 +00:00
|
|
|
add_library(lib_mtproto OBJECT)
|
|
|
|
init_target(lib_mtproto)
|
2019-11-21 14:41:11 +00:00
|
|
|
add_library(tdesktop::lib_mtproto ALIAS lib_mtproto)
|
2019-11-08 12:02:15 +00:00
|
|
|
|
2019-12-06 08:39:13 +00:00
|
|
|
target_precompile_headers(lib_mtproto PRIVATE ${src_loc}/mtproto/mtproto_pch.h)
|
2019-12-03 16:11:03 +00:00
|
|
|
nice_target_sources(lib_mtproto ${src_loc}
|
2019-11-08 12:02:15 +00:00
|
|
|
PRIVATE
|
2019-12-06 08:39:13 +00:00
|
|
|
mtproto/details/mtproto_abstract_socket.cpp
|
|
|
|
mtproto/details/mtproto_abstract_socket.h
|
|
|
|
mtproto/details/mtproto_bound_key_creator.cpp
|
|
|
|
mtproto/details/mtproto_bound_key_creator.h
|
|
|
|
mtproto/details/mtproto_dc_key_binder.cpp
|
|
|
|
mtproto/details/mtproto_dc_key_binder.h
|
|
|
|
mtproto/details/mtproto_dc_key_creator.cpp
|
|
|
|
mtproto/details/mtproto_dc_key_creator.h
|
|
|
|
mtproto/details/mtproto_dcenter.cpp
|
|
|
|
mtproto/details/mtproto_dcenter.h
|
|
|
|
mtproto/details/mtproto_domain_resolver.cpp
|
|
|
|
mtproto/details/mtproto_domain_resolver.h
|
|
|
|
mtproto/details/mtproto_dump_to_text.cpp
|
|
|
|
mtproto/details/mtproto_dump_to_text.h
|
|
|
|
mtproto/details/mtproto_received_ids_manager.cpp
|
|
|
|
mtproto/details/mtproto_received_ids_manager.h
|
|
|
|
mtproto/details/mtproto_rsa_public_key.cpp
|
|
|
|
mtproto/details/mtproto_rsa_public_key.h
|
|
|
|
mtproto/details/mtproto_serialized_request.cpp
|
|
|
|
mtproto/details/mtproto_serialized_request.h
|
|
|
|
mtproto/details/mtproto_tcp_socket.cpp
|
|
|
|
mtproto/details/mtproto_tcp_socket.h
|
|
|
|
mtproto/details/mtproto_tls_socket.cpp
|
|
|
|
mtproto/details/mtproto_tls_socket.h
|
|
|
|
mtproto/mtproto_auth_key.cpp
|
|
|
|
mtproto/mtproto_auth_key.h
|
|
|
|
mtproto/mtproto_concurrent_sender.cpp
|
|
|
|
mtproto/mtproto_concurrent_sender.h
|
|
|
|
mtproto/mtproto_dh_utils.cpp
|
|
|
|
mtproto/mtproto_dh_utils.h
|
|
|
|
mtproto/mtproto_proxy_data.cpp
|
|
|
|
mtproto/mtproto_proxy_data.h
|
|
|
|
mtproto/mtproto_rpc_sender.cpp
|
|
|
|
mtproto/mtproto_rpc_sender.h
|
2019-11-08 12:02:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(lib_mtproto
|
|
|
|
PUBLIC
|
|
|
|
${src_loc}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(lib_mtproto
|
|
|
|
PUBLIC
|
2019-11-21 14:41:11 +00:00
|
|
|
tdesktop::lib_scheme
|
2019-12-06 08:39:13 +00:00
|
|
|
PRIVATE
|
|
|
|
desktop-app::external_zlib
|
2019-11-08 12:02:15 +00:00
|
|
|
)
|