13
0

Exclude zita-convolver from being available as external lib

Ardour statically links libardour against zita-convolver,
this is required because it's used in plugins and available
by Lua scripts.

libzita-convolver has been modified to be in a custom namespace
and extern global symbols have been removed.

On most GNU/Linux distros system-wide default zita-convolver
is not compatible nor suitable to be used as-is.
This commit is contained in:
Robin Gareus 2020-03-02 20:03:26 +01:00
parent e79b762daa
commit 711f20a469
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -29,17 +29,11 @@ def options(opt):
autowaf.set_options(opt) autowaf.set_options(opt)
def configure(conf): def configure(conf):
if conf.is_defined('USE_EXTERNAL_LIBS'): conf.load ('compiler_cxx')
autowaf.check_pkg(conf, 'zita-convolver', uselib_store='LIBZCONVOLVER', atleast_version=ZCONVOLVER_LIB_VERSION, mandatory=True) autowaf.configure(conf)
else: autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
conf.load ('compiler_cxx')
autowaf.configure(conf)
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
def build(bld): def build(bld):
if bld.is_defined('USE_EXTERNAL_LIBS'):
return
obj = bld.stlib(features = 'cxx cxxstlib', source = 'zita-convolver.cc') obj = bld.stlib(features = 'cxx cxxstlib', source = 'zita-convolver.cc')
obj.cxxflags = [ '-fPIC', '-O3', '-ffast-math', '-funroll-loops' ] obj.cxxflags = [ '-fPIC', '-O3', '-ffast-math', '-funroll-loops' ]
obj.export_includes = ['.'] obj.export_includes = ['.']