From: mittorn Date: Wed, 12 Aug 2015 16:13:31 +0000 (+0700) Subject: Update Android.mk X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=7f98a7cc3783914ac87ffc7a0a6547aba633015e;p=nanogl.git Update Android.mk --- diff --git a/Android.mk b/Android.mk index e7654fc..11fc7cd 100644 --- a/Android.mk +++ b/Android.mk @@ -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