Created
March 31, 2023 11:29
-
-
Save AndnixSH/457dfc4e8d0c99e539bde6a04152fe6c to your computer and use it in GitHub Desktop.
Improved Android cryptopp script for building multiple architectures
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Improved Android cryptopp script for building multiple architectures | |
for arch in armeabi-v7a arm64-v8a x86 x86_64 | |
do | |
source /media/dell/1FC25DDD39B5C168/Project/cryptopp/TestScripts/setenv-android.sh 22 $arch | |
if [ "$?" -eq "0" ]; then | |
make -f GNUmakefile-cross distclean | |
make -f GNUmakefile-cross static dynamic | |
sudo make -f GNUmakefile-cross install PREFIX=/usr/local/cryptopp/android-$arch | |
mkdir -p ./lib/$arch && cp -rf ./libcryptopp.a ./lib/$arch/libcryptopp.a | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment