xwords/xwords4/android/scripts/ndksetup.sh

20 lines
487 B
Bash
Raw Normal View History

#!/bin/sh
set -u -e
APPMK=./jni/Application.mk
XWORDS_DEBUG_ARMONLY=${XWORDS_DEBUG_ARMONLY:-""}
2013-11-05 15:36:16 +01:00
XWORDS_DEBUG_X86ONLY=${XWORDS_DEBUG_X86ONLYx:-""}
echo "# Generated by $0; do not edit!!!" > $APPMK
if [ "$1" = "release" ]; then
echo "APP_ABI := armeabi x86" >> $APPMK
elif [ -n "$XWORDS_DEBUG_ARMONLY" ]; then
echo "APP_ABI := armeabi" >> $APPMK
2013-11-05 15:36:16 +01:00
elif [ -n "$XWORDS_DEBUG_X86ONLY" ]; then
echo "APP_ABI := x86" >> $APPMK
else
echo "APP_ABI := armeabi x86" >> $APPMK
fi