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

Side by Side Diff: platform_tools/android/bin/android_setup.sh

Issue 18563004: switch all the arm7 devices to build with thumb for a while (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: thumb2, try2 Created 7 years, 5 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 function exportVar { 1 function exportVar {
2 NAME=$1 2 NAME=$1
3 VALUE=$2 3 VALUE=$2
4 echo export $NAME=\"$VALUE\" 4 echo export $NAME=\"$VALUE\"
5 export $NAME="$VALUE" 5 export $NAME="$VALUE"
6 } 6 }
7 7
8 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 8 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
9 9
10 # A valid Android SDK installation is required to build the sample app. 10 # A valid Android SDK installation is required to build the sample app.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 # Setup the build variation depending on the target device 134 # Setup the build variation depending on the target device
135 TARGET_DEVICE="$1" 135 TARGET_DEVICE="$1"
136 136
137 if [ -z "$TARGET_DEVICE" ]; then 137 if [ -z "$TARGET_DEVICE" ]; then
138 echo "INFO: no target device type was specified so using the default 'arm_v7 '" 138 echo "INFO: no target device type was specified so using the default 'arm_v7 '"
139 TARGET_DEVICE="arm_v7" 139 TARGET_DEVICE="arm_v7"
140 fi 140 fi
141 141
142 case $TARGET_DEVICE in 142 case $TARGET_DEVICE in
143 nexus_s) 143 nexus_s)
144 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=0"
145 DEFINES="${DEFINES} skia_texture_cache_mb_limit=24"
146 ;;
147 nexus_s_thumb)
148 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1" 144 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1"
149 DEFINES="${DEFINES} skia_texture_cache_mb_limit=24" 145 DEFINES="${DEFINES} skia_texture_cache_mb_limit=24"
150 ;; 146 ;;
151 nexus_4 | nexus_7 | nexus_10) 147 nexus_4 | nexus_7 | nexus_10)
152 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=0"
153 ;;
154 nexus_4_thumb | nexus_7_thumb | nexus_10_thumb)
155 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1" 148 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1"
156 ;; 149 ;;
157 xoom) 150 xoom)
158 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=1 arm_thumb=0"
159 ;;
160 xoom_thumb)
161 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=1 arm_thumb=1" 151 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=1 arm_thumb=1"
162 ;; 152 ;;
163 galaxy_nexus) 153 galaxy_nexus)
164 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=0"
165 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32"
166 ;;
167 galaxy_nexus_thumb)
168 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1" 154 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1"
169 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32" 155 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32"
170 ;; 156 ;;
171 razr_i) 157 razr_i)
172 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32" 158 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32"
173 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32" 159 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32"
174 ;; 160 ;;
175 arm_v7) 161 arm_v7)
176 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 armv7=1 arm_t humb=0" 162 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 armv7=1 arm_t humb=0"
177 ;; 163 ;;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ]; 213 if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ];
228 then 214 then
229 $ADB pull $ANDROID_SRC $HOST_DST 215 $ADB pull $ANDROID_SRC $HOST_DST
230 # else 216 # else
231 # echo "md5 match of android [$ANDROID_SRC] and host [$HOST_DST]" 217 # echo "md5 match of android [$ANDROID_SRC] and host [$HOST_DST]"
232 fi 218 fi
233 else 219 else
234 $ADB pull $ANDROID_SRC $HOST_DST 220 $ADB pull $ANDROID_SRC $HOST_DST
235 fi 221 fi
236 } 222 }
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