merge from develop
[aubio.git] / tests / wscript_build
1 # vim:set syntax=python:
2
3 for target_name in ctx.path.ant_glob('src/**/*.c'):
4   uselib = []
5   includes = ['../src']
6   extra_source = []
7   if str(target_name).endswith('-jack.c') and ctx.env['JACK']:
8     uselib += ['JACK']
9     includes += ['../examples']
10     extra_source += ['../examples/jackio.c']
11
12   bld(features = 'c cprogram test',
13       uselib = uselib,
14       source = [target_name] + extra_source,
15       target = str(target_name).split('.')[0],
16       includes = includes,
17       install_path = None,
18       defines = 'AUBIO_UNSTABLE_API=1',
19       cflags = ['-g'],
20       use = 'aubio')
21