Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/cmake/platforms/Android.cmake
Show All 35 Lines | |||||
remove_definitions( -DANDROID -D__ANDROID__ ) | remove_definitions( -DANDROID -D__ANDROID__ ) | ||||
add_definitions( -DANDROID -D__ANDROID_NDK__ -DLLDB_DISABLE_LIBEDIT ) | add_definitions( -DANDROID -D__ANDROID_NDK__ -DLLDB_DISABLE_LIBEDIT ) | ||||
set( ANDROID True ) | set( ANDROID True ) | ||||
set( __ANDROID_NDK__ True ) | set( __ANDROID_NDK__ True ) | ||||
set( ANDROID_ABI "${ANDROID_ABI}" CACHE INTERNAL "Android Abi" FORCE ) | set( ANDROID_ABI "${ANDROID_ABI}" CACHE INTERNAL "Android Abi" FORCE ) | ||||
if( ANDROID_ABI STREQUAL "x86" ) | if( ANDROID_ABI STREQUAL "x86" ) | ||||
set( CMAKE_SYSTEM_PROCESSOR "i686" ) | set( CMAKE_SYSTEM_PROCESSOR "i686" ) | ||||
set( ANDROID_TOOLCHAIN_NAME "x86-linux-android" ) | set( ANDROID_TOOLCHAIN_NAME "i686-linux-android" ) | ||||
elseif( ANDROID_ABI STREQUAL "x86_64" ) | elseif( ANDROID_ABI STREQUAL "x86_64" ) | ||||
set( CMAKE_SYSTEM_PROCESSOR "x86_64" ) | set( CMAKE_SYSTEM_PROCESSOR "x86_64" ) | ||||
set( ANDROID_TOOLCHAIN_NAME "x86_64-linux-android" ) | set( ANDROID_TOOLCHAIN_NAME "x86_64-linux-android" ) | ||||
elseif( ANDROID_ABI STREQUAL "armeabi" ) | elseif( ANDROID_ABI STREQUAL "armeabi" ) | ||||
set( CMAKE_SYSTEM_PROCESSOR "armv5te" ) | set( CMAKE_SYSTEM_PROCESSOR "armv5te" ) | ||||
set( ANDROID_TOOLCHAIN_NAME "arm-linux-androideabi" ) | set( ANDROID_TOOLCHAIN_NAME "arm-linux-androideabi" ) | ||||
elseif( ANDROID_ABI STREQUAL "aarch64" ) | elseif( ANDROID_ABI STREQUAL "aarch64" ) | ||||
set( CMAKE_SYSTEM_PROCESSOR "aarch64" ) | set( CMAKE_SYSTEM_PROCESSOR "aarch64" ) | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |