From 3fad1b68a7ffd9f2fd514d701e6103d6431f92d9 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 18 May 2024 21:16:51 +0300 Subject: [PATCH] Add separate TL_MTPROTO_AUTO_SOURCE. --- CMakeLists.txt | 16 +++++++++------- td/generate/CMakeLists.txt | 6 +++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69d25c945..e4527b8da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,13 +239,9 @@ set(TL_TD_API_SOURCE td/tl/TlObject.h ) +set_source_files_properties(${TL_MTPROTO_AUTO_SOURCE} PROPERTIES GENERATED TRUE) + set_source_files_properties(${TL_TD_AUTO_SOURCE} PROPERTIES GENERATED TRUE) -set(TL_TD_SCHEME_SOURCE - ${TL_TD_AUTO_SOURCE} - td/tl/TlObject.h - td/tl/tl_object_parse.h - td/tl/tl_object_store.h -) set_source_files_properties(${TL_TD_JSON_AUTO_SOURCE} PROPERTIES GENERATED TRUE) set(TL_TD_JSON_SOURCE @@ -997,7 +993,13 @@ set(TDLIB_SOURCE td/telegram/VoiceNotesManager.hpp td/telegram/WebApp.hpp - ${TL_TD_SCHEME_SOURCE} + ${TL_MTPROTO_AUTO_SOURCE} + + ${TL_TD_AUTO_SOURCE} + + td/tl/TlObject.h + td/tl/tl_object_parse.h + td/tl/tl_object_store.h ${CMAKE_CURRENT_BINARY_DIR}/td/telegram/GitCommitHash.cpp ) diff --git a/td/generate/CMakeLists.txt b/td/generate/CMakeLists.txt index d822357c5..d417c0784 100644 --- a/td/generate/CMakeLists.txt +++ b/td/generate/CMakeLists.txt @@ -14,10 +14,14 @@ set(TL_TD_AUTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/auto PARENT_SCOPE) set(TD_AUTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/auto/td) -set(TL_TD_AUTO_SOURCE +set(TL_MTPROTO_AUTO_SOURCE ${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.cpp ${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.h ${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.hpp + PARENT_SCOPE +) + +set(TL_TD_AUTO_SOURCE ${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.cpp ${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.h ${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.hpp