-
Notifications
You must be signed in to change notification settings - Fork 699
/
Copy patharvst3
executable file
·49 lines (44 loc) · 1.15 KB
/
arvst3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
TOP=`dirname "$0"`/..
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
export UBUNTU_MENUPROXY=""
if [ $# -gt 0 ] ; then
case $1 in
-g|--gdb) DBG=gdb; shift ;;
esac
case $1 in
--valgrind) DBG=valgrind; shift ;;
esac
case $1 in
--callgrind) DBG=callgrind; shift ;;
esac
fi
if test -z "$DBG"; then
exec $TOP/build/libs/fst/ardour-vst3-scanner "$@"
fi
if test "$DBG" = "valgrind"; then
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
exec valgrind \
--error-limit=no --num-callers=50 \
--tool=memcheck \
--track-origins=yes \
--leak-check=full --show-leak-kinds=all \
--suppressions=${TOP}/tools/valgrind.supp \
$TOP/build/libs/fst/ardour-vst3-scanner "$@"
fi
if test "$DBG" = "callgrind"; then
exec valgrind \
--error-limit=no --num-callers=50 \
--tool=callgrind \
--separate-callers=3 \
--separate-threads=yes \
--collect-systime=yes \
--collect-jumps=yes \
$TOP/build/libs/fst/ardour-vst3-scanner "$@"
fi
if test -n "`which gdb`"; then
exec gdb --args $TOP/build/libs/fst/ardour-vst3-scanner "$@"
fi
if test -n "`which lldb`"; then
exec lldb -- $TOP/build/libs/fst/ardour-vst3-scanner "$@"
fi