From d7cfd7621682115aaa4112e14068fed94f71a554 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 6 Sep 2010 11:30:24 +0000 Subject: Check for presence of the sdk and ndk (the corresponding env variables to be exact) in configure. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28003 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/configure b/tools/configure index 1742e28789..5d6d63ac88 100755 --- a/tools/configure +++ b/tools/configure @@ -95,6 +95,16 @@ app_get_platform() { if [ -n "$PREFIX" ]; then echo "WARNING: PREFIX not supported on Android. You can however use --rbdir" fi + if [ -z "$ANDROID_SDK_PATH" ]; then + echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH" + echo "environment variable point to the root directory of the Android SDK." + exit + fi + if [ -z "$ANDROID_NDK_PATH" ]; then + echo "ERROR: You need the Android NDK installed and have the ANDROID_NDK_PATH" + echo "environment variable point to the root directory of the Android NDK." + exit + fi rbdir="/data/data/org.rockbox/app_rockbox/rockbox" bindir="/data/data/org.rockbox/lib" bindir_full=$bindir -- cgit v1.2.3