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