summaryrefslogtreecommitdiffstats
path: root/build/android/envsetup.sh
diff options
context:
space:
mode:
authorshashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 00:29:14 +0000
committershashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 00:29:14 +0000
commit9f7b764cfc082b2ece3ea0db385240416cd8098d (patch)
tree3405a67072a765991b5967bade7e0e5f4c376d34 /build/android/envsetup.sh
parentbbae2c0c75897a4733394b7134db955e694ae591 (diff)
downloadchromium_src-9f7b764cfc082b2ece3ea0db385240416cd8098d.zip
chromium_src-9f7b764cfc082b2ece3ea0db385240416cd8098d.tar.gz
chromium_src-9f7b764cfc082b2ece3ea0db385240416cd8098d.tar.bz2
Remove redundant command line option.
--sdk option is no longer used or needed. BUG= Review URL: https://chromiumcodereview.appspot.com/11137023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/envsetup.sh')
-rwxr-xr-xbuild/android/envsetup.sh15
1 files changed, 2 insertions, 13 deletions
diff --git a/build/android/envsetup.sh b/build/android/envsetup.sh
index e381ac5..9083584 100755
--- a/build/android/envsetup.sh
+++ b/build/android/envsetup.sh
@@ -6,26 +6,17 @@
# Sets up environment for building Chromium on Android. It can either be
# compiled with the Android tree or using the Android SDK/NDK. To build with
-# NDK/SDK: ". build/android/envsetup.sh --sdk". Environment variable
+# NDK/SDK: ". build/android/envsetup.sh". Environment variable
# ANDROID_SDK_BUILD=1 will then be defined and used in the rest of the setup to
# specifiy build type.
# When building WebView as part of Android we can't use the SDK. Other builds
# default to using the SDK.
-# NOTE(yfriedman): This looks unnecessary but downstream the default value
-# should be 0 until all builds switch to SDK/NDK.
if [[ "${CHROME_ANDROID_BUILD_WEBVIEW}" -eq 1 ]]; then
export ANDROID_SDK_BUILD=0
else
export ANDROID_SDK_BUILD=1
fi
-# Loop over args in case we add more arguments in the future.
-while [ "$1" != "" ]; do
- case $1 in
- -s | --sdk ) export ANDROID_SDK_BUILD=1 ; shift ;;
- * ) shift ; break ;;
- esac
-done
if [[ "${ANDROID_SDK_BUILD}" -eq 1 ]]; then
echo "Using SDK build"
@@ -79,12 +70,10 @@ elif [[ -z "$ANDROID_BUILD_TOP" || \
echo " . build/envsetup.sh"
echo " lunch"
echo "Then try this again."
- echo "Or did you mean NDK/SDK build. Run envsetup.sh with --sdk argument."
+ echo "Or did you mean NDK/SDK build. Run envsetup.sh without any arguments."
return 1
elif [[ -n "$CHROME_ANDROID_BUILD_WEBVIEW" ]]; then
webview_build_init
-else
- non_sdk_build_init
fi
# Workaround for valgrind build