mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +01:00
set DEBUG when building ndk based on target in build.xml
This commit is contained in:
parent
0e6b211a76
commit
49ab62d521
2 changed files with 6 additions and 4 deletions
|
@ -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"
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue