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