libcryfs/vendor/cryptopp/android-build.sh

15 lines
337 B
Bash
Raw Normal View History

2022-06-09 15:26:04 +02:00
#!/usr/bin/env bash
if [ -f "vendor_cryptopp/build/$2/libcryptopp.a" ]; then
echo "Crypto++ already built for $2";
exit 0;
fi
export ANDROID_NDK_ROOT=$1 && \
cd vendor_cryptopp && \
make clean && \
mkdir -p build/$2 && \
source TestScripts/setenv-android.sh 21 $2 && \
make -f GNUmakefile-cross static && \
mv libcryptopp.a build/$2