1 bld.new_task_gen(features = 'cc',
2 includes = '../../examples ../../src',
3 source = ['../../examples/sndfileio.c'],
7 pyaubio = bld.new_task_gen(name = 'python-aubio',
8 features = 'cc cshlib pyext',
9 source = '../../swig/aubio.i',
10 add_objects = 'sndfileio',
11 target = '_aubiowrapper',
12 uselib_local = ['aubio'],
14 swig_flags = '-python -Wall',
15 includes = '. ../../src ../../examples')
16 pyaubio.install_path = '${PYTHONDIR}/${PACKAGE}'
18 # install python files
19 for file in bld.path.ant_glob('**/*.py').split():
20 bld.install_as('${PYTHONDIR}/${PACKAGE}/' + file, file)
21 # install swig generated python file
22 bld.install_files('${PYTHONDIR}/${PACKAGE}/', '../../swig/aubiowrapper.py')