2017-06-23 17:26:33 -04:00
|
|
|
[ -z $TOP ] && echo "ardev_common.sh: TOP var must be set" >&2 && exit 1
|
2007-01-09 18:24:54 -05:00
|
|
|
|
2020-10-01 17:38:55 -04:00
|
|
|
if which realpath > /dev/null; then
|
|
|
|
TOP=`realpath "$TOP"`
|
2022-10-05 13:52:01 -04:00
|
|
|
elif which readlink > /dev/null; then
|
2022-10-11 14:06:17 -04:00
|
|
|
TOP=`(cd "$TOP"; pwd)`
|
2020-10-01 17:38:55 -04:00
|
|
|
fi
|
2020-09-27 09:55:20 -04:00
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
#export G_DEBUG=fatal_criticals
|
|
|
|
|
2009-02-26 18:43:10 -05:00
|
|
|
libs=$TOP/@LIBS@
|
2009-02-26 17:30:13 -05:00
|
|
|
|
2022-10-23 22:58:42 -04:00
|
|
|
# https://tracker.ardour.org/view.php?id=5605#c18109
|
2016-09-12 06:01:07 -04:00
|
|
|
export GTK2_RC_FILES=/nonexistent
|
|
|
|
|
2012-05-18 13:24:06 -04:00
|
|
|
#
|
2015-08-16 12:01:28 -04:00
|
|
|
# when running ardev, the various parts of Ardour have not been consolidated into the locations that they
|
2012-05-18 13:24:06 -04:00
|
|
|
# would normally end up after an install. We therefore need to set up environment variables so that we
|
2015-08-16 12:01:28 -04:00
|
|
|
# can find all the components.
|
2012-05-18 13:24:06 -04:00
|
|
|
#
|
|
|
|
|
2024-08-29 20:31:00 -04:00
|
|
|
export ARDOUR_SURFACES_PATH=$libs/surfaces/osc:$libs/surfaces/faderport8:$libs/surfaces/faderport:$libs/surfaces/generic_midi:$libs/surfaces/tranzport:$libs/surfaces/powermate:$libs/surfaces/mackie:$libs/surfaces/us2400:$libs/surfaces/wiimote:$libs/surfaces/push2:$libs/surfaces/maschine2:$libs/surfaces/cc121:$libs/surfaces/launch_control_xl:$libs/surfaces/contourdesign:$libs/surfaces/websockets:$libs/surfaces/console1:$libs/surfaces/launchpad_pro:$libs/surfaces/launchpad_x:$libs/surfaces/launchkey_4
|
2014-01-08 18:18:29 -05:00
|
|
|
export ARDOUR_PANNER_PATH=$libs/panners
|
2020-09-27 09:55:20 -04:00
|
|
|
export ARDOUR_DATA_PATH=$TOP/share:$TOP/build:$TOP/gtk2_ardour:$TOP/build/gtk2_ardour
|
2021-04-11 10:07:02 -04:00
|
|
|
export ARDOUR_MIDIMAPS_PATH=$TOP/share/midi_maps
|
2023-04-17 00:25:50 -04:00
|
|
|
export ARDOUR_MIDI_PATCH_PATH=$TOP/share/patchfiles
|
2020-09-27 09:55:20 -04:00
|
|
|
export ARDOUR_EXPORT_FORMATS_PATH=$TOP/share/export
|
|
|
|
export ARDOUR_THEMES_PATH=$TOP/gtk2_ardour/themes
|
2019-07-25 10:39:23 -04:00
|
|
|
export ARDOUR_BACKEND_PATH=$libs/backends/jack:$libs/backends/dummy:$libs/backends/alsa:$libs/backends/coreaudio:$libs/backends/portaudio:$libs/backends/pulseaudio
|
2014-11-21 01:48:36 -05:00
|
|
|
export ARDOUR_TEST_PATH=$TOP/libs/ardour/test/data
|
|
|
|
export PBD_TEST_PATH=$TOP/libs/pbd/test
|
2014-11-29 04:30:35 -05:00
|
|
|
export EVORAL_TEST_PATH=$TOP/libs/evoral/test/testdata
|
2020-02-23 09:26:48 -05:00
|
|
|
export MIDIPP_TEST_PATH=$TOP/share/patchfiles
|
2009-02-26 18:31:41 -05:00
|
|
|
|
2023-12-13 00:45:00 -05:00
|
|
|
if test -d $libs/tk/suil; then
|
|
|
|
export SUIL_MODULE_DIR=$libs/tk/suil
|
|
|
|
fi
|
|
|
|
|
2012-05-18 13:24:06 -04:00
|
|
|
#
|
2015-08-16 12:01:28 -04:00
|
|
|
# even though we set the above variables, ardour requires that these
|
2012-05-18 13:24:06 -04:00
|
|
|
# two also be set. the above settings will override them.
|
|
|
|
#
|
|
|
|
|
2012-05-19 12:41:36 -04:00
|
|
|
export ARDOUR_CONFIG_PATH=$TOP:$TOP/gtk2_ardour:$TOP/build:$TOP/build/gtk2_ardour
|
2012-05-18 13:24:06 -04:00
|
|
|
export ARDOUR_DLL_PATH=$libs
|
|
|
|
|
2013-02-26 13:54:37 -05:00
|
|
|
export GTK_PATH=~/.ardour3:$libs/clearlooks-newer
|
2019-09-01 21:13:31 -04:00
|
|
|
export VAMP_PATH=$libs/vamp-plugins:$libs/vamp-pyin${VAMP_PATH:+:$VAMP_PATH}
|
2009-02-26 17:30:13 -05:00
|
|
|
|
2023-12-13 00:45:00 -05:00
|
|
|
export LD_LIBRARY_PATH=$libs/tk/ydk-pixbuf:$libs/tk/ztk::$libs/tk/ydk:$libs/tk/ytk:$libs/tk/ztkmm:$libs/tk/ydkmm:$libs/tk/ytkmm:$libs/tk/suil:$libs/ptformat:$libs/qm-dsp:$libs/vamp-sdk:$libs/surfaces:$libs/ctrl-interface/control_protocol:$libs/ctrl-interface/midi_surface:$libs/ardour:$libs/midi++2:$libs/pbd:$libs/rubberband:$libs/soundtouch:$libs/aaf:$libs/gtkmm2ext:$libs/widgets:$libs/appleutility:$libs/taglib:$libs/evoral:$libs/evoral/src/libsmf:$libs/audiographer:$libs/temporal:$libs/libltc:$libs/canvas:$libs/waveview:$libs/ardouralsautil${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
2009-02-26 17:30:13 -05:00
|
|
|
|
|
|
|
# DYLD_LIBRARY_PATH is for darwin.
|
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH=$LD_LIBRARY_PATH
|
|
|
|
|
2023-06-10 10:47:38 -04:00
|
|
|
# allow Ardour to run when configured with --address-sanitizer
|
|
|
|
# - halt_on_error=0 - why would we?
|
|
|
|
# Note, static zita-resampler is used by libardour and libalsa_audiobackend
|
|
|
|
# causing a [false positive] odr-violation at start.
|
|
|
|
# - new_delete_type_mismatch=0 - because caps plugins do that
|
|
|
|
# - leak_check_at_exit=0 - without ARDOUR_RUNNING_UNDER_VALGRIND=TRUE there are many false-positives
|
|
|
|
# besides, instant.xml leaks somewhat intentionally
|
2023-09-18 15:17:22 -04:00
|
|
|
if [ x$ASAN_COREDUMP != x ] ; then
|
|
|
|
export ASAN_OPTIONS=abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1:detect_odr_violation=0:leak_check_at_exit=0:new_delete_type_mismatch=0${ASAN_OPTIONS:+:$ASAN_OPTIONS}
|
|
|
|
else
|
|
|
|
export ASAN_OPTIONS=halt_on_error=0:detect_odr_violation=0:leak_check_at_exit=0:new_delete_type_mismatch=0${ASAN_OPTIONS:+:$ASAN_OPTIONS}
|
|
|
|
fi
|
2023-06-10 10:47:38 -04:00
|
|
|
|
2013-06-23 12:59:47 -04:00
|
|
|
ARDOURVERSION=@VERSION@
|
2009-02-26 17:30:13 -05:00
|
|
|
EXECUTABLE=@EXECUTABLE@
|