Android example: avoid usage of case, which doesn't seem to work in outdated default bash on macOS.
This commit is contained in:
parent
b52e3e0e12
commit
d2348e3c97
@ -66,12 +66,15 @@ for ABI in arm64-v8a armeabi-v7a x86_64 x86 ; do
|
|||||||
mkdir -p tdlib/libs/$ABI/ || exit 1
|
mkdir -p tdlib/libs/$ABI/ || exit 1
|
||||||
cp -p build-$ABI/libtd*.so* tdlib/libs/$ABI/ || exit 1
|
cp -p build-$ABI/libtd*.so* tdlib/libs/$ABI/ || exit 1
|
||||||
if [[ "$ANDROID_STL" == "c++_shared" ]] ; then
|
if [[ "$ANDROID_STL" == "c++_shared" ]] ; then
|
||||||
FULL_ABI=$(case $ABI in
|
if [[ "$ABI" == "arm64-v8a" ]] ; then
|
||||||
"arm64-v8a") echo "aarch64-linux-android" ;;
|
FULL_ABI="aarch64-linux-android"
|
||||||
"armeabi-v7a") echo "arm-linux-androideabi" ;;
|
elif [[ "$ABI" == "armeabi-v7a" ]] ; then
|
||||||
"x86_64") echo "x86_64-linux-android" ;;
|
FULL_ABI="arm-linux-androideabi"
|
||||||
"x86") echo "i686-linux-android" ;;
|
elif [[ "$ABI" == "x86_64" ]] ; then
|
||||||
esac)
|
FULL_ABI="x86_64-linux-android"
|
||||||
|
elif [[ "$ABI" == "x86" ]] ; then
|
||||||
|
FULL_ABI="i686-linux-android"
|
||||||
|
fi
|
||||||
cp "$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/$HOST_ARCH/sysroot/usr/lib/$FULL_ABI/libc++_shared.so" tdlib/libs/$ABI/ || exit 1
|
cp "$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/$HOST_ARCH/sysroot/usr/lib/$FULL_ABI/libc++_shared.so" tdlib/libs/$ABI/ || exit 1
|
||||||
"$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/$HOST_ARCH/bin/llvm-strip" tdlib/libs/$ABI/libc++_shared.so || exit 1
|
"$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/$HOST_ARCH/bin/llvm-strip" tdlib/libs/$ABI/libc++_shared.so || exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user