From 0894c93aa851826b712c51a36d2390fe030d1073 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 5 Jun 2014 18:53:20 +0200 Subject: Experimentally add VST to autotools (probably highly broken) --- configure.ac | 30 +++++++++++++----------------- vst/Makefile.am | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 18 deletions(-) diff --git a/configure.ac b/configure.ac index c3fc352..997d140 100644 --- a/configure.ac +++ b/configure.ac @@ -120,23 +120,19 @@ else fi AM_CONDITIONAL([ENABLE_LV2], [test "x$enable_lv2" = "xyes"]) -#dnl ====================== -#dnl Compile VST plugin -#dnl ====================== -#AC_ARG_ENABLE([vst], -#[ --enable-vst Compile the VST plugin [default=yes]],, -# [enable_vst="yes"]) -#if test "x$enable_vst" = "xyes"; then -# enable_vst=yes -# dnl ====================== -# dnl Check for vstcore -# dnl ====================== -# PKG_CHECK_MODULES(VST, vstcore >= 4.1) -#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 VST plugin +dnl ====================== +AC_ARG_ENABLE([vst], +[ --enable-vst Compile the VST plugin [default=yes]],, + [enable_vst="yes"]) +if test "x$enable_vst" = "xyes"; then + enable_vst=yes +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 diff --git a/vst/Makefile.am b/vst/Makefile.am index 9a448a2..427c3dd 100644 --- a/vst/Makefile.am +++ b/vst/Makefile.am @@ -1,3 +1,20 @@ +include $(top_srcdir)/plugingui/Makefile.am.plugingui +include $(top_srcdir)/src/Makefile.am.drumgizmo + +VST_BASE = vstsdk2.4 +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) \ + $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) $(VST_CPPFLAGS) \ + $(PLUGIN_GUI_CFLAGS) $(SSEFLAGS)\ + -DUSE_THREAD $(SAMPLERATE_CFLAGS) + EXTRA_DIST = \ Makefile.mingw32 \ constants.h \ @@ -6,4 +23,22 @@ EXTRA_DIST = \ input_vst.cc \ input_vst.h \ output_vst.cc \ - output_vst.h \ No newline at end of file + output_vst.h + +plugin_LTLIBRARIES = + +if ENABLE_VST +plugin_LTLIBRARIES += drumgizmo.la +endif + +drumgizmo_la_SOURCES = \ + $(VST_SOURCES) \ + $(DRUMGIZMO_SOURCES) \ + $(PLUGIN_GUI_SOURCES) \ + drumgizmo_vst.cc \ + input_vst.cc \ + output_vst.cc + +drumgizmo_la_LDFLAGS = -static -static-libgcc -mno-cygwin -module -avoid-version +drumgizmo_la_LIBADD = $(PLUGIN_GUI_LIBS) $(DRUMGIZMO_LIBS) + -- cgit v1.2.3