X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fvamp-plugins%2Fwscript;h=f3e0024ee949d7e3c67f1d1c165c491e91431b64;hb=d34ae439317bb2923f5ec6930e41e685c6657c1a;hp=4768523e168e3907b5e1ce7b67a7ac8e543ca614;hpb=d3d1e2c286fe31156557c2d304409f727c7c49c2;p=ardour.git diff --git a/libs/vamp-plugins/wscript b/libs/vamp-plugins/wscript index 4768523e16..f3e0024ee9 100644 --- a/libs/vamp-plugins/wscript +++ b/libs/vamp-plugins/wscript @@ -1,5 +1,5 @@ #!/usr/bin/env python -import autowaf +from waflib.extras import autowaf as autowaf import os # Version of this package (even if built as a child) @@ -16,40 +16,58 @@ APPNAME = 'libardourvampplugins' VERSION = LIBARDOURVAMPPLUGINS_VERSION # Mandatory variables -srcdir = '.' -blddir = 'build' +top = '.' +out = 'build' -def set_options(opt): - autowaf.set_options(opt) +def options(opt): + autowaf.set_options(opt) def configure(conf): - autowaf.configure(conf) - autowaf.check_tool(conf, 'compiler_cxx') - autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True) - autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False) + conf.load('compiler_cxx') + autowaf.configure(conf) + autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True) + autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', + atleast_version='0.3.2') + autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO4', + atleast_version='0.4.0', mandatory=False) + conf.write_config_header('libvampplugins-config.h', remove=False) def build(bld): - # Library - obj = bld.new_task_gen('cxx', 'shlib') - obj.source = ''' - plugins.cpp - AmplitudeFollower.cpp - PercussionOnsetDetector.cpp - SpectralCentroid.cpp - ZeroCrossing.cpp - ''' - obj.export_incdirs = ['.'] - obj.includes = ['.'] - obj.name = 'libardourvampplugins' - obj.target = 'ardourvampplugins' - obj.uselib = 'FFTW3F' - obj.uselib_local = 'libvampplugin' - if bld.env['HAVE_AUBIO']: - obj.source += ' Onset.cpp ' - obj.uselib += ' AUBIO ' - obj.vnum = LIBARDOURVAMPPLUGINS_LIB_VERSION - obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') + # Library + obj = bld(features = 'cxx cxxshlib') + obj.source = ''' + plugins.cpp + AmplitudeFollower.cpp + BarBeatTrack.cpp + BeatTrack.cpp + ChromagramPlugin.cpp + EBUr128.cpp + ebu_r128_proc.cc + KeyDetect.cpp + OnsetDetect.cpp + PercussionOnsetDetector.cpp + SimilarityPlugin.cpp + SpectralCentroid.cpp + TonalChangeDetect.cpp + Transcription.cpp + TruePeak.cpp + ZeroCrossing.cpp + ''' + obj.export_includes = ['.'] + obj.includes = ['.'] + obj.name = 'libardourvampplugins' + obj.target = 'ardourvampplugins' + obj.uselib = 'FFTW3F VAMPSDK QMDSP' + obj.use = 'libvampplugin libqm-dsp' + autowaf.ensure_visible_symbols (obj, True) + if bld.is_defined('HAVE_AUBIO4'): + obj.source += ' Onset.cpp ' + obj.uselib += ' AUBIO4 ' + elif bld.is_defined('HAVE_AUBIO'): + obj.source += ' Onset.cpp ' + obj.uselib += ' AUBIO ' + obj.vnum = LIBARDOURVAMPPLUGINS_LIB_VERSION + obj.install_path = os.path.join(bld.env['LIBDIR'], 'vamp') def shutdown(): - autowaf.shutdown() - + autowaf.shutdown()