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

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

Issue 18762006: Revert "switch all the arm7 devices to build with thumb for a while" (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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)
144 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"
145 DEFINES="${DEFINES} skia_texture_cache_mb_limit=24" 149 DEFINES="${DEFINES} skia_texture_cache_mb_limit=24"
146 ;; 150 ;;
147 nexus_4 | nexus_7 | nexus_10) 151 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)
148 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1" 155 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1"
149 ;; 156 ;;
150 xoom) 157 xoom)
158 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=1 arm_thumb=0"
159 ;;
160 xoom_thumb)
151 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=1 arm_thumb=1" 161 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=1 arm_thumb=1"
152 ;; 162 ;;
153 galaxy_nexus) 163 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)
154 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1" 168 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 armv7=1 arm_thumb=1"
155 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32" 169 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32"
156 ;; 170 ;;
157 razr_i) 171 razr_i)
158 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32" 172 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32"
159 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32" 173 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32"
160 ;; 174 ;;
161 arm_v7) 175 arm_v7)
162 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 armv7=1 arm_t humb=0" 176 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 armv7=1 arm_t humb=0"
163 ;; 177 ;;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ]; 227 if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ];
214 then 228 then
215 $ADB pull $ANDROID_SRC $HOST_DST 229 $ADB pull $ANDROID_SRC $HOST_DST
216 # else 230 # else
217 # echo "md5 match of android [$ANDROID_SRC] and host [$HOST_DST]" 231 # echo "md5 match of android [$ANDROID_SRC] and host [$HOST_DST]"
218 fi 232 fi
219 else 233 else
220 $ADB pull $ANDROID_SRC $HOST_DST 234 $ADB pull $ANDROID_SRC $HOST_DST
221 fi 235 fi
222 } 236 }
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