From 551dd3879c288a2b6b6fbaca5c09c04fbe994ff4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 13 Dec 2022 09:15:19 +0100 Subject: Split stream compression out of libio Move it to a separate libxfrm library, where it can be independently tested as well. The bulk of the new code is also mainly test cases for the compressors. Signed-off-by: David Oberhollenzer --- lib/xfrm/Makemodule.am | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/xfrm/Makemodule.am (limited to 'lib/xfrm/Makemodule.am') diff --git a/lib/xfrm/Makemodule.am b/lib/xfrm/Makemodule.am new file mode 100644 index 0000000..a344820 --- /dev/null +++ b/lib/xfrm/Makemodule.am @@ -0,0 +1,27 @@ +libxfrm_a_SOURCES = include/xfrm/stream.h include/xfrm/compress.h +libxfrm_a_SOURCES += lib/xfrm/compress.c +libxfrm_a_CFLAGS = $(AM_CFLAGS) + +if WITH_XZ +libxfrm_a_SOURCES += lib/xfrm/xz.c +libxfrm_a_CFLAGS += $(XZ_CFLAGS) -DWITH_XZ +endif + +if WITH_BZIP2 +libxfrm_a_SOURCES += lib/xfrm/bzip2.c +libxfrm_a_CFLAGS += $(BZIP2_CFLAGS) -DWITH_BZIP2 +endif + +if WITH_GZIP +libxfrm_a_SOURCES += lib/xfrm/gzip.c +libxfrm_a_CFLAGS += $(ZLIB_CFLAGS) -DWITH_GZIP +endif + +if WITH_ZSTD +if HAVE_ZSTD_STREAM +libxfrm_a_SOURCES += lib/xfrm/zstd.c +libxfrm_a_CFLAGS += $(ZSTD_CFLAGS) -DWITH_ZSTD +endif +endif + +noinst_LIBRARIES += libxfrm.a -- cgit v1.2.3