1 Star 0 Fork 3

Kunpeng/zstd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
kzstar_build.sh 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
lauyarn 提交于 2024-10-11 02:25 . update shell script
#!/bin/sh
set -e
SRC_PATH=$(pwd)
print_help()
{
echo "--------------------------build kzstar Parameters:------------------------------------"
echo "sh kzstar_build.sh install | 编译安装zstd和kzstar"
echo "sh kzstar_build.sh clean | 清理环境"
echo "--------------------------------------------------------------------------------------"
return
}
clear_env()
{
rm -rf /usr/local/kzstar/
rm -rf ./zstar.h
rm -rf ./libsecurec.so
rm -rf ./libzstar.so
make clean
}
unpackzstar(){
print_help
rm -rf /usr/local/kzstar/
mkdir -p /usr/local/kzstar/lib
mkdir -p /usr/local/kzstar/include
unzip BoostKit-KZstar_1.0.0.zip
cp ./zstar.h /usr/local/kzstar/include
cp ./libsecurec.so /usr/local/kzstar/lib
cp ./libzstar.so /usr/local/kzstar/lib
}
buildzstd(){
make -j64
cp ./lib/libzstd.so.1.5.2 /usr/local/kzstar/lib
cp ./lib/zstd.h /usr/local/kzstar/include
cd /usr/local/kzstar/lib
ln -s libzstd.so.1.5.2 libzstd.so
ln -s libzstd.so.1.5.2 libzstd.so.1
cd -
}
function main()
{
if [ "$1" = "install" ];then
echo "build zstar"
unpackzstar
buildzstd
elif [ "$1" = "help" ];then
print_help
elif [ "$1" = "clean" ];then
echo "clean evp"
clear_env
else
print_help
fi
}
main "$@"
exit $?
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kunpengcompute/zstd.git
[email protected]:kunpengcompute/zstd.git
kunpengcompute
zstd
zstd
Kzstar_1.5.2

搜索帮助