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

Unified Diff: build/android/buildbot_functions.sh

Issue 9401029: Android build: 64-bit linker issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: col limit Created 8 years, 10 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
« no previous file with comments | « build/all_android.gyp ('k') | build/android/buildbot_fyi.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot_functions.sh
diff --git a/build/android/buildbot_functions.sh b/build/android/buildbot_functions.sh
index 17310ba64289fdd2c54308431f5cc46fb405eb27..45fb6fbd865ec7b2554fe2bcc4f4da2738e4a3d0 100755
--- a/build/android/buildbot_functions.sh
+++ b/build/android/buildbot_functions.sh
@@ -13,6 +13,27 @@ JOBS="${JOBS:-4}"
# Clobber build? Overridden by bots with BUILDBOT_CLOBBER.
NEED_CLOBBER="${NEED_CLOBBER:-0}"
+# Setup environment for Android build.
+# Called from bb_baseline_setup.
+# Moved to top of file so it is easier to find.
+function bb_setup_environment {
+ export ANDROID_SDK_ROOT=/usr/local/google/android-sdk-linux
+ export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7
+}
+
+# Install the build deps by running
+# build/install-build-deps-android.sh. This may update local tools.
+# $1: source root.
+function bb_install_build_deps {
+ echo "@@@BUILD_STEP install build deps android@@@"
+ local script="$1/build/install-build-deps-android.sh"
+ if [[ -f "$script" ]]; then
+ "$script"
+ else
+ echo "Cannot find $script; why?"
+ fi
+}
+
# Function to force-green a bot.
function bb_force_bot_green_and_exit {
echo "@@@BUILD_STEP Bot forced green.@@@"
@@ -38,8 +59,7 @@ function bb_baseline_setup {
fi
echo "@@@BUILD_STEP Basic setup@@@"
- export ANDROID_SDK_ROOT=/usr/local/google/android-sdk-linux
- export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7
+ bb_setup_environment
for mandatory_directory in "${ANDROID_SDK_ROOT}" "${ANDROID_NDK_ROOT}" ; do
if [[ ! -d "${mandatory_directory}" ]]; then
echo "Directory ${mandatory_directory} does not exist."
« no previous file with comments | « build/all_android.gyp ('k') | build/android/buildbot_fyi.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698