Commit 4e2e2e2a authored by michaelbai@google.com's avatar michaelbai@google.com

Add Android SDK to system path

As the requirement of third_party/android/testrunner, the Android SDK needs in the system path.

BUG=
TEST=

Review URL: http://codereview.chromium.org/8380026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107130 0039d316-1c4b-4281-b951-d872f2087c98
parent f8ba13dd
...@@ -18,8 +18,16 @@ ...@@ -18,8 +18,16 @@
if [ ! -d "${ANDROID_NDK_ROOT}" ]; then if [ ! -d "${ANDROID_NDK_ROOT}" ]; then
echo "ANDROID_NDK_ROOT must be set to the path of Android NDK, Revision 6b." \ echo "ANDROID_NDK_ROOT must be set to the path of Android NDK, Revision 6b." \
>& 2 >& 2
echo "which could be downloaded from" >& 2 echo "which could be installed by" >& 2
echo "http://developer.android.com/sdk/ndk/index.html" >& 2 echo "<chromium_tree>/src/build/install-build-deps-android.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.sh" >& 2
return 1 return 1
fi fi
...@@ -39,6 +47,9 @@ esac ...@@ -39,6 +47,9 @@ esac
export ANDROID_TOOLCHAIN="${ANDROID_NDK_ROOT}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/${toolchain_dir}/bin/" export ANDROID_TOOLCHAIN="${ANDROID_NDK_ROOT}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/${toolchain_dir}/bin/"
# Add Android SDK's platform-tools to system path.
export PATH="${PATH}:${ANDROID_SDK_ROOT}/platform-tools/"
if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then
echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2
echo "The NDK version might be wrong." >& 2 echo "The NDK version might be wrong." >& 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment