summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/test/dummy_lxvst.cc33
-rw-r--r--libs/ardour/wscript1
2 files changed, 34 insertions, 0 deletions
diff --git a/libs/ardour/test/dummy_lxvst.cc b/libs/ardour/test/dummy_lxvst.cc
new file mode 100644
index 0000000000..d21702ec43
--- /dev/null
+++ b/libs/ardour/test/dummy_lxvst.cc
@@ -0,0 +1,33 @@
+/* Dummy LXVST methods so that libardour can be linked against the test code */
+
+#include "ardour/vstfx.h"
+
+int
+vstfx_init (void* ptr)
+{
+ return 0;
+}
+
+VSTFX *
+vstfx_instantiate (VSTFXHandle* fhandle, audioMasterCallback amc, void* userptr)
+{
+ return 0;
+}
+
+void
+vstfx_close (VSTFX* vstfx)
+{
+
+}
+
+VSTFXHandle *
+vstfx_load (const char *path)
+{
+ return 0;
+}
+
+int
+vstfx_unload (VSTFXHandle* fhandle)
+{
+ return -1;
+}
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index c127a2c248..fb75d7883a 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -415,6 +415,7 @@ def build(bld):
# Unit tests
testobj = bld(features = 'cxx cxxprogram')
testobj.source = '''
+ test/dummy_lxvst.cc
test/bbt_test.cpp
test/interpolation_test.cpp
test/midi_clock_slave_test.cpp