[android] Added eclipse NDK script

See https://dl.dropboxusercontent.com/u/24013616/eclipse-ndk-config.png
This commit is contained in:
Alex Zolotarev 2014-03-11 18:47:19 +03:00 committed by Alex Zolotarev
parent 63682a5cda
commit 5f70ce2e67

View file

@ -0,0 +1,18 @@
# Add it to Eclipse MWM Library properties -> Debug configuration -> Build command
set -e -u -x
LOCAL_DIRNAME="$(dirname "$0")"
# We DO NOT clean native C++ libs for faster Eclipse builds
if [[ "$1" != "clean" ]] ; then
bash $LOCAL_DIRNAME/android.sh debug armeabi
fi
source "$LOCAL_DIRNAME/ndk_helper.sh"
if [[ "$1" != "clean" ]] ; then
$(GetNdkRoot)/ndk-build APP_ABI=armeabi V=1 NDK_DEBUG=1 DEBUG=1
else
$(GetNdkRoot)/ndk-build clean V=1 NDK_DEBUG=1 DEBUG=1
fi