if conf.CheckPKGExists ('\"slv2 >= 0.6.0\"'):
libraries['slv2'] = LibraryInfo()
libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2')
+ env.Append (CCFLAGS="-DHAVE_LV2")
else:
print 'Building Ardour with LV2 support requires SLV2 >= 0.6.0'
print 'WARNING: SLV2 not found, or too old. Ardour will be built without LV2 support.'
#include <ardour/plugin.h>
#include <ardour/insert.h>
#include <ardour/ladspa_plugin.h>
+#ifdef HAVE_LV2
#include <ardour/lv2_plugin.h>
+#endif
#include <lrdf.h>
if (plugin->parameter_is_input (port_index)) {
boost::shared_ptr<LadspaPlugin> lp;
+#ifdef HAVE_LV2
boost::shared_ptr<LV2Plugin> lv2p;
-
+#endif
if ((lp = boost::dynamic_pointer_cast<LadspaPlugin>(plugin)) != 0) {
// all LADPSA plugins have a numeric unique ID
return control_ui;
}
+#ifdef HAVE_LV2
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
SLV2Port port = lv2p->slv2_port(port_index);
slv2_scale_points_free(points);
return control_ui;
}
+#endif
}
if (desc.toggled) {
{
vector<string> enums;
boost::shared_ptr<LadspaPlugin> lp;
+#ifdef HAVE_LV2
boost::shared_ptr<LV2Plugin> lv2p;
+#endif
if ((lp = boost::dynamic_pointer_cast<LadspaPlugin>(plugin)) != 0) {
// all LADPSA plugins have a numeric unique ID
lrdf_free_setting_values(defaults);
}
+#ifdef HAVE_LV2
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
SLV2Port port = lv2p->slv2_port(port_index);
}
slv2_scale_points_free(points);
+#endif
}