Files
CMake/Modules/Platform/Android/abi-armeabi-v7a-Clang.cmake
Haibo Huang 85e5139aba Android: Move *_LLVM_TRIPLE to the centralized table
This allows us to skip `abi-*.cmake` in the next change.
In the future we may move all this information to the NDK.
2020-11-05 19:45:09 -08:00

26 lines
552 B
CMake

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"
)
include(Platform/Android/abi-common-Clang)