Fix LV2 plugin support.
git-svn-id: svn://localhost/ardour2/branches/3.0@5027 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
918371d52a
commit
c7733b443a
@ -577,7 +577,7 @@ if env['LV2']:
|
|||||||
if conf.CheckPKGVersion('slv2', '0.6.4'):
|
if conf.CheckPKGVersion('slv2', '0.6.4'):
|
||||||
libraries['slv2'] = LibraryInfo()
|
libraries['slv2'] = LibraryInfo()
|
||||||
libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2')
|
libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2')
|
||||||
env.Append (CCFLAGS="-DHAVE_LV2")
|
env.Append (CCFLAGS="-DHAVE_SLV2")
|
||||||
else:
|
else:
|
||||||
print 'LV2 support is not enabled (SLV2 not found or older than 0.6.4 (svn))'
|
print 'LV2 support is not enabled (SLV2 not found or older than 0.6.4 (svn))'
|
||||||
env['LV2'] = 0
|
env['LV2'] = 0
|
||||||
|
@ -303,7 +303,7 @@ lv2_files = [ 'lv2_plugin_ui.cc' ]
|
|||||||
|
|
||||||
if env['LV2']:
|
if env['LV2']:
|
||||||
extra_sources += lv2_files
|
extra_sources += lv2_files
|
||||||
gtkardour.Append (CCFLAGS="-DHAVE_LV2")
|
gtkardour.Append (CCFLAGS="-DHAVE_SLV2")
|
||||||
gtkardour.Merge ([libraries['slv2']])
|
gtkardour.Merge ([libraries['slv2']])
|
||||||
|
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ PluginSelector::ladspa_refiller (const std::string& filterstr)
|
|||||||
void
|
void
|
||||||
PluginSelector::lv2_refiller (const std::string& filterstr)
|
PluginSelector::lv2_refiller (const std::string& filterstr)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LV2
|
#ifdef HAVE_SLV2
|
||||||
refiller (manager->lv2_plugin_info(), filterstr, "LV2");
|
refiller (manager->lv2_plugin_info(), filterstr, "LV2");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -543,7 +543,7 @@ PluginSelector::plugin_menu()
|
|||||||
#ifdef HAVE_AUDIOUNITS
|
#ifdef HAVE_AUDIOUNITS
|
||||||
all_plugs.insert (all_plugs.end(), manager->au_plugin_info().begin(), manager->au_plugin_info().end());
|
all_plugs.insert (all_plugs.end(), manager->au_plugin_info().begin(), manager->au_plugin_info().end());
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LV2
|
#ifdef HAVE_SLV2
|
||||||
all_plugs.insert (all_plugs.end(), manager->lv2_plugin_info().begin(), manager->lv2_plugin_info().end());
|
all_plugs.insert (all_plugs.end(), manager->lv2_plugin_info().begin(), manager->lv2_plugin_info().end());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -227,6 +227,8 @@ def build(bld):
|
|||||||
obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIRNAME']) + '"']
|
obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIRNAME']) + '"']
|
||||||
obj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
|
obj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
|
||||||
os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
|
os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
|
||||||
|
if bld.env['HAVE_SLV2']:
|
||||||
|
obj.cxxflags += ['-DHAVE_SLV2']
|
||||||
|
|
||||||
# Wrappers
|
# Wrappers
|
||||||
|
|
||||||
|
@ -234,6 +234,7 @@ def build(bld):
|
|||||||
if bld.env['HAVE_SLV2']:
|
if bld.env['HAVE_SLV2']:
|
||||||
obj.source += ' lv2_plugin.cc '
|
obj.source += ' lv2_plugin.cc '
|
||||||
obj.uselib += ' SLV2 '
|
obj.uselib += ' SLV2 '
|
||||||
|
obj.cxxflags += ['-DHAVE_SLV2']
|
||||||
|
|
||||||
def shutdown():
|
def shutdown():
|
||||||
autowaf.shutdown()
|
autowaf.shutdown()
|
||||||
|
Loading…
Reference in New Issue
Block a user