Skip to content

Instantly share code, notes, and snippets.

@AndnixSH
Created March 31, 2023 11:29
Show Gist options
  • Save AndnixSH/457dfc4e8d0c99e539bde6a04152fe6c to your computer and use it in GitHub Desktop.
Save AndnixSH/457dfc4e8d0c99e539bde6a04152fe6c to your computer and use it in GitHub Desktop.
Improved Android cryptopp script for building multiple architectures
#!/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