parent
20433ae11b
commit
ef1585ea7c
|
@ -45,6 +45,18 @@ if( ANDROID_ABI STREQUAL "x86" )
|
|||
elseif( ANDROID_ABI STREQUAL "x86_64" )
|
||||
set( CMAKE_SYSTEM_PROCESSOR "x86_64" )
|
||||
set( ANDROID_TOOLCHAIN_NAME "x86_64-linux-android" )
|
||||
elseif( ANDROID_ABI STREQUAL "armeabi" )
|
||||
set( CMAKE_SYSTEM_PROCESSOR "armv5te" )
|
||||
set( ANDROID_TOOLCHAIN_NAME "arm-linux-androideabi" )
|
||||
elseif( ANDROID_ABI STREQUAL "aarch64" )
|
||||
set( CMAKE_SYSTEM_PROCESSOR "aarch64" )
|
||||
set( ANDROID_TOOLCHAIN_NAME "aarch64-linux-android" )
|
||||
elseif( ANDROID_ABI STREQUAL "mips" )
|
||||
set( CMAKE_SYSTEM_PROCESSOR "mips" )
|
||||
set( ANDROID_TOOLCHAIN_NAME "mipsel-linux-android" )
|
||||
elseif( ANDROID_ABI STREQUAL "mips64" )
|
||||
set( CMAKE_SYSTEM_PROCESSOR "mips64" )
|
||||
set( ANDROID_TOOLCHAIN_NAME "mips64el-linux-android" )
|
||||
else()
|
||||
message( SEND_ERROR "Unknown ANDROID_ABI = \"${ANDROID_ABI}\"." )
|
||||
endif()
|
||||
|
@ -101,4 +113,4 @@ set( CMAKE_FIND_ROOT_PATH "${ANDROID_TOOLCHAIN_DIR}/bin" "${ANDROID_TOOLCHAIN_DI
|
|||
# only search for libraries and includes in the ndk toolchain
|
||||
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
|
||||
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
|
||||
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
|
||||
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
|
||||
|
|
Loading…
Reference in New Issue