source: examples/wscript_build @ 6d7acc8

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

src/wscript_build, examples/wscipt_build: add uselib to targets

  • Property mode set to 100644
File size: 669 bytes
Line 
1# vim:set syntax=python:
2
3uselib = []
4uselib += ['JACK']
5
6utils_source = ['utils.c', 'jackio.c']
7programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
8
9# build examples
10bld(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
17for source_file in programs_source:
18    bld(features = 'c cprogram',
19            includes = '../src',
20            lib = 'm',
21            use = ['aubio', 'utilsio'],
22            uselib = uselib,
23            source = source_file,
24            target = str(source_file).split('.')[0]
25            )
Note: See TracBrowser for help on using the repository browser.