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
12set -x -e
13
14SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
15source $SCRIPT_DIR/ios_setup.sh
16
17# Run the application.
18IOS_DEPLOY_ARGS="${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app --args \"${*}\""
19CMD="ios-deploy -I -m -b ${IOS_DEPLOY_ARGS}"
20eval $CMD
21