summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c72d76)
raw | patch | inline | side by side (parent: 1c72d76)
author | mittorn <mittorn@sibmail.com> | |
Wed, 12 Aug 2015 16:13:31 +0000 (23:13 +0700) | ||
committer | mittorn <mittorn@sibmail.com> | |
Wed, 12 Aug 2015 16:13:31 +0000 (23:13 +0700) |
Android.mk | patch | blob | history |
diff --git a/Android.mk b/Android.mk
index e7654fcf4e20e0aa3c4c1f1b1db4da1364afd050..11fc7cd270cc5f91635579cb2f63148cdccf542b 100644 (file)
--- a/Android.mk
+++ b/Android.mk
LOCAL_MODULE := NanoGL
LOCAL_CFLAGS += $(CFLAGS_OPT)
-ifeq ($(TARGET_ARCH),arm)
-LOCAL_CFLAGS += $(CFLAGS_OPT_ARM)
+ifeq ($(TARGET_ARCH_ABI),armeabi-v7a-hard)
+LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) -mfloat-abi=hard -mhard-float -DLOAD_HARDFP -DSOFTFP_LINK
endif
-ifeq ($(TARGET_ARCH),x86)
+ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
+LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) -mfloat-abi=softfp
+endif
+ifeq ($(TARGET_ARCH_ABI),armeabi)
+LOCAL_CFLAGS += $(CFLAGS_OPT_ARMv5)
+endif
+ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_CFLAGS += $(CFLAGS_OPT_X86)
endif