make-release-build: make sure ndk-build can be found

This commit is contained in:
Hans-Christoph Steiner 2016-01-14 21:08:46 +01:00
parent 58d53ea347
commit 5c86b5cc7e
1 changed files with 10 additions and 1 deletions

View File

@ -35,6 +35,15 @@ if [ -z $ANDROID_HOME ]; then
fi
fi
if [ -z $ANDROID_NDK_HOME ]; then
if which ndk-build 2>&1 /dev/null; then
ANDROID_NDK_HOME=`which ndk-build | sed 's,/ndk-build,,'`
else
echo "ANDROID_NDK_HOME not set and 'ndk-build' not in PATH"
exit
fi
fi
projectroot=`pwd`
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml`
@ -61,7 +70,7 @@ else
echo "skipping release ant.properties"
fi
ndk-build
$ANDROID_NDK_HOME/ndk-build
faketime "$TIMESTAMP" make -C external