call script from build.xml to generate Application.mk

This commit is contained in:
Eric House 2013-11-04 19:23:47 -08:00
parent f1f02df355
commit f0bfbedfb9
2 changed files with 23 additions and 0 deletions

View file

@ -51,6 +51,9 @@
<property name="INITIAL_CLIENT_VERS" value="3"/>
<target name="-pre-clean">
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null">
<arg value="${build.target}"/>
</exec>
<exec dir="." executable="../scripts/ndkbuild.sh" output="/dev/null">
<arg value="clean"/>
</exec>
@ -62,6 +65,10 @@
</target>
<target name="-pre-build">
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null">
<arg value="${build.target}"/>
</exec>
<property name="CHAT_ENABLED" value="true" />
<exec dir="." executable="../scripts/ndkbuild.sh" failonerror="true">
<arg value="BUILD_TARGET=${build.target}" />

View file

@ -0,0 +1,16 @@
#!/bin/sh
set -u -e
APPMK=./jni/Application.mk
XWORDS_DEBUG_ARMONLY=${XWORDS_DEBUG_ARMONLY:-""}
echo "# Generated by $0; do not edit!!!" > $APPMK
if [ "$1" = "release" ]; then
echo "APP_ABI := armeabi x86" >> $APPMK
elif [ -n "$XWORDS_DEBUG_ARMONLY" ]; then
echo "APP_ABI := armeabi" >> $APPMK
else
echo "APP_ABI := armeabi x86" >> $APPMK
fi