source: examples/wscript_build @ c82a034

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since c82a034 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
Line 
1# vim:set syntax=python:
2
3uselib = []
4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
11uselib += ['JACK']
12
13utils_source = ['utils.c', 'jackio.c']
14programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
15
16# build examples
17bld(features = 'c',
18        source = utils_source,
19        includes = ['../src'],
20        uselib = uselib,
21        target = 'utilsio')
22
23# loop over all *.c filenames in examples to build them all
24for source_file in programs_source:
25    bld(features = 'c cprogram',
26            includes = '../src',
27            lib = 'm',
28            use = ['aubio', 'utilsio'],
29            uselib = uselib,
30            source = source_file,
31            target = str(source_file).split('.')[0]
32            )
Note: See TracBrowser for help on using the repository browser.