13
0
livetrax/libs/vamp-plugins/wscript

51 lines
1.6 KiB
Plaintext
Raw Normal View History

#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
def options(opt):
pass
def configure(conf):
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
2014-01-12 12:11:14 -05:00
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(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
2016-02-11 04:24:22 -05:00
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)
2016-02-29 05:28:04 -05:00
if bld.is_defined('HAVE_AUBIO4'):
obj.source += ' Onset.cpp '
obj.uselib += ' AUBIO4 '
2016-02-29 05:28:04 -05:00
elif bld.is_defined('HAVE_AUBIO'):
obj.source += ' Onset.cpp '
obj.uselib += ' AUBIO '
obj.install_path = os.path.join(bld.env['LIBDIR'], 'vamp')