source: examples/wscript_build @ 466dff3

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

examples/wscript_build: simplify

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