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:
parent
10487b1c71
commit
b7849249c6
38 changed files with 11004 additions and 68 deletions
|
@ -1,39 +0,0 @@
|
|||
###############################################################################
|
||||
# Find LZ4
|
||||
#
|
||||
# This sets the following variables:
|
||||
# LZ4_FOUND - True if LZ4 was found.
|
||||
# LZ4_INCLUDE_DIRS - Directories containing the LZ4 include files.
|
||||
# LZ4_LIBRARIES - Libraries needed to use LZ4.
|
||||
# LZ4_LIBRARY - Library needed to use LZ4.
|
||||
# LZ4_LIBRARY_DIRS - Library needed to use LZ4.
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
# If found, LZ$_* variables will be defined
|
||||
pkg_check_modules(LZ4 REQUIRED liblz4)
|
||||
|
||||
if(NOT LZ4_FOUND)
|
||||
find_path(LZ4_INCLUDE_DIR lz4.h
|
||||
HINTS "${LZ4_ROOT}" "$ENV{LZ4_ROOT}"
|
||||
PATHS "$ENV{PROGRAMFILES}/lz4" "$ENV{PROGRAMW6432}/lz4"
|
||||
PATH_SUFFIXES include)
|
||||
|
||||
find_library(LZ4_LIBRARY
|
||||
NAMES lz4 lz4_static
|
||||
HINTS "${LZ4_ROOT}" "$ENV{LZ4_ROOT}"
|
||||
PATHS "$ENV{PROGRAMFILES}/lz4" "$ENV{PROGRAMW6432}/lz4"
|
||||
PATH_SUFFIXES lib)
|
||||
|
||||
if(LZ4_LIBRARY)
|
||||
set(LZ4_LIBRARIES ${LZ4_LIBRARY})
|
||||
get_filename_component(LZ4_LIBRARY_DIRS ${LZ4_LIBRARY} DIRECTORY)
|
||||
endif()
|
||||
else()
|
||||
find_library(LZ4_LIBRARY
|
||||
NAMES lz4 lz4_static
|
||||
PATHS ${LZ4_LIBRARY_DIRS}
|
||||
NO_DEFAULT_PATH)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(LZ4_LIBRARY LZ4_INCLUDE_DIRS LZ4_LIBRARY_DIRS LZ4_LIBRARIES)
|
Loading…
Add table
Add a link
Reference in a new issue