flatten 20260225
This commit is contained in:
26
resources/packages/zstd/prepare
Executable file
26
resources/packages/zstd/prepare
Executable file
@@ -0,0 +1,26 @@
|
||||
set -x
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=zstd
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone --depth 1 https://github.com/facebook/zstd --branch v1.5.6
|
||||
|
||||
cp -av $DIR/Makefile.project zstd/
|
||||
rm $LIB/Makefile
|
||||
ln -s $DIR/../../Makefile-template $LIB/Makefile
|
||||
|
||||
pushd zstd
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -fs ../../zstd/zstd/lib zstd
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user