X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Faudiographer%2Fwscript;h=f6e7f7cd8391473ac009515ac28e74d5ef5c4fa5;hb=8a4518d76fe78e5fb99900ff5ff71a22e5912395;hp=0e4cd5d7f4f62dfa472611f2dfe5fbe7cba0faab;hpb=f4b5f4c72ee60b6f509e307c5bfd164108d1f30b;p=ardour.git diff --git a/libs/audiographer/wscript b/libs/audiographer/wscript index 0e4cd5d7f4..f6e7f7cd83 100644 --- a/libs/audiographer/wscript +++ b/libs/audiographer/wscript @@ -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, '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, 'fftw3f', uselib_store='FFTW3F', mandatory=True) + autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW35F', atleast_version='3.3.5', mandatory=False) # Boost headers autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp') @@ -54,12 +56,17 @@ def build(bld): and bld.is_defined('HAVE_GLIBMM') 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 = [ 'private/gdither/gdither.cc', 'src/general/sample_format_converter.cc', 'src/routines.cc', 'src/debug_utils.cc', + 'src/general/analyser.cc', 'src/general/broadcast_info.cc', + 'src/general/loudness_reader.cc', 'src/general/normalizer.cc' ] if bld.is_defined('HAVE_SAMPLERATE'): @@ -70,19 +77,19 @@ def build(bld): # macros for this shared library audiographer.defines = [ 'LIBAUDIOGRAPHER_DLL_EXPORTS=1' ] else: - audiographer = bld.stlib(features = 'c cxx cstlib cxxstlib', source=libardour_sources) - audiographer.cxxflags = [ '-fPIC' ] - audiographer.cflags = [ '-fPIC' ] + audiographer = bld.stlib(features = 'c cxx cstlib cxxstlib', source=audiographer_sources) + audiographer.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ] + audiographer.cflags = [ bld.env['compiler_flags_dict']['pic'] ] audiographer.defines = [] audiographer.name = 'libaudiographer' audiographer.target = 'audiographer' audiographer.export_includes = ['.', './src'] - audiographer.includes = ['.', './src'] - audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE' + audiographer.includes = ['.', './src','../ardour','../temporal','../evoral'] + audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE FFTW3F VAMPSDK VAMPHOSTSDK XML' audiographer.use = 'libpbd' audiographer.vnum = AUDIOGRAPHER_LIB_VERSION - audiographer.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') + audiographer.install_path = bld.env['LIBDIR'] if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'): @@ -118,7 +125,7 @@ def build(bld): ''' obj.use = 'libaudiographer' - obj.uselib = 'CPPUNIT GLIBMM' + obj.uselib = 'CPPUNIT GLIBMM SAMPLERATE SNDFILE FFTW3F VAMPSDK VAMPHOSTSDK' obj.target = 'run-tests' obj.install_path = ''