summaryrefslogtreecommitdiff
path: root/run/dcpomatic_processor
diff options
context:
space:
mode:
Diffstat (limited to 'run/dcpomatic_processor')
-rwxr-xr-xrun/dcpomatic_processor24
1 files changed, 24 insertions, 0 deletions
diff --git a/run/dcpomatic_processor b/run/dcpomatic_processor
new file mode 100755
index 000000000..0cd37c74a
--- /dev/null
+++ b/run/dcpomatic_processor
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
+binary=$build/src/tools/dcpomatic2_processor
+
+if [[ "$(uname -m)" == arm64 ]]; then
+ env=arm64/11.0
+else
+ env=x86_64/10.10
+fi
+
+export DYLD_LIBRARY_PATH=/Users/cah/osx-environment/$env/lib:/usr/local/lib
+
+if [ "$1" == "--debug" ]; then
+ shift
+ if [[ "$(uname)" == Darwin ]]; then
+ /Applications/Xcode.app/Contents/Developer/usr/bin/lldb $binary $*
+ else
+ gdb --args $binary $*
+ fi
+else
+ $binary $* 2> >(grep -v Gtk-CRITICAL | grep -v Gtk-WARNING)
+fi