BUILD: Add support for XXHASH in regular make build.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2021-11-19 08:44:01 -03:00
parent 8eca13d556
commit e92db065ca
2 changed files with 12 additions and 2 deletions

View File

@ -155,8 +155,15 @@ endif
LIBS += -lhdf5_fortran -lhdf5
endif
# compression for binary files of the XML+binary format
# data hashing and compression support for XML+binary format
#
ifeq ($(XXHASH),Y)
FFLAGS += -DXXHASH
ifneq ($(XXHASHDIR),)
LIBS += -L$(XXHASHDIR)/lib
endif
LIBS += -lxxhash
endif
ifeq ($(ZSTD),Y)
FFLAGS += -DZSTD
ifneq ($(ZSTDDIR),)

View File

@ -26,12 +26,15 @@ MPI = N
#
OUTPUT =
# compression support for XML+binary format:
# data hashing and compression support for XML+binary format:
#
# XXHASH - use external libxxhash for calculating data digests;
# if XXHASH = N, the internal implementation is used;
# ZSTD - enable support for Zstandard compression;
# LZ4 - enable support for LZ4 compression;
# LZMA - enable support for LZMA compression;
#
XXHASH = N
ZSTD = N
LZ4 = N
LZMA = N