set DEBUG when building ndk based on target in build.xml

This commit is contained in:
Eric House 2013-08-29 07:28:08 -07:00
parent 0e6b211a76
commit 49ab62d521
2 changed files with 6 additions and 4 deletions

View file

@ -58,8 +58,10 @@
<target name="-pre-build"> <target name="-pre-build">
<exec dir="." executable="../scripts/ndkbuild.sh" > <exec dir="." executable="../scripts/ndkbuild.sh" >
<arg value="BUILD_TARGET=${build.target}" />
<arg value="-j3"/> <arg value="-j3"/>
<arg value="INITIAL_CLIENT_VERS=${INITIAL_CLIENT_VERS}" /> <arg value="INITIAL_CLIENT_VERS=${INITIAL_CLIENT_VERS}" />
</exec> </exec>
<exec dir="." executable="../scripts/gen_gcmid.sh" <exec dir="." executable="../scripts/gen_gcmid.sh"
output="src/org/eehouse/android/xw4/GCMConsts.java" output="src/org/eehouse/android/xw4/GCMConsts.java"

View file

@ -10,7 +10,9 @@ local_C_INCLUDES+= \
local_LDLIBS += -llog local_LDLIBS += -llog
# local_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DCOMMS_CHECKSUM ifeq ($(BUILD_TARGET),debug)
local_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DCOMMS_CHECKSUM
endif
local_DEFINES += \ local_DEFINES += \
$(local_DEBUG) \ $(local_DEBUG) \
-DXWFEATURE_RELAY \ -DXWFEATURE_RELAY \
@ -82,5 +84,3 @@ LOCAL_MODULE := xwjni
LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog -lz LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog -lz
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)