2022-06-22 22:32:05 +02:00
|
|
|
#!/usr/bin/env bash
|
2022-06-21 18:38:52 +02:00
|
|
|
|
2022-06-23 16:55:19 +02:00
|
|
|
if [ -f "vendor_cryptopp/build/$2/libcryptopp.a" ]; then
|
|
|
|
echo "Crypto++ already built for $2";
|
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
2022-06-22 22:32:05 +02:00
|
|
|
export ANDROID_NDK_ROOT=$1 && \
|
2022-06-21 18:38:52 +02:00
|
|
|
cd vendor_cryptopp && \
|
2022-06-23 16:55:19 +02:00
|
|
|
make clean && \
|
2022-06-22 22:32:05 +02:00
|
|
|
mkdir -p build/$2 && \
|
|
|
|
source TestScripts/setenv-android.sh 21 $2 && \
|
|
|
|
make -f GNUmakefile-cross static && \
|
|
|
|
mv libcryptopp.a build/$2
|