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

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

Issue 1054633002: Update the Android scripts to refresh device names and capabilities. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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
« 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 ###############################################################################
3 # Copyright 2015 Google Inc.
4 #
5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file.
7 ###############################################################################
2 # 8 #
3 # android_setup.sh: Sets environment variables used by other Android scripts. 9 # android_setup.sh: Sets environment variables used by other Android scripts.
4 10
5 # Fail-fast if anything in the script fails. 11 # Fail-fast if anything in the script fails.
6 set -e 12 set -e
7 13
8 BUILDTYPE=${BUILDTYPE-Debug} 14 BUILDTYPE=${BUILDTYPE-Debug}
9 15
10 while (( "$#" )); do 16 while (( "$#" )); do
11 if [[ "$1" == "-d" ]]; then 17 if [[ "$1" == "-d" ]]; then
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 fi 90 fi
85 91
86 # Setup the build variation depending on the target device 92 # Setup the build variation depending on the target device
87 TARGET_DEVICE="$1" 93 TARGET_DEVICE="$1"
88 94
89 if [ -z "$TARGET_DEVICE" ]; then 95 if [ -z "$TARGET_DEVICE" ]; then
90 if [ -f .android_config ]; then 96 if [ -f .android_config ]; then
91 TARGET_DEVICE=$(cat .android_config) 97 TARGET_DEVICE=$(cat .android_config)
92 verbose "no target device (-d), using ${TARGET_DEVICE} from most recent bu ild" 98 verbose "no target device (-d), using ${TARGET_DEVICE} from most recent bu ild"
93 else 99 else
94 TARGET_DEVICE="arm_v7_thumb" 100 TARGET_DEVICE="arm_v7"
95 verbose "no target device (-d), using ${TARGET_DEVICE}" 101 verbose "no target device (-d), using ${TARGET_DEVICE}"
96 fi 102 fi
97 fi 103 fi
98 104
99 case $TARGET_DEVICE in 105 case $TARGET_DEVICE in
100 nexus_s) 106 arm)
101 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb= 1" 107 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_thumb=0"
102 DEFINES="${DEFINES} skia_resource_cache_mb_limit=24"
103 ANDROID_ARCH="arm" 108 ANDROID_ARCH="arm"
104 ;; 109 ;;
105 nexus_4 | nexus_7 | nexus_10) 110 arm_v7 | nexus_4 | nexus_5 | nexus_6 | nexus_7 | nexus_10 | xoom)
111 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7 a rm_thumb=1"
112 ANDROID_ARCH="arm"
113 ;;
114 arm_v7_neon)
106 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb= 1" 115 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb= 1"
107 ANDROID_ARCH="arm" 116 ANDROID_ARCH="arm"
108 ;; 117 ;;
109 xoom) 118 arm64 | nexus_9)
110 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_version=7 arm_thumb= 1" 119 DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64"
111 ANDROID_ARCH="arm" 120 ANDROID_ARCH="arm64"
112 ;;
113 galaxy_nexus)
114 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=1 arm_version=7 arm_thumb= 1"
115 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32"
116 ANDROID_ARCH="arm"
117 ;;
118 intel_rhb | razr_i)
119 DEFINES="${DEFINES} skia_arch_type=x86"
120 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32"
121 ANDROID_ARCH="x86"
122 ;; 121 ;;
123 x86) 122 x86)
124 DEFINES="${DEFINES} skia_arch_type=x86" 123 DEFINES="${DEFINES} skia_arch_type=x86"
125 ANDROID_ARCH="x86" 124 ANDROID_ARCH="x86"
126 ;; 125 ;;
127 x86_64 | x64) 126 x86_64 | x64)
128 DEFINES="${DEFINES} skia_arch_type=x86_64" 127 DEFINES="${DEFINES} skia_arch_type=x86_64"
129 ANDROID_ARCH="x86_64" 128 ANDROID_ARCH="x86_64"
130 ;; 129 ;;
131 arm_v7)
132 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7 a rm_thumb=0"
133 ANDROID_ARCH="arm"
134 ;;
135 arm_v7_thumb | nvidia_logan | nexus_5)
136 DEFINES="${DEFINES} skia_arch_type=arm arm_neon_optional=1 arm_version=7 a rm_thumb=1"
137 ANDROID_ARCH="arm"
138 ;;
139 arm)
140 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_thumb=0"
141 ANDROID_ARCH="arm"
142 ;;
143 arm_thumb)
144 DEFINES="${DEFINES} skia_arch_type=arm arm_neon=0 arm_thumb=1"
145 ANDROID_ARCH="arm"
146 ;;
147 arm64)
148 DEFINES="${DEFINES} skia_arch_type=arm64 skia_arch_width=64"
149 ANDROID_ARCH="arm64"
150 ;;
151 mips) 130 mips)
152 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32" 131 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32"
153 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32" 132 DEFINES="${DEFINES} skia_resource_cache_mb_limit=32"
154 ANDROID_ARCH="mips" 133 ANDROID_ARCH="mips"
155 ;; 134 ;;
156 mips_dsp2) 135 mips_dsp2)
157 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32" 136 DEFINES="${DEFINES} skia_arch_type=mips skia_arch_width=32"
158 DEFINES="${DEFINES} mips_arch_variant=mips32r2 mips_dsp=2" 137 DEFINES="${DEFINES} mips_arch_variant=mips32r2 mips_dsp=2"
159 ANDROID_ARCH="mips" 138 ANDROID_ARCH="mips"
160 ;; 139 ;;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 adb_push_if_needed $HOST_SRC $ANDROID_DST 243 adb_push_if_needed $HOST_SRC $ANDROID_DST
265 else 244 else
266 echo -n "$ANDROID_DST " 245 echo -n "$ANDROID_DST "
267 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")" 246 $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")"
268 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST 247 $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST
269 fi 248 fi
270 fi 249 fi
271 } 250 }
272 251
273 setup_device "${DEVICE_ID}" 252 setup_device "${DEVICE_ID}"
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