1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

lz4 support in multiple builds (#946)

* Compress block candidates in validator-session

* Compress blocks in full-node (disabled for now)

* test pipeline with lz4

* tonlib compilation required lz4;
try win compile;

* install lz4 on mac.

* wip, test builds

* remove FindLZ4.cmake

* fix typo

* fix wasm lz4 path

* increase groovy timeout to 120 sec

* add lz4 for android and emscripten builds

* add lz4 for android and emscripten builds

* fix win build include path for lz4

* add precompiled lz4 for android

* cleanup

* adjust android include dir for lz4

* fix path for android arm of lz4

* cleanup

* minor fix

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
neodix42 2024-03-28 11:18:11 +04:00 committed by GitHub
parent 10487b1c71
commit b7849249c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 11004 additions and 68 deletions

View file

@ -15,7 +15,6 @@ if (NOT DEFINED CMAKE_INSTALL_LIBDIR)
endif()
find_package(PkgConfig REQUIRED)
find_package(LZ4)
if (NOT ZLIB_FOUND)
pkg_check_modules(ZLIB zlib)
endif()
@ -281,6 +280,10 @@ if (TDUTILS_MIME_TYPE)
)
endif()
if (NOT LZ4_FOUND)
pkg_check_modules(LZ4 REQUIRED liblz4)
endif()
if (LZ4_FOUND)
set(TD_HAVE_LZ4 1)
set(TDUTILS_SOURCE
@ -350,7 +353,9 @@ if (CRC32C_FOUND)
endif()
if (LZ4_FOUND)
message(STATUS "Found LZ4 ${LZ4_LIBRARIES} ${LZ4_INCLUDE_DIRS}")
target_link_libraries(tdutils PRIVATE ${LZ4_LIBRARIES})
target_include_directories(tdutils SYSTEM PRIVATE ${LZ4_INCLUDE_DIRS})
endif()
if (ABSL_FOUND)