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 <yash@yashladha.in>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
  • Loading branch information
MeowShe authored and danielleadams committed Aug 16, 2022
1 parent eded43c commit 2b89d11
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 2b89d11

Please sign in to comment.