source: examples/wscript_build @ fc359e0

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since fc359e0 was 281381f, checked in by Paul Brossier <piem@piem.org>, 8 years ago

{examples,tests}/wscrtip_build: update build target name

  • Property mode set to 100644
File size: 698 bytes
Line 
1# vim:set syntax=python:
2
3import os.path
4
5uselib = ['aubio']
6uselib += ['JACK']
7
8includes = ['../src']
9utils_source = ['utils.c', 'jackio.c']
10programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
11
12# build examples
13bld(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
20for 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       )
Note: See TracBrowser for help on using the repository browser.