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

Side by Side Diff: build/android/buildbot_functions.sh

Issue 10824228: Revert "Use checked in android_tools Android NDK." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | build/android/envsetup_functions.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # 5 #
6 # Bash functions used by buildbot annotator scripts for the android 6 # Bash functions used by buildbot annotator scripts for the android
7 # build of chromium. Executing this script should not perform actions 7 # build of chromium. Executing this script should not perform actions
8 # other than setting variables and defining of functions. 8 # other than setting variables and defining of functions.
9 9
10 # Number of jobs on the compile line; e.g. make -j"${JOBS}" 10 # Number of jobs on the compile line; e.g. make -j"${JOBS}"
(...skipping 16 matching lines...) Expand all
27 ;; 27 ;;
28 *) 28 *)
29 echo "@@@STEP_WARNINGS@@@" 29 echo "@@@STEP_WARNINGS@@@"
30 echo "Warning, unparsed input argument: '$1'" 30 echo "Warning, unparsed input argument: '$1'"
31 ;; 31 ;;
32 esac 32 esac
33 shift 33 shift
34 done 34 done
35 } 35 }
36 36
37
38 # Setup environment for Android build. Do not set ANDROID_SDK_ROOT so that
39 # default version from $ROOT/src/third_party/android_tools/
40 # Called from bb_baseline_setup.
41 # Moved to top of file so it is easier to find.
42 function bb_setup_environment {
43 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7
44 }
45
37 # Function to force-green a bot. 46 # Function to force-green a bot.
38 function bb_force_bot_green_and_exit { 47 function bb_force_bot_green_and_exit {
39 echo "@@@BUILD_STEP Bot forced green.@@@" 48 echo "@@@BUILD_STEP Bot forced green.@@@"
40 exit 0 49 exit 0
41 } 50 }
42 51
43 function bb_run_gclient_hooks { 52 function bb_run_gclient_hooks {
44 echo "@@@BUILD_STEP runhooks android@@@" 53 echo "@@@BUILD_STEP runhooks android@@@"
45 gclient runhooks 54 gclient runhooks
46 } 55 }
(...skipping 16 matching lines...) Expand all
63 return 1 72 return 1
64 fi 73 fi
65 cd $SRC_ROOT 74 cd $SRC_ROOT
66 75
67 if [ ! -f build/android/envsetup.sh ] ; then 76 if [ ! -f build/android/envsetup.sh ] ; then
68 echo "No envsetup.sh" 77 echo "No envsetup.sh"
69 echo "@@@STEP_FAILURE@@@" 78 echo "@@@STEP_FAILURE@@@"
70 return 1 79 return 1
71 fi 80 fi
72 81
82 bb_setup_environment
83
73 for mandatory_directory in $(dirname "${ANDROID_SDK_ROOT}") \ 84 for mandatory_directory in $(dirname "${ANDROID_SDK_ROOT}") \
74 $(dirname "${ANDROID_NDK_ROOT}") ; do 85 $(dirname "${ANDROID_NDK_ROOT}") ; do
75 if [[ ! -d "${mandatory_directory}" ]]; then 86 if [[ ! -d "${mandatory_directory}" ]]; then
76 echo "Directory ${mandatory_directory} does not exist." 87 echo "Directory ${mandatory_directory} does not exist."
77 echo "Build cannot continue." 88 echo "Build cannot continue."
78 echo "@@@STEP_FAILURE@@@" 89 echo "@@@STEP_FAILURE@@@"
79 return 1 90 return 1
80 fi 91 fi
81 done 92 done
82 93
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 --factory-properties "$FACTORY_PROPERTIES" \ 294 --factory-properties "$FACTORY_PROPERTIES" \
284 --build-properties "$BUILD_PROPERTIES" 295 --build-properties "$BUILD_PROPERTIES"
285 extract_exitcode=$? 296 extract_exitcode=$?
286 if (( $extract_exitcode > 1 )); then 297 if (( $extract_exitcode > 1 )); then
287 echo "@@@STEP_WARNINGS@@@" 298 echo "@@@STEP_WARNINGS@@@"
288 return 299 return
289 fi 300 fi
290 return $extract_exitcode 301 return $extract_exitcode
291 ) 302 )
292 } 303 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/android/envsetup_functions.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698