Update build.yaml and CMakeLists.txt

This commit is contained in:
Andrea Cavalli 2020-11-15 14:22:33 +01:00
parent 5a144686e8
commit 07fc180b4a
2 changed files with 8 additions and 2 deletions

View File

@ -36,7 +36,7 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.SAFE_ARCH }}-ccache-
- name: Install build tools
run: sudo apt-get install -y make git zlib1g-dev libssl-dev gperf php-cli cmake clang-6.0 libc++-dev libc++abi-dev ccache
run: sudo apt-get install -y make git zlib1g-dev libssl-dev gperf php-cli cmake clang-6.0 libc++-dev libc++abi-dev ccache tree
- name: Build
run: |
mkdir build

View File

@ -152,6 +152,12 @@ if (NOT CMAKE_CROSSCOMPILING)
DEPENDS scheme/td_api.tl
)
add_dependencies(generate_td_api_tlo build_tl_parser)
add_custom_target(tree_test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND tree scheme
COMMENT "Debug output"
)
# End of .tlo update
find_program(PHP_EXECUTABLE php)
@ -173,7 +179,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 tree_test scheme/telegram_api.tlo scheme/secret_api.tlo ${TL_TD_API_TLO} DoxygenTlDocumentationGenerator.php
)
if (TD_ENABLE_JNI)
target_compile_definitions(generate_common PRIVATE TD_ENABLE_JNI=1)