source: examples/wscript_build @ 8247249

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

examples/wscript_build: simplify

  • Property mode set to 100644
File size: 547 bytes
RevLine 
[d62c32f]1# vim:set syntax=python:
2
3# build examples
[6ed0f4e]4utilsio = bld(
5        name = 'utilsio',
6        features = 'c',
7        includes = '../src',
8        source = ['utils.c', 'jackio.c'],
9        target = 'utilsio')
[110ac90]10
[d62c32f]11# loop over all *.c filenames in examples to build them all
[6ed0f4e]12for source_file in ctx.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c']):
13  bld.program(features = 'c cprogram',
[d62c32f]14      includes = '../src',
[cdd24f0]15      lib = 'm',
[c52b483]16      use = ['aubio', 'utilsio'],
[6ed0f4e]17      source = str(source_file),
18      target = str(source_file).split('.')[0]
19    )
Note: See TracBrowser for help on using the repository browser.