summaryrefslogtreecommitdiff
path: root/run/dcpomatic_editor
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-23 01:59:10 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-29 23:37:48 +0200
commitf37c1e40dcd5186c5aee95a4b0e6607c1b0045e4 (patch)
treed7048963c435262dac6c7af6044148ea15a42125 /run/dcpomatic_editor
parent5c48efdde34ee11f135ea8b369d85d50d1410445 (diff)
Add a simple DCP editor.
Diffstat (limited to 'run/dcpomatic_editor')
-rwxr-xr-xrun/dcpomatic_editor26
1 files changed, 26 insertions, 0 deletions
diff --git a/run/dcpomatic_editor b/run/dcpomatic_editor
new file mode 100755
index 000000000..28ef4a9d2
--- /dev/null
+++ b/run/dcpomatic_editor
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH
+export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:/Users/ci/osx-environment/x86_64/10.10/lib
+export DCPOMATIC_GRAPHICS=graphics
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/src/tools/dcpomatic2_editor $*
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes build/src/tools/dcpomatic2_editor $*
+elif [ "$1" == "--callgrind" ]; then
+ shift
+ valgrind --tool="callgrind" build/src/tools/dcpomatic2_editor $*
+elif [ "$1" == "--massif" ]; then
+ shift
+ valgrind --tool="massif" build/src/tools/dcpomatic2_editor $*
+elif [ "$1" == "--i18n" ]; then
+ shift
+ LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 build/src/tools/dcpomatic2_editor "$*"
+elif [ "$1" == "--perf" ]; then
+ shift
+ perf record build/src/tools/dcpomatic2_editor $*
+else
+ build/src/tools/dcpomatic2_editor $*
+fi