mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
add -pre-clean that invokes the jni's 'make clean'
This commit is contained in:
parent
542f10a3e5
commit
319c9da258
3 changed files with 13 additions and 2 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue