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