Index: platform_tools/ios/bin/ios_run_skia |
diff --git a/platform_tools/ios/bin/ios_run_skia b/platform_tools/ios/bin/ios_run_skia |
new file mode 100755 |
index 0000000000000000000000000000000000000000..6dced0829aeeb8d4a540c645fd8b2c24bce5be57 |
--- /dev/null |
+++ b/platform_tools/ios/bin/ios_run_skia |
@@ -0,0 +1,18 @@ |
+#!/bin/bash |
+# |
+# ios_run_skia: starts the correct skia program on the device, prints the |
+# output, and kills the app if interrupted. |
+ |
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
+source $SCRIPT_DIR/ios_setup.sh |
+ |
+# (Re-)Install the app to create the necessary directories. |
+ios_uninstall_app |
+ios_install_app |
+ |
+# Move the resources to the Documents forlder of the iOS device. |
+# Note: The iOSShell app expects 'resources' in the Documents folder. |
+ios_push "${SKIA_SRC_DIR}/resources" "" |
+ |
+# Run the application. |
+ios-deploy -I -m -b "$SKIA_SRC_DIR/xcodebuild/Release-iphoneos/iOSShell.app --args '-v --writePath results --dm --nogpu --threads 0 --src gm tests --config 8888 --match ~Threaded ~Math ~VarAlloc' |