Merge branch 'io' into develop
[aubio.git] / examples / wscript_build
1 # vim:set syntax=python:
2
3 # build examples
4 utilsio = ctx.new_task_gen(name = 'utilsio', features = 'c',
5       includes = '../src',
6       source = ['utils.c', 'jackio.c'],
7       uselib = ['LASH', 'JACK'],
8       target = 'utilsio')
9
10 # loop over all *.c filenames in examples to build them all
11 for target_name in ctx.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c']):
12   ctx.new_task_gen(features = 'c cprogram',
13       add_objects = 'utilsio',
14       includes = '../src',
15       uselib = ['LASH', 'JACK', 'SNDFILE'],
16       use = 'aubio',
17       source = target_name,
18       # program name is filename.c without the .c
19       target = str(target_name).split('.')[0])