diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/compressor/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/compressor/CMakeLists.txt')
-rw-r--r-- | src/compressor/CMakeLists.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/compressor/CMakeLists.txt b/src/compressor/CMakeLists.txt new file mode 100644 index 000000000..3e99f8b73 --- /dev/null +++ b/src/compressor/CMakeLists.txt @@ -0,0 +1,51 @@ + +set(compressor_srcs + Compressor.cc) +if (HAVE_QATZIP) + list(APPEND compressor_srcs QatAccel.cc) +endif() +add_library(compressor_objs OBJECT ${compressor_srcs}) +add_dependencies(compressor_objs common-objs) +if(HAVE_QATZIP AND HAVE_QATDRV) + target_link_libraries(compressor_objs PRIVATE + QatDrv::qat_s + QatDrv::usdm_drv_s + qatzip::qatzip + ) +endif() +add_dependencies(compressor_objs legacy-option-headers) + +## 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 $<TARGET_OBJECTS:compressor_objs>) +target_link_libraries(compressor PRIVATE compressor_objs) + +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}) |