mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-18 21:44:02 +03:00
* Adds CompressInterfaceLZ4 which uses LZ4 API for compress/uncompress. * Adds CMake machinery to search LZ4 on running host. * All methods which use static data and do not modify any internal data - become `static`, so we can use them without creation of the specific object. This is possible, because the header specification has not been modified. We still use 2 sections in header, first one with file meta data, the second one with pointers for compressed chunks. * Methods `compress`, `uncompress`, `maxCompressedSize`, `getUncompressedSize` - become pure virtual, so we can override them for the other compression algos. * Adds method `getChunkMagicNumber`, so we can verify chunk magic number for each compression algo. * Renames "s/IDBCompressInterface/CompressInterface/g" according to requirement.
26 lines
408 B
CMake
26 lines
408 B
CMake
find_path(LZ4_ROOT_DIR
|
|
NAMES include/lz4.h
|
|
)
|
|
|
|
find_library(LZ4_LIBRARIES
|
|
NAMES lz4
|
|
HINTS ${LZ4_ROOT_DIR}/lib
|
|
)
|
|
|
|
find_path(LZ4_INCLUDE_DIR
|
|
NAMES lz4.h
|
|
HINTS ${LZ4_ROOT_DIR}/include
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(lz4 DEFAULT_MSG
|
|
LZ4_LIBRARIES
|
|
LZ4_INCLUDE_DIR
|
|
)
|
|
|
|
mark_as_advanced(
|
|
LZ4_ROOT_DIR
|
|
LZ4_LIBRARIES
|
|
LZ4_INCLUDE_DIR
|
|
)
|