android envsetup: Stop exporting ANDROID_NDK_ROOT.

Change its only user, adb_gdb, to instead use pylib.constants.

BUG=330631
NOTRY=true

Review URL: https://codereview.chromium.org/221933012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261437 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
thakis@chromium.org 2014-04-03 16:13:37 +00:00
Родитель 7b47211656
Коммит 6d709c8809
3 изменённых файлов: 3 добавлений и 15 удалений

Просмотреть файл

@ -245,12 +245,7 @@ them up automatically for you though:
- host gdb client (e.g. arm-linux-androideabi-gdb)
- directory with symbolic version of $PROGRAM_NAME's shared libraries.
If you have sourced Chromium's build/android/envsetup.sh, this script will
find all of them automatically. This is the recommended way to use it.
Otherwise, if you have ANDROID_NDK_ROOT defined in your environment,
the script will use it to find the gdb and gdbserver binaries. You can
also use --ndk-dir=<path> to specify an alternative NDK installation
You can also use --ndk-dir=<path> to specify an alternative NDK installation
directory.
The script tries to find the most recent version of the debug version of
@ -342,10 +337,8 @@ if [ -z "$PACKAGE_NAME" ]; then
fi
if [ -z "$NDK_DIR" ]; then
if [ -z "$ANDROID_NDK_ROOT" ]; then
panic "Can't find NDK directory, please source \
build/android/envsetup.sh!"
fi
ANDROID_NDK_ROOT=$(PYTHONPATH=build/android python -c \
'from pylib.constants import ANDROID_NDK_ROOT; print ANDROID_NDK_ROOT,')
else
if [ ! -d "$NDK_DIR" ]; then
panic "Invalid directory: $NDK_DIR"

Просмотреть файл

@ -33,9 +33,6 @@ fi
# Allow the caller to override a few environment variables. If any of them is
# unset, we default to a sane value that's known to work. This allows for
# experimentation with a custom SDK.
if [[ -z "${ANDROID_NDK_ROOT}" || ! -d "${ANDROID_NDK_ROOT}" ]]; then
export ANDROID_NDK_ROOT="${CHROME_SRC}/third_party/android_tools/ndk/"
fi
if [[ -z "${ANDROID_SDK_ROOT}" || ! -d "${ANDROID_SDK_ROOT}" ]]; then
export ANDROID_SDK_ROOT="${CHROME_SRC}/third_party/android_tools/sdk/"
fi

Просмотреть файл

@ -4,8 +4,6 @@
"""Provides an interface to start and stop Android emulator.
Assumes system environment ANDROID_NDK_ROOT has been set.
Emulator: The class provides the methods to launch/shutdown the emulator with
the android virtual device named 'avd_armeabi' .
"""