2016-06-23 22:18:13 +03:00
|
|
|
# <ndk>/build/core/toolchains/arm-linux-androideabi-clang/setup.mk
|
2016-06-02 22:10:05 +03:00
|
|
|
set(_ANDROID_ABI_CLANG_TARGET "armv7-none-linux-androideabi")
|
2016-06-02 22:11:42 +03:00
|
|
|
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_CFLAGS
|
|
|
|
" -march=armv7-a"
|
|
|
|
)
|
|
|
|
|
|
|
|
if(CMAKE_ANDROID_ARM_MODE)
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_CFLAGS " -marm")
|
|
|
|
else()
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mthumb")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CMAKE_ANDROID_ARM_NEON)
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mfpu=neon")
|
|
|
|
else()
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mfpu=vfpv3-d16")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_LDFLAGS
|
|
|
|
" -Wl,--fix-cortex-a8"
|
|
|
|
)
|
|
|
|
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_CFLAGS
|
|
|
|
" -mfloat-abi=softfp"
|
|
|
|
" -fpic"
|
|
|
|
)
|
|
|
|
|
2016-06-23 22:18:13 +03:00
|
|
|
include(Platform/Android/abi-common-Clang)
|