OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 ############################################################################### | 2 ############################################################################### |
3 # Copyright 2015 Google Inc. | 3 # Copyright 2015 Google Inc. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
7 ############################################################################### | 7 ############################################################################### |
8 # | 8 # |
9 # ios_setup.sh: Sets environment variables used by other iOS scripts. | 9 # ios_setup.sh: Sets environment variables used by other iOS scripts. |
10 | 10 |
11 # File system location where we mount the ios devices. | 11 # File system location where we mount the ios devices. |
12 IOS_MOUNT_POINT="/tmp/mnt_iosdevice" | 12 IOS_MOUNT_POINT="/tmp/mnt_iosdevice" |
13 | 13 |
14 # Location on the ios device where all data are stored. This is | 14 # Location on the ios device where all data are stored. This is |
15 # relative to the mount point. | 15 # relative to the mount point. |
16 IOS_DOCS_DIR="Documents" | 16 IOS_DOCS_DIR="Documents" |
17 | 17 |
18 # Temporary location to assemble the app into an .ipa package. | 18 # Temporary location to assemble the app into an .ipa package. |
19 IOS_PCKG_DIR="/tmp/ios_pckg" | 19 IOS_PCKG_DIR="/tmp/ios_pckg" |
20 | 20 |
21 # Directory with the Skia source. | 21 # Directory with the Skia source. |
22 SKIA_SRC_DIR=$(cd "${SCRIPT_DIR}/../../.."; pwd) | 22 SKIA_SRC_DIR=$(cd "${SCRIPT_DIR}/../../.."; pwd) |
23 | 23 |
24 # Provisioning profile - this needs to be set up on the local machine. | 24 # Provisioning profile - this needs to be set up on the local machine. |
25 PROVISIONING_PROFILE="" | 25 PROVISIONING_PROFILE="" |
26 | 26 |
27 # Code Signing identity - this needs to be set up on the local machine. | 27 # Code Signing identity - this needs to be set up on the local machine. |
28 CODE_SIGN_IDENTITY="iPhone Developer" | 28 CODE_SIGN_IDENTITY="iPhone Developer" |
29 | 29 |
30 IOS_BUNDLE_ID="com.google.iOSShell.`hostname | md5`" | 30 IOS_BUNDLE_ID="com.google.iOSShell" |
31 | 31 |
32 IOS_RESULTS_DIR="results" | 32 IOS_RESULTS_DIR="results" |
33 | 33 |
34 # BUILDTYPE is 'Debug' by default. | 34 # BUILDTYPE is 'Debug' by default. |
35 if [[ -z "$BUILDTYPE" ]]; then | 35 if [[ -z "$BUILDTYPE" ]]; then |
36 BUILDTYPE="Debug" | 36 BUILDTYPE="Debug" |
37 fi | 37 fi |
38 | 38 |
39 # Out dir is $SKIA_SRC_DIR/out by default. | 39 # Out dir is $SKIA_SRC_DIR/out by default. |
40 if [[ -z "$SKIA_OUT" ]]; then | 40 if [[ -z "$SKIA_OUT" ]]; then |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 # adb_push_if_needed $HOST_SRC $ANDROID_DST | 198 # adb_push_if_needed $HOST_SRC $ANDROID_DST |
199 # else | 199 # else |
200 # echo -n "$ANDROID_DST " | 200 # echo -n "$ANDROID_DST " |
201 # $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")" | 201 # $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")" |
202 # $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST | 202 # $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST |
203 # fi | 203 # fi |
204 # fi | 204 # fi |
205 # } | 205 # } |
206 | 206 |
207 # setup_device "${DEVICE_ID}" | 207 # setup_device "${DEVICE_ID}" |
OLD | NEW |