27 lines
393 B
Plaintext
Executable File
27 lines
393 B
Plaintext
Executable File
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
|
|
|