JYCache/build.sh

27 lines
986 B
Bash
Raw Normal View History

2024-08-01 16:35:05 +08:00
#!/usr/bin/env bash
if [ ! -d "./thirdparties" ]; then
2024-08-16 16:01:19 +08:00
case $(uname -m) in
x86_64)
wget https://madstorage.s3.cn-north-1.jdcloud-oss.com/JYCache_Dendepency_x64.tgz
md5=`md5sum JYCache_Dendepency_x64.tgz | awk {'print $1'}`
if [ "$md5" != "48f67dd9b7bcb1b2bdd6be9f2283b714" ]; then
echo 'JYCache_Dendepency version inconsistency!'
exit 1
fi
tar -zxvf JYCache_Dendepency_x64.tgz
;;
aarch64)
wget https://madstorage.s3.cn-north-1.jdcloud-oss.com/JYCache_Dendepency_arm64.tgz
md5=`md5sum JYCache_Dendepency_arm64.tgz | awk {'print $1'}`
if [ "$md5" != "5c90ddd6b0849336adeccbdadf42f065" ]; then
echo 'JYCache_Dendepency version inconsistency!'
exit 1
fi
tar -zxvf JYCache_Dendepency_arm64.tgz
;;
esac
2024-08-01 16:35:05 +08:00
fi
mkdir -p build && cd build
cmake .. && cmake --build . -j 16