source: examples/wscript_build @ 36e95674

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

examples/wscript_build: link against libaubio

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