From d165de44c89f0dcc88f0a196698744e08662e33f Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Fri, 3 May 2013 14:12:03 +0000 Subject: [PATCH] Check for third_party deps before compiling on android R=borenet@google.com Review URL: https://codereview.chromium.org/14803004 git-svn-id: http://skia.googlecode.com/svn/trunk@8984 2bbb7eff-a529-9590-31e7-b0007b416f81 --- platform_tools/android/bin/android_setup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh index 058d943..1ecb013 100755 --- a/platform_tools/android/bin/android_setup.sh +++ b/platform_tools/android/bin/android_setup.sh @@ -26,6 +26,17 @@ if [[ "$?" != "0" ]]; then exit 1 fi +# check to see that gclient sync ran successfully +THIRD_PARTY_EXTERNAL_DIR=${SCRIPT_DIR}/../third_party/externals +if [ ! -d "$ANDROID_TOOLCHAIN" ]; then + echo "" + echo "ERROR: Unable to find the required third_party dependencies needed to build." + echo " To fix this add the following line to your .gclient file and run 'gclient sync'" + echo " target_os = ['android']" + echo "" + exit 1; +fi + # determine the toolchain that we will be using API_LEVEL=14 -- 2.7.4