Use separate CMake variable for td_api sources.
GitOrigin-RevId: ed1828a2202a69c71e620bdf5a1883aa8799d35e
This commit is contained in:
parent
3a5242151d
commit
b007747dce
@ -266,9 +266,9 @@ if (NOT CMAKE_CROSSCOMPILING)
|
|||||||
if (TD_ENABLE_DOTNET)
|
if (TD_ENABLE_DOTNET)
|
||||||
add_custom_target(remove_cpp_documentation
|
add_custom_target(remove_cpp_documentation
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
COMMAND remove_documentation ${TL_TD_AUTO_SOURCE} td/telegram/Client.h td/telegram/Log.h td/tl/TlObject.h
|
COMMAND remove_documentation ${TL_TD_API_AUTO_SOURCE} td/telegram/Client.h td/telegram/Log.h td/tl/TlObject.h
|
||||||
COMMENT "Remove C++ documentation from sources"
|
COMMENT "Remove C++ documentation from sources"
|
||||||
DEPENDS remove_documentation tl_generate_common generate_dotnet_api ${TL_TD_AUTO_SOURCE} td/telegram/Client.h td/telegram/Log.h td/tl/TlObject.h
|
DEPENDS remove_documentation tl_generate_common generate_dotnet_api ${TL_TD_API_AUTO_SOURCE} td/telegram/Client.h td/telegram/Log.h td/tl/TlObject.h
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(prepare_cross_compiling generate_dotnet_api remove_cpp_documentation)
|
add_dependencies(prepare_cross_compiling generate_dotnet_api remove_cpp_documentation)
|
||||||
@ -314,6 +314,7 @@ endif()
|
|||||||
#SOURCE SETS
|
#SOURCE SETS
|
||||||
|
|
||||||
set_source_files_properties(${TL_TD_AUTO_SOURCE} PROPERTIES GENERATED TRUE)
|
set_source_files_properties(${TL_TD_AUTO_SOURCE} PROPERTIES GENERATED TRUE)
|
||||||
|
set_source_files_properties(${TL_TD_API_AUTO_SOURCE} PROPERTIES GENERATED TRUE)
|
||||||
if (TD_ENABLE_JNI OR ANDROID)
|
if (TD_ENABLE_JNI OR ANDROID)
|
||||||
set(TL_JNI_OBJECT_SOURCE
|
set(TL_JNI_OBJECT_SOURCE
|
||||||
td/tl/tl_jni_object.cpp
|
td/tl/tl_jni_object.cpp
|
||||||
@ -325,6 +326,7 @@ endif()
|
|||||||
|
|
||||||
set(TL_TD_SCHEME_SOURCE
|
set(TL_TD_SCHEME_SOURCE
|
||||||
${TL_TD_AUTO_SOURCE}
|
${TL_TD_AUTO_SOURCE}
|
||||||
|
${TL_TD_API_AUTO_SOURCE}
|
||||||
${TL_JNI_OBJECT_SOURCE}
|
${TL_JNI_OBJECT_SOURCE}
|
||||||
td/tl/TlObject.h
|
td/tl/TlObject.h
|
||||||
td/tl/tl_object_parse.h
|
td/tl/tl_object_parse.h
|
||||||
|
@ -15,9 +15,6 @@ set(TL_TD_AUTO_SOURCE
|
|||||||
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.cpp
|
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.cpp
|
||||||
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.h
|
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.h
|
||||||
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.hpp
|
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.hpp
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.cpp
|
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.h
|
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.hpp
|
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.cpp
|
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.cpp
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.h
|
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.h
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.hpp
|
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.hpp
|
||||||
@ -27,6 +24,13 @@ set(TL_TD_AUTO_SOURCE
|
|||||||
PARENT_SCOPE
|
PARENT_SCOPE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(TL_TD_API_AUTO_SOURCE
|
||||||
|
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.cpp
|
||||||
|
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.h
|
||||||
|
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.hpp
|
||||||
|
PARENT_SCOPE
|
||||||
|
)
|
||||||
|
|
||||||
set(TL_TD_JSON_AUTO_SOURCE
|
set(TL_TD_JSON_AUTO_SOURCE
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/td_api_json.cpp
|
${TD_AUTO_INCLUDE_DIR}/telegram/td_api_json.cpp
|
||||||
${TD_AUTO_INCLUDE_DIR}/telegram/td_api_json.h
|
${TD_AUTO_INCLUDE_DIR}/telegram/td_api_json.h
|
||||||
|
Reference in New Issue
Block a user