X-Git-Url: http://deadsoftware.ru/gitweb?p=nanogl.git;a=blobdiff_plain;f=Android.mk;h=11fc7cd270cc5f91635579cb2f63148cdccf542b;hp=e7654fcf4e20e0aa3c4c1f1b1db4da1364afd050;hb=7f98a7cc3783914ac87ffc7a0a6547aba633015e;hpb=1c72d767f6852549eff9bd14f21a5a9f4a204795 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