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

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

Issue 21096004: Turn thumb back on. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | « 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 ;;
178 arm_v7_thumb) 164 arm_v7_thumb)
179 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 armv7=1 arm_t humb=1" 165 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 armv7=1 arm_t humb=1"
180 ;; 166 ;;
181 arm) 167 arm)
182 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=0 arm_thumb=0" 168 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=0 arm_thumb=0"
183 ;; 169 ;;
184 arm_thumb) 170 arm_thumb)
185 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=0 arm_thumb=1" 171 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 armv7=0 arm_thumb=1"
186 ;; 172 ;;
187 x86) 173 x86)
188 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32" 174 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32"
189 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32" 175 DEFINES="${DEFINES} skia_texture_cache_mb_limit=32"
190 ;; 176 ;;
191 *) 177 *)
192 echo -n "ERROR: unknown device specified ($TARGET_DEVICE), valid values: " 178 echo -n "ERROR: unknown device specified ($TARGET_DEVICE), valid values: "
193 echo "nexus_[s,4,7,10] xoom galaxy_nexus arm arm_thumb arm_v7 arm_v7_thu mb x86" 179 echo "nexus_[s,4,7,10] xoom galaxy_nexus razr_i arm arm_thumb arm_v7 arm _v7_thumb x86"
194 return 1; 180 return 1;
195 ;; 181 ;;
196 esac 182 esac
197 183
198 echo "The build is targeting the device: $TARGET_DEVICE" 184 echo "The build is targeting the device: $TARGET_DEVICE"
199 185
200 exportVar GYP_DEFINES "$DEFINES" 186 exportVar GYP_DEFINES "$DEFINES"
201 exportVar SKIA_OUT "out/config/android-${TARGET_DEVICE}" 187 exportVar SKIA_OUT "out/config/android-${TARGET_DEVICE}"
202 } 188 }
203 189
(...skipping 23 matching lines...) Expand all
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