Fix .tlo generation for macos

This commit is contained in:
Andrea Cavalli 2020-11-14 16:54:24 +01:00
parent dacb5ff0cc
commit 3a620225a9

View File

@ -112,7 +112,7 @@ if (NOT CMAKE_CROSSCOMPILING)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${GENERATE_COMMON_CMD}
COMMENT "Generate common tl source files"
DEPENDS generate_common scheme/telegram_api.tlo scheme/secret_api.tlo ${TL_TD_API_TLO} DoxygenTlDocumentationGenerator.php
DEPENDS generate_common scheme/telegram_api.tlo scheme/secret_api.tlo scheme/td_api.tlo DoxygenTlDocumentationGenerator.php
)
if (TD_ENABLE_JNI)
target_compile_definitions(generate_common PRIVATE TD_ENABLE_JNI=1)
@ -189,7 +189,7 @@ if (NOT CMAKE_CROSSCOMPILING)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND generate_c
COMMENT "Generate C tl source files"
DEPENDS generate_c ${TL_TD_API_TLO}
DEPENDS generate_c scheme/td_api.tlo
)
add_dependencies(tl_generate_c generate_td_api_tlo)
@ -202,7 +202,7 @@ if (NOT CMAKE_CROSSCOMPILING)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND generate_json
COMMENT "Generate JSON tl source files"
DEPENDS generate_json ${TL_TD_API_TLO}
DEPENDS generate_json scheme/td_api.tlo
)
add_dependencies(tl_generate_json generate_td_api_tlo)
@ -225,7 +225,7 @@ if (NOT CMAKE_CROSSCOMPILING)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${GENERATE_DOTNET_API_CMD} ${TL_TD_API_TLO}
COMMENT "Generate .NET API files"
DEPENDS td_generate_dotnet_api ${TL_TD_API_TLO} DotnetTlDocumentationGenerator.php
DEPENDS td_generate_dotnet_api scheme/td_api.tlo DotnetTlDocumentationGenerator.php
)
endif()