DEADSOFTWARE

Add CFLAGS_OPT check
authormittorn <mittorn@sibmail.com>
Sun, 24 May 2015 16:28:46 +0000 (23:28 +0700)
committermittorn <mittorn@sibmail.com>
Sun, 24 May 2015 16:28:46 +0000 (23:28 +0700)
Android.mk

index 7be1dc2793c5639c0614b3961dbf3048fab192fb..e7654fcf4e20e0aa3c4c1f1b1db4da1364afd050 100644 (file)
@@ -18,7 +18,15 @@ include $(CLEAR_VARS)
 
 LOCAL_MODULE    := NanoGL
 
-LOCAL_CFLAGS := -O2
+LOCAL_CFLAGS += $(CFLAGS_OPT)
+ifeq ($(TARGET_ARCH),arm)
+LOCAL_CFLAGS += $(CFLAGS_OPT_ARM)
+endif
+ifeq ($(TARGET_ARCH),x86)
+LOCAL_CFLAGS += $(CFLAGS_OPT_X86)
+endif
+
+LOCAL_CFLAGS +=
 
 LOCAL_C_INCLUDES := $(LOCAL_PATH)/GL