source: examples/wscript_build @ b60f297

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

examples/wscript_build: no -lm for msvc

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