examples/wscript_build: simplify
[aubio.git] / examples / wscript_build
1 # vim:set syntax=python:
2
3 utils_source = ['utils.c', 'jackio.c']
4 programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
5
6 # build examples
7 bld(features = 'c',
8       source = utils_source,
9       includes = ['../src'],
10       target = 'utilsio')
11
12 # loop over all *.c filenames in examples to build them all
13 for source_file in programs_source:
14   bld(features = 'c cprogram',
15       includes = '../src',
16       lib = 'm',
17       use = ['aubio', 'utilsio'],
18       source = source_file,
19       target = str(source_file).split('.')[0]
20     )