summaryrefslogtreecommitdiff
path: root/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Android/abi-armeabi-v6-GNU.cmake')
-rw-r--r--Modules/Platform/Android/abi-armeabi-v6-GNU.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake b/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
new file mode 100644
index 000000000..1fda184b6
--- /dev/null
+++ b/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
@@ -0,0 +1,16 @@
+# <ndk>/build/core/toolchains/arm-linux-androideabi-4.9/setup.mk
+string(APPEND _ANDROID_ABI_INIT_CFLAGS
+ " -march=armv6"
+ )
+
+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
+ " -mfloat-abi=softfp"
+ )
+
+include(Platform/Android/abi-common-GNU)