2015-04-21 15:31:59 +00:00
|
|
|
#!/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.
|
|
|
|
|
2015-05-05 14:55:06 +00:00
|
|
|
set -x -e
|
|
|
|
|
2015-04-21 15:31:59 +00:00
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
source $SCRIPT_DIR/ios_setup.sh
|
|
|
|
|
2015-05-05 14:55:06 +00:00
|
|
|
# Run the application.
|
2016-04-06 18:38:55 +00:00
|
|
|
IOS_DEPLOY_ARGS="${IOS_OUT}/iOSShell.app --args \"${*}\""
|
2015-05-05 14:55:06 +00:00
|
|
|
CMD="ios-deploy -I -m -b ${IOS_DEPLOY_ARGS}"
|
|
|
|
eval $CMD
|