Skip to content

Commit

Permalink
build: optimized and fixed building configuration to Android
Browse files Browse the repository at this point in the history
PR-URL: #44016
Reviewed-By: Yash Ladha <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Christian Clauss <[email protected]>
Reviewed-By: Feng Yu <[email protected]>
  • Loading branch information
MeowShe authored and targos committed Sep 5, 2022
1 parent ec21a91 commit 03d10a3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions android-configure
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ NDK_PATH=$1
ARCH="$2"
ANDROID_SDK_VERSION=$3

if [ $ANDROID_SDK_VERSION -lt 23 ]; then
echo "$ANDROID_SDK_VERSION should equal or later than 23(Android 6.0)"
if [ $ANDROID_SDK_VERSION -lt 24 ]; then
echo "$ANDROID_SDK_VERSION should equal or later than 24 (Android 7.0)"
fi

CC_VER="4.9"

case $ARCH in
arm)
DEST_CPU="arm"
TOOLCHAIN_NAME="armv7-linux-androideabi"
TOOLCHAIN_NAME="armv7a-linux-androideabi"
;;
x86)
DEST_CPU="ia32"
Expand Down

0 comments on commit 03d10a3

Please sign in to comment.