summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-06-07 12:23:32 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-06-07 12:23:32 +0200
commitd76e2ed2483aff0c246a729c242c4c57b48d8996 (patch)
tree4f92255a4556898cf2ddab0b9623e46aee1c0f35
parentad63d0c777b344cccc6f5f4e9dbeda2c96e1a87a (diff)
Set VST path
-rw-r--r--configure.ac8
-rw-r--r--vst/Makefile.am3
2 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 47d8b1e..ef867e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,17 +123,23 @@ AM_CONDITIONAL([ENABLE_LV2], [test "x$enable_lv2" = "xyes"])
dnl ======================
dnl Compile VST plugin
dnl ======================
+AC_ARG_WITH(vst_sources, [ --with-vst-sources Point this to the vstsdk24 directory])
AC_ARG_ENABLE([vst],
[ --enable-vst Compile the VST plugin [default=no]],,
[enable_vst="no"])
if test "x$enable_vst" = "xyes"; then
- enable_vst=yes
+ enable_vst=yes
+ VST_CPPFLAGS="-I$with_vst_sources"
+ VST_SOURCE_PATH="$with_vst_sources"
+ AC_SUBST(VST_SOURCE_PATH)
+ AC_SUBST(VST_CPPFLAGS)
else
AC_MSG_RESULT([*** VST plugin will not be compiled ***])
enable_vst=no
fi
AM_CONDITIONAL([ENABLE_VST], [test "x$enable_vst" = "xyes"])
+
dnl ======================
dnl Compile AU plugin
dnl ======================
diff --git a/vst/Makefile.am b/vst/Makefile.am
index 15e4814..cbc26d1 100644
--- a/vst/Makefile.am
+++ b/vst/Makefile.am
@@ -1,13 +1,12 @@
include $(top_srcdir)/plugingui/Makefile.am.plugingui
include $(top_srcdir)/src/Makefile.am.drumgizmo
-VST_BASE = vstsdk2.4
+VST_BASE = ${VST_SOURCE_PATH}
VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/
VST_SRC = \
${VST_SRC_BASE}/audioeffectx.cpp \
${VST_SRC_BASE}/audioeffect.cpp \
${VST_SRC_BASE}/vstplugmain.cpp
-VST_CPPFLAGS=-I$(VST_BASE)
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/plugingui \
-I$(top_srcdir)/include $(SNDFILE_CXXFLAGS) \