DEADSOFTWARE

Update Android.mk
authormittorn <mittorn@sibmail.com>
Wed, 12 Aug 2015 16:13:31 +0000 (23:13 +0700)
committermittorn <mittorn@sibmail.com>
Wed, 12 Aug 2015 16:13:31 +0000 (23:13 +0700)
Android.mk

index e7654fcf4e20e0aa3c4c1f1b1db4da1364afd050..11fc7cd270cc5f91635579cb2f63148cdccf542b 100644 (file)
@@ -19,10 +19,16 @@ include $(CLEAR_VARS)
 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