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_run_skia: starts the correct skia program on the device, prints the | 9 # ios_run_skia: starts the correct skia program on the device, prints the |
10 # output, and kills the app if interrupted. | 10 # output, and kills the app if interrupted. |
11 | 11 |
12 set -x -e | 12 set -x -e |
13 | 13 |
14 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 14 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
15 source $SCRIPT_DIR/ios_setup.sh | 15 source $SCRIPT_DIR/ios_setup.sh |
16 | 16 |
17 # Run the application. | 17 # Run the application. |
18 IOS_DEPLOY_ARGS="${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app -
-args \"${*}\"" | 18 IOS_DEPLOY_ARGS="${IOS_OUT}/iOSShell.app --args \"${*}\"" |
19 CMD="ios-deploy -I -m -b ${IOS_DEPLOY_ARGS}" | 19 CMD="ios-deploy -I -m -b ${IOS_DEPLOY_ARGS}" |
20 eval $CMD | 20 eval $CMD |
OLD | NEW |