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