mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-01 19:57:11 +01:00
call script from build.xml to generate Application.mk
This commit is contained in:
parent
f1f02df355
commit
f0bfbedfb9
2 changed files with 23 additions and 0 deletions
|
@ -51,6 +51,9 @@
|
||||||
|
|
||||||
<property name="INITIAL_CLIENT_VERS" value="3"/>
|
<property name="INITIAL_CLIENT_VERS" value="3"/>
|
||||||
<target name="-pre-clean">
|
<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">
|
<exec dir="." executable="../scripts/ndkbuild.sh" output="/dev/null">
|
||||||
<arg value="clean"/>
|
<arg value="clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -62,6 +65,10 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="-pre-build">
|
<target name="-pre-build">
|
||||||
|
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null">
|
||||||
|
<arg value="${build.target}"/>
|
||||||
|
</exec>
|
||||||
|
|
||||||
<property name="CHAT_ENABLED" value="true" />
|
<property name="CHAT_ENABLED" value="true" />
|
||||||
<exec dir="." executable="../scripts/ndkbuild.sh" failonerror="true">
|
<exec dir="." executable="../scripts/ndkbuild.sh" failonerror="true">
|
||||||
<arg value="BUILD_TARGET=${build.target}" />
|
<arg value="BUILD_TARGET=${build.target}" />
|
||||||
|
|
16
xwords4/android/scripts/ndksetup.sh
Executable file
16
xwords4/android/scripts/ndksetup.sh
Executable 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
|
Loading…
Add table
Reference in a new issue