mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 05:36:31 +01:00
fix build on systems without LV2 prereqs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2979 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
df51db94a6
commit
b5b45e93a8
2 changed files with 11 additions and 1 deletions
|
|
@ -534,6 +534,7 @@ if env['LV2']:
|
|||
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.'
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@
|
|||
#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>
|
||||
|
||||
|
|
@ -385,8 +387,9 @@ GenericPluginUI::build_control_ui (guint32 port_index, PBD::Controllable* mcontr
|
|||
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
|
||||
|
|
@ -410,6 +413,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, PBD::Controllable* mcontr
|
|||
return control_ui;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LV2
|
||||
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
|
||||
|
||||
SLV2Port port = lv2p->slv2_port(port_index);
|
||||
|
|
@ -429,6 +433,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, PBD::Controllable* mcontr
|
|||
slv2_scale_points_free(points);
|
||||
return control_ui;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (desc.toggled) {
|
||||
|
|
@ -766,7 +771,9 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
|
|||
{
|
||||
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
|
||||
|
|
@ -786,6 +793,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
|
|||
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);
|
||||
|
|
@ -806,6 +814,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
|
|||
}
|
||||
|
||||
slv2_scale_points_free(points);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue