add -pre-clean that invokes the jni's 'make clean'

This commit is contained in:
Eric House 2012-03-05 19:07:49 -08:00
parent 542f10a3e5
commit 319c9da258
3 changed files with 13 additions and 2 deletions

View file

@ -49,6 +49,12 @@
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<target name="-pre-clean">
<exec dir="." executable="../scripts/ndkbuild.sh" output="/dev/null" >
<arg value="clean"/>
</exec>
</target>
<target name="-pre-build">
<exec dir="." executable="../scripts/mkvariant.sh" output="/dev/null" >
<arg value="--variant-name"/>

View file

@ -49,6 +49,12 @@
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<target name="-pre-clean">
<exec dir="." executable="../scripts/ndkbuild.sh" output="/dev/null">
<arg value="clean"/>
</exec>
</target>
<target name="-pre-build">
<exec dir="." executable="../scripts/ndkbuild.sh" >
<arg value="-j3"/>

View file

@ -16,9 +16,8 @@ usage() {
do_build() {
WD=$(pwd)
cd $(dirname $0)/../${VARIANT}/
touch jni/Android.mk
rm -rf bin/ gen/
ant release
ant clean release
cd $WD
}