aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/android_setup.sh
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2015-07-24 13:15:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-24 13:15:59 -0700
commitd18b861061253c8691949379546a7f96c9e251c9 (patch)
tree205731c911992c2bb60acce4871213f488c6b8f0 /platform_tools/android/bin/android_setup.sh
parent1818acb6a4b11cd9a1d44ce5dde77452502a9796 (diff)
Update Android Apps to use gradle
This CL replaces ant with gradle for the task of building APKs. The primary driver of this change is that it now allow us to develop and test our apps using Android Studio. DOCS_PREVIEW= https://skia.org/?cl=1215023017 Committed: https://skia.googlesource.com/skia/+/425535f1626932e4e22f61a2571f9c3c2b1c5977 Review URL: https://codereview.chromium.org/1215023017
Diffstat (limited to 'platform_tools/android/bin/android_setup.sh')
-rwxr-xr-xplatform_tools/android/bin/android_setup.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh
index 94ae87f9a1..5396294c7f 100755
--- a/platform_tools/android/bin/android_setup.sh
+++ b/platform_tools/android/bin/android_setup.sh
@@ -70,6 +70,11 @@ if [ -z "$ANDROID_SDK_ROOT" ]; then
fi
fi
+if [ -z "$ANDROID_HOME" ]; then
+ echo "ANDROID_HOME not set so we are setting it to a default value of ANDROID_SDK_ROOT"
+ exportVar ANDROID_HOME $ANDROID_SDK_ROOT
+fi
+
# check to see that gclient sync ran successfully
THIRD_PARTY_EXTERNAL_DIR=${SCRIPT_DIR}/../third_party/externals
if [ ! -d "$THIRD_PARTY_EXTERNAL_DIR" ]; then