4 if [ ! -f './canvas.cc' ]; then
5 echo "This script must be run from within the libs/canvas directory";
12 if [ "$1" == "--debug" ]; then
15 elif [ "$1" == "--callgrind" ]; then
18 elif [ "$1" == "--valgrind" ]; then
25 waft --targets libcanvas-benchmark-$name
26 if [ "$?" != 0 ]; then
31 cd ../../build/default
35 export LD_LIBRARY_PATH=$libs/audiographer:$libs/vamp-sdk:$libs/surfaces:$libs/surfaces/control_protocol:$libs/ardour:$libs/midi++2:$libs/pbd:$libs/rubberband:$libs/soundtouch:$libs/gtkmm2ext:$libs/appleutility:$libs/taglib:$libs/evoral:$libs/evoral/src/libsmf:$libs/timecode:$libs/canvas:$LD_LIBRARY_PATH
37 if [ "$debug" == "1" ]; then
38 gdb ./libs/canvas/benchmark/$name $3 $4
39 elif [ "$callgrind" == "1" ]; then
40 valgrind --tool="callgrind" ./libs/canvas/benchmark/$name $3 $4
41 elif [ "$valgrind" == "1" ]; then
42 valgrind --tool="memcheck" ./libs/canvas/benchmark/$name $3 $4
44 ./libs/canvas/benchmark/$name $2 $3