Fix unit test build by adding some dummy LXVST methods.
authorCarl Hetherington <carl@carlh.net>
Mon, 14 Nov 2011 11:31:22 +0000 (11:31 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 14 Nov 2011 11:31:22 +0000 (11:31 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10576 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/test/dummy_lxvst.cc [new file with mode: 0644]
libs/ardour/wscript

diff --git a/libs/ardour/test/dummy_lxvst.cc b/libs/ardour/test/dummy_lxvst.cc
new file mode 100644 (file)
index 0000000..d21702e
--- /dev/null
@@ -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;
+}
index c127a2c24823b2acc4b39dfee86e57204faa4020..fb75d7883aa3e8adb81bdc7449341ca98c9c9959 100644 (file)
@@ -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