+ #bld.env['BUILD_TESTS'] = True
+ bld.env['HAVE_ALL_GTHREAD'] = (bld.is_defined('HAVE_GLIB')
+ 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'):
+ audiographer_sources += [ 'src/general/sr_converter.cc' ]
+
+ if bld.is_defined ('INTERNAL_SHARED_LIBS'):
+ audiographer = bld.shlib(features = 'c cxx cshlib cxxshlib', source=audiographer_sources)
+ # macros for this shared library
+ audiographer.defines = [ 'LIBAUDIOGRAPHER_DLL_EXPORTS=1' ]
+ else:
+ audiographer = bld.stlib(features = 'c cxx cstlib cxxstlib', source=audiographer_sources)
+ audiographer.cxxflags = [ '-fPIC' ]
+ audiographer.cflags = [ '-fPIC' ]
+ audiographer.defines = []
+
+ audiographer.name = 'libaudiographer'
+ audiographer.target = 'audiographer'
+ audiographer.export_includes = ['.', './src']
+ audiographer.includes = ['.', './src','../ardour','../timecode','../evoral']
+ audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE FFTW3F VAMPSDK VAMPHOSTSDK XML'
+ audiographer.use = 'libpbd'
+ audiographer.vnum = AUDIOGRAPHER_LIB_VERSION
+ audiographer.install_path = bld.env['LIBDIR']