NDK toolchain对应ABI

Android NDK:   This NDK supports the following toolchains and target ABIs:

Android NDK:    aarch64-linux-android-4.9:  arm64-v8a
Android NDK:    aarch64-linux-android-clang3.4:  arm64-v8a
Android NDK:    aarch64-linux-android-clang3.5:  arm64-v8a
Android NDK:    arm-linux-androideabi-4.6:  armeabi armeabi-v7a armeabi-v7a-hard
Android NDK:    arm-linux-androideabi-4.8:  armeabi armeabi-v7a armeabi-v7a-hard
Android NDK:    arm-linux-androideabi-4.9:  armeabi armeabi-v7a armeabi-v7a-hard
Android NDK:    arm-linux-androideabi-clang3.4:  armeabi armeabi-v7a armeabi-v7a-hard
Android NDK:    arm-linux-androideabi-clang3.5:  armeabi armeabi-v7a armeabi-v7a-hard
Android NDK:    mips64el-linux-android-4.9:  mips64
Android NDK:    mips64el-linux-android-clang3.4:  mips64
Android NDK:    mips64el-linux-android-clang3.5:  mips64
Android NDK:    mipsel-linux-android-4.6:  mips
Android NDK:    mipsel-linux-android-4.8:  mips
Android NDK:    mipsel-linux-android-4.9:  mips
Android NDK:    mipsel-linux-android-clang3.4:  mips
Android NDK:    mipsel-linux-android-clang3.5:  mips
Android NDK:    x86-4.6:  x86
Android NDK:    x86-4.8:  x86
Android NDK:    x86-4.9:  x86
Android NDK:    x86-clang3.4:  x86
Android NDK:    x86-clang3.5:  x86
Android NDK:    x86_64-4.9:  x86_64
Android NDK:    x86_64-clang3.4:  x86_64
Android NDK:    x86_64-clang3.5:  x86_64


可以在Application.mk中修改

# Build both ARMv5TE and ARMv7-A machine code.
#APP_ABI := armeabi
APP_ABI := armeabi-v7a
APP_PLATFORM := android-14
#APP_ABI := x86
#APP_STL := stlport_static
#APP_MODULES := Core TerraExplorerJNI
APP_STL := gnustl_static
APP_CPPFLAGS += -frtti -fexceptions

#APP_USE_CPP0X := true

# additional values for 4.6.3 toolchain
#APP_TOOLCHAIN_VERSION := 4.6.3

# additional values for 4.6.3 toolchain
#APP_TOOLCHAIN_VERSION := 4.8

#APP_TOOLCHAIN_VERSION := 4.8

#NDK_TOOLCHAIN :=  arm-linux-androideabi-4.8
#NDK_TOOLCHAIN :=  x86-4.8

APP_TOOLCHAIN_VERSION := clang
NDK_TOOLCHAIN := arm-linux-androideabi-4.6
#NDK_TOOLCHAIN := x86-clang3.3
NDK_TOOLCHAIN_VERSION := clang

你可能感兴趣的:(android)