!/bin/bash
objs=
rm libcryptopp-ios.a
#device
function build() {
for arch in $2
do
. ./setenv-ios.sh $1 ${arch} > /dev/null
make distclean
file=libcrypto-ios-$arch.a
if [ -e $file ]; then
rm $file
fi
make -j 8 -f GNUmakefile-cross && mv libcryptopp.a $file
if [ -e $file ]; then
objs+="${file} "
fi
done
}
build 'device' 'armv7 armv7s arm64'
build 'simulator' 'x86_64'
echo -e "lipo -create $objs -output libcryptopp-ios.a"
lipo -create $objs -output libcryptopp-ios.a
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.