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

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

Issue 10996008: Fix android clang builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed whitespace typo Created 8 years, 2 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 echo "@@@BUILD_STEP Environment setup@@@" 66 echo "@@@BUILD_STEP Environment setup@@@"
67 bb_parse_args "$@" 67 bb_parse_args "$@"
68 68
69 local BUILDTOOL=$(bb_get_json_prop "$FACTORY_PROPERTIES" buildtool) 69 local BUILDTOOL=$(bb_get_json_prop "$FACTORY_PROPERTIES" buildtool)
70 if [[ $BUILDTOOL = ninja ]]; then 70 if [[ $BUILDTOOL = ninja ]]; then
71 export GYP_GENERATORS=ninja 71 export GYP_GENERATORS=ninja
72 fi 72 fi
73 bb_setup_goma_internal 73 bb_setup_goma_internal
74 . build/android/envsetup.sh 74 . build/android/envsetup.sh
75 export GYP_DEFINES+=" fastbuild=1" 75 local extra_gyp_defines="$(bb_get_json_prop "$FACTORY_PROPERTIES" \
76 export GYP_DEFINES+=" $(bb_get_json_prop "$FACTORY_PROPERTIES" \
77 extra_gyp_defines)" 76 extra_gyp_defines)"
77 export GYP_DEFINES+=" fastbuild=1 $extra_gyp_defines"
78 if echo $extra_gyp_defines | grep -q clang; then
79 unset CXX_target
80 fi
78 # Should be called only after envsetup is done. 81 # Should be called only after envsetup is done.
79 bb_run_gclient_hooks 82 bb_run_gclient_hooks
80 } 83 }
81 84
82 85
83 # Setup goma. Used internally to buildbot_functions.sh. 86 # Setup goma. Used internally to buildbot_functions.sh.
84 function bb_setup_goma_internal { 87 function bb_setup_goma_internal {
85 export GOMA_DIR=/b/build/goma 88 export GOMA_DIR=/b/build/goma
86 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key 89 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key
87 export GOMA_COMPILER_PROXY_DAEMON_MODE=true 90 export GOMA_COMPILER_PROXY_DAEMON_MODE=true
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 ) 299 )
297 } 300 }
298 301
299 # Retrieve a packed json property using python 302 # Retrieve a packed json property using python
300 function bb_get_json_prop { 303 function bb_get_json_prop {
301 local JSON="$1" 304 local JSON="$1"
302 local PROP="$2" 305 local PROP="$2"
303 306
304 python -c "import json; print json.loads('$JSON').get('$PROP', '')" 307 python -c "import json; print json.loads('$JSON').get('$PROP', '')"
305 } 308 }
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