summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-15 18:49:34 +0000
committerDavid Robillard <d@drobilla.net>2008-01-15 18:49:34 +0000
commit123399c2a8141458b21b0079ac17aa9ede16e763 (patch)
treece1b77ca58ba24f858efe59714d9ca1c3addaeff /gtk2_ardour
parent69b94c201d39c6a64fa6f1e9412578d482d0ce5b (diff)
LV2 support.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2922 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/SConscript3
-rw-r--r--gtk2_ardour/plugin_selector.cc9
-rw-r--r--gtk2_ardour/plugin_selector.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/SConscript b/gtk2_ardour/SConscript
index cb2b1e9d4e..d2c0448e23 100644
--- a/gtk2_ardour/SConscript
+++ b/gtk2_ardour/SConscript
@@ -270,6 +270,9 @@ if env['VST']:
extra_sources += vst_files
gtkardour.Append (CCFLAGS="-DVST_SUPPORT", CPPPATH="#libs/fst")
+if env['LV2']:
+ gtkardour.Append (CCFLAGS="-DHAVE_SLV2")
+
if gtkardour['GTKOSX']:
extra_sources += gtkosx_files
gtkardour.Append (CCFLAGS="-DTOP_MENUBAR -DGTKOSX")
diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc
index cd597af8e4..7a5d76e8ad 100644
--- a/gtk2_ardour/plugin_selector.cc
+++ b/gtk2_ardour/plugin_selector.cc
@@ -227,6 +227,7 @@ PluginSelector::refill ()
setup_filter_string (filterstr);
ladspa_refiller (filterstr);
+ lv2_refiller (filterstr);
vst_refiller (filterstr);
au_refiller (filterstr);
}
@@ -281,6 +282,14 @@ PluginSelector::ladspa_refiller (const std::string& filterstr)
}
void
+PluginSelector::lv2_refiller (const std::string& filterstr)
+{
+#ifdef HAVE_SLV2
+ refiller (manager->lv2_plugin_info(), filterstr, "LV2");
+#endif
+}
+
+void
PluginSelector::vst_refiller (const std::string& filterstr)
{
#ifdef VST_SUPPORT
diff --git a/gtk2_ardour/plugin_selector.h b/gtk2_ardour/plugin_selector.h
index ac300638d7..ea258d3be0 100644
--- a/gtk2_ardour/plugin_selector.h
+++ b/gtk2_ardour/plugin_selector.h
@@ -94,6 +94,7 @@ class PluginSelector : public ArdourDialog
void refill ();
void refiller (const ARDOUR::PluginInfoList& plugs, const::std::string& filterstr, const char* type);
void ladspa_refiller (const std::string&);
+ void lv2_refiller (const std::string&);
void vst_refiller (const std::string&);
void au_refiller (const std::string&);