diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/compressor/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/compressor/CMakeLists.txt')
-rw-r--r-- | src/compressor/CMakeLists.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/compressor/CMakeLists.txt b/src/compressor/CMakeLists.txt new file mode 100644 index 000000000..d8b9fd83c --- /dev/null +++ b/src/compressor/CMakeLists.txt @@ -0,0 +1,44 @@ + +set(compressor_srcs + Compressor.cc) +if (HAVE_QATZIP) + list(APPEND compressor_srcs QatAccel.cc) +endif() +add_library(compressor_objs OBJECT ${compressor_srcs}) + +## compressor plugins + +set(compressor_plugin_dir ${CEPH_INSTALL_PKGLIBDIR}/compressor) + +add_subdirectory(snappy) +add_subdirectory(zlib) +add_subdirectory(zstd) + +if(HAVE_LZ4) + add_subdirectory(lz4) +endif() + +if(HAVE_BROTLI) + add_subdirectory(brotli) +endif() + +add_library(compressor STATIC ${compressor_srcs}) +if(HAVE_QATZIP) + target_link_libraries(compressor PRIVATE ${QATZIP_LIBRARIES}) +endif() + +set(ceph_compressor_libs + ceph_snappy + ceph_zlib + ceph_zstd) + +if(HAVE_LZ4) + list(APPEND ceph_compressor_libs ceph_lz4) +endif() + +if(HAVE_BROTLI) + list(APPEND ceph_compressor_libs ceph_brotli) +endif() + +add_custom_target(compressor_plugins DEPENDS + ${ceph_compressor_libs}) |