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