source: examples/wscript_build @ 7436353

feature/autosinkfeature/cnnfeature/crepefix/ffmpeg5
Last change on this file since 7436353 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
RevLine 
[d62c32f]1# vim:set syntax=python:
2
[281381f]3import os.path
4
[762c7fa]5uselib = ['aubio']
[ed090ff7]6uselib += ['JACK']
7
[762c7fa]8includes = ['../src']
[f6ee160]9utils_source = ['utils.c', 'jackio.c']
10programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
11
[d62c32f]12# build examples
[f6ee160]13bld(features = 'c',
[dc0e759]14        source = utils_source,
[762c7fa]15        includes = includes,
16        use = uselib,
[dc0e759]17        target = 'utilsio')
[110ac90]18
[d62c32f]19# loop over all *.c filenames in examples to build them all
[f6ee160]20for source_file in programs_source:
[281381f]21    target = os.path.basename(os.path.splitext(str(source_file))[0])
[dc0e759]22    bld(features = 'c cprogram',
23            source = source_file,
[281381f]24            target = target,
[762c7fa]25            includes = includes,
26            use = uselib + ['utilsio'],
27       )
Note: See TracBrowser for help on using the repository browser.