integrate zstd

This commit is contained in:
2024-04-18 02:54:06 +00:00
parent 27233fb8ef
commit 0c0d4684bb
5 changed files with 12 additions and 1 deletions

View File

@ -73,6 +73,14 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(sockpp)
FetchContent_Declare(
zstd
URL_HASH SHA256=3b1c3b46e416d36931efd34663122d7f51b550c87f74de2d38249516fe7d8be5
URL ${CMAKE_SOURCE_DIR}/deps/zstd-v1.5.6-mirror.zip
SOURCE_SUBDIR build/cmake
)
FetchContent_MakeAvailable(zstd)
include_directories(${CMAKE_SOURCE_DIR}/bpt/include)
include_directories(${CMAKE_SOURCE_DIR}/stlite)

BIN
deps/zstd-v1.5.6-mirror.zip vendored Normal file

Binary file not shown.

View File

@ -28,4 +28,5 @@ ___
- argparse提供优雅的命令行参数解析
- googletest调试用
- spdlog运行日志调试用不是数据库系统日志
- sockpp服务器模式下与Python交互用
- sockpp服务器模式下与Python交互用
- zstd为快照系统提供数据压缩只使用最基本的压缩功能不借用其patch功能

View File

@ -7,4 +7,5 @@ add_executable(${BACKEND_EXETUABLE_NAME} main.cpp)
target_link_libraries(${BACKEND_EXETUABLE_NAME} argparse)
target_link_libraries(${BACKEND_EXETUABLE_NAME} spdlog::spdlog)
target_link_libraries(${BACKEND_EXETUABLE_NAME} sockpp)
target_link_libraries(${BACKEND_EXETUABLE_NAME} libzstd_static)
set_target_properties(${BACKEND_EXETUABLE_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

View File

@ -1,4 +1,5 @@
#include <sockpp/tcp_acceptor.h>
#include <zstd.h>
#include "basic_defs.h"
const std::string main_version = "0.0.1";
const std::string build_version = GIT_COMMIT_HASH;