source: examples/wscript_build @ 4598946

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

{examples,tests}/wscript_build: add external libs

  • Property mode set to 100644
File size: 837 bytes
RevLine 
[d62c32f]1# vim:set syntax=python:
2
[ed090ff7]3uselib = []
[db86a46]4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
[ed090ff7]11uselib += ['JACK']
12
[f6ee160]13utils_source = ['utils.c', 'jackio.c']
14programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
15
[d62c32f]16# build examples
[f6ee160]17bld(features = 'c',
[dc0e759]18        source = utils_source,
19        includes = ['../src'],
20        uselib = uselib,
21        target = 'utilsio')
[110ac90]22
[d62c32f]23# loop over all *.c filenames in examples to build them all
[f6ee160]24for source_file in programs_source:
[dc0e759]25    bld(features = 'c cprogram',
26            includes = '../src',
27            lib = 'm',
28            use = ['aubio', 'utilsio'],
[6d7acc8]29            uselib = uselib,
[dc0e759]30            source = source_file,
31            target = str(source_file).split('.')[0]
32            )
Note: See TracBrowser for help on using the repository browser.