Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2807)

Unified Diff: build/android/envsetup.sh

Issue 10694048: Refactor and rename install-build-deps-android-sdk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rewrote script in python Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/envsetup.sh
diff --git a/build/android/envsetup.sh b/build/android/envsetup.sh
index 4a3f9fb9522ce9fcb4096572fca97b4c9e9fe77b..03f9402896568dce633935cc01da7b7151062ad2 100755
--- a/build/android/envsetup.sh
+++ b/build/android/envsetup.sh
@@ -10,24 +10,14 @@
# To run this script, the system environment ANDROID_NDK_ROOT must be set
# to Android NDK's root path.
#
-# TODO(michaelbai): Develop a standard for NDK/SDK integration.
-#
# If current path isn't the Chrome's src directory, CHROME_SRC must be set
# to the Chrome's src directory.
-if [ ! -d "${ANDROID_NDK_ROOT}" ]; then
- echo "ANDROID_NDK_ROOT must be set to the path of Android NDK, Revision 6b." \
- >& 2
- echo "which could be installed by" >& 2
- echo "<chromium_tree>/src/build/install-build-deps-android-sdk.sh" >& 2
- return 1
-fi
-
-if [ ! -d "${ANDROID_SDK_ROOT}" ]; then
- echo "ANDROID_SDK_ROOT must be set to the path of Android SDK, Android 3.2." \
- >& 2
- echo "which could be installed by" >& 2
- echo "<chromium_tree>/src/build/install-build-deps-android-sdk.sh" >& 2
+if [[ -z $ANDROID_NDK_ROOT || -z $ANDROID_SDK_ROOT \
John Grabowski 2012/07/17 18:38:15 If you don't quote these, then you will get the OP
Isaac (away) 2012/07/18 09:45:05 I thought quotes were unnecessary in double bracke
John Grabowski 2012/07/18 20:48:43 You tell me. Run the script below for a hint. #
+ || ! -d $ANDROID_NDK_ROOT || ! -d $ANDROID_SDK_ROOT ]]; then
+ echo "SDK / NDK paths not set or not installed." >&2
+ echo "To install: set ANDROID_SDK_ROOT and ANDROID_NDK_ROOT and run" >&2
+ echo "<chromium>/build/install_android_sdk_ndk.py" >&2
return 1
fi

Powered by Google App Engine
This is Rietveld 408576698