You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while [ -h"$SOURCE" ];do# resolve $SOURCE until the file is no longer a symlink
DIR="$(cd -P "$( dirname "$SOURCE")"&&pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE!= /* ]] && SOURCE="$DIR/$SOURCE"# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$(cd -P "$( dirname "$SOURCE")"&&pwd)"
if [ "$SRC_DIR"=="$DIR" ]
then
echo"You must use a separate directory for building."
echo"(try 'mkdir build; cd build; ../configure.sh')"
exit 1
fi
# -------
# Openssl
# -------
# This steps are based on the official openssl build instructions
# http://wiki.openssl.org/index.php/Android
if [ "${DO_OPENSSL}"=="1" ];then (
if [ !-d"openssl" ];then mkdir openssl;fi
cd openssl
cp -af "${DIR}/openssl/.".
make all ANDROID_NDK="${NDK_DIR}" ANDROID_TOOLCHAIN=clang ANDROID_ABI=armeabi-v7a OPENSSL_PREFIX=armeabi-v7a OPENSSL_VERSION=$OPENSSLVER -j $NCPU
make all ANDROID_NDK="${NDK_DIR}" ANDROID_TOOLCHAIN=clang ANDROID_ABI=x86 OPENSSL_PREFIX=x86 OPENSSL_VERSION=$OPENSSLVER -j $NCPU
) fi
# -----
# Boost
# -----
# Uses the build script from Moritz Wundke (formerly MysticTreeGames)