Fix for undefined references to fftw lib when using gcc/mingw
This commit is contained in:
parent
a92dd3e76d
commit
7c3d3031dc
@ -36,6 +36,8 @@ def configure(conf):
|
|||||||
autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0', mandatory=False)
|
autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0', mandatory=False)
|
||||||
autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', atleast_version='0.1.7', mandatory=False)
|
autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE', atleast_version='0.1.7', mandatory=False)
|
||||||
autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18', mandatory=False)
|
autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18', mandatory=False)
|
||||||
|
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
|
||||||
|
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW35F', atleast_version='3.3.5', mandatory=False)
|
||||||
|
|
||||||
# Boost headers
|
# Boost headers
|
||||||
autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
|
autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
|
||||||
@ -54,6 +56,9 @@ def build(bld):
|
|||||||
and bld.is_defined('HAVE_GLIBMM')
|
and bld.is_defined('HAVE_GLIBMM')
|
||||||
and bld.is_defined('HAVE_GTHREAD'))
|
and bld.is_defined('HAVE_GTHREAD'))
|
||||||
|
|
||||||
|
if bld.is_defined('HAVE_FFTW35F') and bld.env['build_target'] != 'mingw':
|
||||||
|
bld.env['LIB_FFTW3F'] += ['fftw3f_threads']
|
||||||
|
|
||||||
audiographer_sources = [
|
audiographer_sources = [
|
||||||
'private/gdither/gdither.cc',
|
'private/gdither/gdither.cc',
|
||||||
'src/general/sample_format_converter.cc',
|
'src/general/sample_format_converter.cc',
|
||||||
@ -79,7 +84,7 @@ def build(bld):
|
|||||||
audiographer.target = 'audiographer'
|
audiographer.target = 'audiographer'
|
||||||
audiographer.export_includes = ['.', './src']
|
audiographer.export_includes = ['.', './src']
|
||||||
audiographer.includes = ['.', './src']
|
audiographer.includes = ['.', './src']
|
||||||
audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE'
|
audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE FFTW3F'
|
||||||
audiographer.use = 'libpbd'
|
audiographer.use = 'libpbd'
|
||||||
audiographer.vnum = AUDIOGRAPHER_LIB_VERSION
|
audiographer.vnum = AUDIOGRAPHER_LIB_VERSION
|
||||||
audiographer.install_path = bld.env['LIBDIR']
|
audiographer.install_path = bld.env['LIBDIR']
|
||||||
|
Loading…
Reference in New Issue
Block a user