diff --git a/tools/autobuild/eclipse-debug.sh b/tools/autobuild/eclipse-debug.sh new file mode 100644 index 0000000000..fb4622b5f0 --- /dev/null +++ b/tools/autobuild/eclipse-debug.sh @@ -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 \ No newline at end of file