X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Fdcpomatic;h=7e8f923a37194099f05c9a630d4f5be0a0f3ff74;hb=e1aff661376877bac097f29329f94e157c4caa11;hp=7ea08778c2ac3111abfca54eb2a0dae2867a4ed8;hpb=147cca5876dfbdf56e21289c3a36bec4b4850191;p=dcpomatic.git diff --git a/run/dcpomatic b/run/dcpomatic index 7ea08778c..7e8f923a3 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -1,15 +1,32 @@ #!/bin/bash -export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +build=$DIR/../build +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/c.hetherington/osx-environment/64/lib +export DCPOMATIC_GRAPHICS=$DIR/../graphics +binary=$build/src/tools/dcpomatic2 if [ "$1" == "--debug" ]; then shift - gdb --args build/src/tools/dcpomatic $* + gdb --args $binary $* elif [ "$1" == "--valgrind" ]; then shift - valgrind --tool="memcheck" build/src/tools/dcpomatic $* + valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full $binary $* +elif [ "$1" == "--callgrind" ]; then + shift + valgrind --tool="callgrind" $binary $* +elif [ "$1" == "--massif" ]; then + shift + valgrind --tool="massif" $binary $* elif [ "$1" == "--i18n" ]; then shift - LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 build/src/tools/dcpomatic "$*" + LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8 $binary "$*" +elif [ "$1" == "--perf" ]; then + shift + perf record $binary $* +elif [ "$1" == "--scaled" ]; then + shift + ~/src/run_scaled/run_scaled --sleep=5 --scale=0.5 $binary $* else - build/src/tools/dcpomatic $* + $binary $* fi