libcryfs/vendor/boost/android-build.sh

20 lines
624 B
Bash
Raw Normal View History

2022-06-21 18:38:52 +02:00
#!/bin/sh
2022-06-24 19:52:59 +02:00
if [ $(find build/$2/lib -name libboost_*.a 2>/dev/null |wc -l) -eq 10 ]; then
2022-06-22 18:20:03 +02:00
echo "boost already built for $2";
exit 0
fi
2022-06-22 22:32:05 +02:00
mkdir -p build && rm -rf build/$2 && cd Boost-for-Android || exit 1
2022-06-21 18:38:52 +02:00
2022-06-24 19:52:59 +02:00
BOOST_TAR=boost_1_77_0.tar.bz2
2022-06-21 18:38:52 +02:00
if [ ! -f $BOOST_TAR ]; then
2022-06-24 19:52:59 +02:00
wget -O $BOOST_TAR https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.bz2 || exit 1
2022-06-21 18:38:52 +02:00
fi
sha256sum -c ../checksum.txt && \
2022-06-24 19:52:59 +02:00
./build-android.sh --boost=1.77.0 --arch=$2 --target-version=21 \
2022-06-21 18:38:52 +02:00
--with-libraries=atomic,chrono,container,date_time,exception,filesystem,serialization,system,thread \
2022-06-22 22:32:05 +02:00
$1 && \
mv build/out/$2 ../build