34943f15c928cc738585aadac871bf2e150ad52d
[aubio.git] / python / aubio / wscript_build
1 bld.new_task_gen(features = 'cc',
2     includes = '../../examples ../../src',
3     source = ['../../examples/sndfileio.c'], 
4     uselib = ['JACK'],
5     target = 'sndfileio')
6
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'],
13   uselib = ['SNDFILE'],
14   swig_flags = '-python -Wall',
15   includes = '. ../../src ../../examples')
16 pyaubio.install_path = '${PYTHONDIR}/${PACKAGE}'
17
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')