blob: ca796205a2fc3261a52ccec8c559bb5efe239ad7 [file] [log] [blame]
cd $(dirname "$0")
rm -rf obj output-dir
export NDK_OUT=output-dir
$NDK/ndk-build "$@"
if [ -d obj ] ; then
echo "FAILURE: 'obj' directory should not be created by ndk-build!"
exit 1
fi
if [ ! -d output-dir ]; then
echo "FAILURE: 'output-dir' should have been created by ndk-build!"
exit 1
fi
rm -rf output-dir