Add separate TL_MTPROTO_AUTO_SOURCE.

This commit is contained in:
levlam 2024-05-18 21:16:51 +03:00
parent a104d812b3
commit 3fad1b68a7
2 changed files with 14 additions and 8 deletions

View File

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

View File

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