modified Android build to allow between a DEBUG vs RELEASE build of the native code. When doing an ndk build run the following to do a release build 'DEBUG=RELEASE ndk-build'

This commit is contained in:
techdragon.nguyen@gmail.com
2012-04-17 11:24:02 +00:00
parent 7711badc39
commit f80127dff3
3 changed files with 8 additions and 4 deletions

View File

@@ -11,8 +11,9 @@ SDL_PATH := $(JGE_PATH)/Dependencies/SDL
BOOST_PATH := $(MY_WAGIC_ROOT)/Boost
JPEG_PATH := $(JGE_PATH)/Dependencies/libjpeg
PNG_PATH := $(JGE_PATH)/Dependencies/libpng
DEBUG ?= DEBUG
LOCAL_CFLAGS += -DLINUX -DANDROID -DSDL_CONFIG -D_DEBUG
LOCAL_CFLAGS += -DLINUX -DANDROID -DSDL_CONFIG -D_$(DEBUG)
LOCAL_CFLAGS += -D_STLP_USE_SIMPLE_NODE_ALLOC
LOCAL_CFLAGS += -D__arm__ -D_REENTRANT -D_GLIBCXX__PTHREADS
LOCAL_STATIC_LIBRARIES := libpng libjpeg
@@ -191,4 +192,4 @@ include $(CLEAR_VARS)
# SDL dynamic lib
include $(MY_LOCAL_PATH)/$(SDL_PATH)/Android.mk
include $(CLEAR_VARS)
include $(CLEAR_VARS)