diff options
Diffstat (limited to 'Modules/Platform/Android/abi-armeabi-Clang.cmake')
-rw-r--r-- | Modules/Platform/Android/abi-armeabi-Clang.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/Platform/Android/abi-armeabi-Clang.cmake b/Modules/Platform/Android/abi-armeabi-Clang.cmake index eb703f5..4fc3009 100644 --- a/Modules/Platform/Android/abi-armeabi-Clang.cmake +++ b/Modules/Platform/Android/abi-armeabi-Clang.cmake @@ -1,3 +1,20 @@ # <ndk>/build/core/toolchains/arm-linux-androideabi-clang/setup.mk set(_ANDROID_ABI_CLANG_TARGET "armv5te-none-linux-androideabi") + +string(APPEND _ANDROID_ABI_INIT_CFLAGS + " -march=armv5te" + ) + +if(CMAKE_ANDROID_ARM_MODE) + string(APPEND _ANDROID_ABI_INIT_CFLAGS " -marm") +else() + string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mthumb") +endif() + +string(APPEND _ANDROID_ABI_INIT_CFLAGS + " -msoft-float" + " -mtune=xscale" + " -fpic" + ) + include(Platform/Android/abi-common-Clang) |