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