ref: b9c3cd2e6bbe71568a263e757036193254316f66
dir: /python/aubio/wscript_build/
bld.new_task_gen(features = 'cc',
includes = '../../examples ../../src',
source = ['../../examples/sndfileio.c'],
uselib = ['JACK'],
target = 'sndfileio')
pyaubio = bld.new_task_gen(name = 'python-aubio',
features = 'cc cshlib pyext',
source = '../../swig/aubio.i',
add_objects = 'sndfileio',
target = '_aubiowrapper',
uselib_local = ['aubio'],
uselib = ['SNDFILE'],
swig_flags = '-python -Wall',
includes = '. ../../src ../../examples')
pyaubio.install_path = '${PYTHONDIR}/${PACKAGE}'
# install python files
for file in bld.path.ant_glob('**/*.py').split():
bld.install_as('${PYTHONDIR}/${PACKAGE}/' + file, file)
# install swig generated python file
bld.install_files('${PYTHONDIR}/${PACKAGE}/', '../../swig/aubiowrapper.py')