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

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

Issue 9585002: Replace make function back now that not using goma (removed in http://chromiumcodereview.appspot.co… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 ${GOMA_DIR}/goma_ctl.sh start 109 ${GOMA_DIR}/goma_ctl.sh start
110 if [ -f ${goma_dir}/goma.key ]; then 110 if [ -f ${goma_dir}/goma.key ]; then
111 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key 111 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key
112 fi 112 fi
113 export GOMA_COMPILER_PROXY_DAEMON_MODE=true 113 export GOMA_COMPILER_PROXY_DAEMON_MODE=true
114 export GOMA_COMPILER_PROXY_RPC_TIMEOUT_SECS=300 114 export GOMA_COMPILER_PROXY_RPC_TIMEOUT_SECS=300
115 export PATH=$GOMA_DIR:$PATH 115 export PATH=$GOMA_DIR:$PATH
116 } 116 }
117 117
118 # Temporarily added back when goma disabled
119 function old_make {
120 # TODO(michaelbai): how to use ccache in NDK.
121 if [ -n "${USE_CCACHE}" ]; then
122 if [ -e "${PREBUILT_CCACHE_PATH}" ]; then
123 use_ccache_var="$PREBUILT_CCACHE_PATH "
124 else
125 use_ccache_var=""
126 fi
127 fi
128 # Only cross-compile if the build is being done either from Chromium's src/
129 # directory, or through WebKit, in which case the WEBKIT_ANDROID_BUILD
130 # environment variable will be defined. WebKit uses a different directory.
131 if [ -f "$PWD/build/android/envsetup.sh" ] ||
132 [ -n "${WEBKIT_ANDROID_BUILD}" ]; then
133 CC="${use_ccache_var}${CROSS_CC}" CXX="${use_ccache_var}${CROSS_CXX}" \
134 LINK="${CROSS_LINK}" AR="${CROSS_AR}" RANLIB="${CROSS_RANLIB}" \
135 command make $*
136 else
137 command make $*
138 fi
139 }
140
118 # $@: make args. 141 # $@: make args.
119 # Use goma if possible; degrades to non-Goma if needed. 142 # Use goma if possible; degrades to non-Goma if needed.
120 function bb_goma_make { 143 function bb_goma_make {
121 # Disable Goma 144 # Disable Goma
122 # Seems to work on "Android FYI" 145 # Seems to work on "Android FYI"
123 # http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20Androi d/builds/6421/steps/Compile/logs/stdio 146 # http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20Androi d/builds/6421/steps/Compile/logs/stdio
124 # and Linux trybots 147 # and Linux trybots
125 # http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/23995/step s/compile/logs/stdio 148 # http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/23995/step s/compile/logs/stdio
126 # But not on Android trybots? 149 # But not on Android trybots?
127 # http://build.chromium.org/p/tryserver.chromium/builders/android/builds/2136 /steps/Compile/logs/stdio 150 # http://build.chromium.org/p/tryserver.chromium/builders/android/builds/2136 /steps/Compile/logs/stdio
128 make -j${JOBS} "$@" 151 old_make -j${JOBS} "$@"
129 return 152 return
130 153
131 bb_setup_goma_internal 154 bb_setup_goma_internal
132 155
133 if [ "${GOMA_DIR}" = "" ]; then 156 if [ "${GOMA_DIR}" = "" ]; then
134 make -j${JOBS} "$@" 157 make -j${JOBS} "$@"
135 return 158 return
136 fi 159 fi
137 160
138 HOST_CC=$GOMA_DIR/gcc 161 HOST_CC=$GOMA_DIR/gcc
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 function bb_run_tests_emulator { 208 function bb_run_tests_emulator {
186 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" 209 echo "@@@BUILD_STEP Run Tests on an Emulator@@@"
187 build/android/run_tests.py -e --xvfb --verbose 210 build/android/run_tests.py -e --xvfb --verbose
188 } 211 }
189 212
190 # Run tests on an actual device. (Better have one plugged in!) 213 # Run tests on an actual device. (Better have one plugged in!)
191 function bb_run_tests { 214 function bb_run_tests {
192 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" 215 echo "@@@BUILD_STEP Run Tests on actual hardware@@@"
193 build/android/run_tests.py --xvfb --verbose 216 build/android/run_tests.py --xvfb --verbose
194 } 217 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698