aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/ios/bin/ios_run_skia
blob: 2b7861b08e20987965e362c1bb5f32cc10364e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
###############################################################################
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
###############################################################################
#
# ios_run_skia: starts the correct skia program on the device, prints the
# output, and kills the app if interrupted.

set -x -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/ios_setup.sh

# Run the application.
IOS_DEPLOY_ARGS="${IOS_OUT}/iOSShell.app --args \"${*}\""
CMD="ios-deploy -I -m -b ${IOS_DEPLOY_ARGS}"
eval $CMD