Commit f0d2ce1d authored by Rafaël Carré's avatar Rafaël Carré

List all options for ANDROID_ABI if it's not been set

Give a separate error message for missing ANDROID_ABI
It might require 2 consecutive runs of compile.sh, but should
be clearer for the newcomer
parent 5fdbe2ca
......@@ -6,12 +6,17 @@
set -e
if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" -o -z "$ANDROID_ABI" ]; then
if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
echo "You must define ANDROID_NDK, ANDROID_SDK and ANDROID_ABI before starting."
echo "They must point to your NDK and SDK directories.\n"
echo "ANDROID_ABI should match your ABI: armeabi-v7a, armeabi or ..."
exit 1
fi
if [ -z "$ANDROID_ABI" ]; then
echo "Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi, x86 or mips."
exit 1
fi
# try to detect NDK version
REL=$(grep -o '^r[0-9]*.*' $ANDROID_NDK/RELEASE.TXT 2>/dev/null|cut -b2-)
case "$REL" in
......
#!/bin/sh
if [ -z "$ANDROID_NDK" -o -z "$ANDROID_ABI" ]; then
echo "Please set the ANDROID_NDK environment variable with its path.\n"
echo "ANDROID_ABI should match your ABI: armeabi-v7a, armeabi or ..."
if [ -z "$ANDROID_NDK" ]; then
echo "Please set the ANDROID_NDK environment variable with its path."
exit 1
fi
if [ -z "$ANDROID_ABI" ]; then
echo "Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi, x86 or mips."
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment