source: examples/wscript_build @ ea7428a

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since ea7428a was 762c7fa, checked in by Paul Brossier <piem@piem.org>, 8 years ago

examples/wscript_build: use 'use =', simplify

  • Property mode set to 100644
File size: 637 bytes
Line 
1# vim:set syntax=python:
2
3uselib = ['aubio']
4uselib += ['JACK']
5
6includes = ['../src']
7utils_source = ['utils.c', 'jackio.c']
8programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
9
10# build examples
11bld(features = 'c',
12        source = utils_source,
13        includes = includes,
14        use = uselib,
15        target = 'utilsio')
16
17# loop over all *.c filenames in examples to build them all
18for source_file in programs_source:
19    bld(features = 'c cprogram',
20            source = source_file,
21            target = str(source_file).split('.')[0],
22            includes = includes,
23            use = uselib + ['utilsio'],
24       )
Note: See TracBrowser for help on using the repository browser.