source: tests/wscript_build @ 58cffee

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

tests/wscript_build, src/wscript_build: no -lm on win32/64

  • Property mode set to 100644
File size: 778 bytes
Line 
1# vim:set syntax=python:
2
3lib = 'm' if ctx.env['DEST_OS'] not in ['win32', 'win64'] else None
4
5uselib = []
6uselib += ['FFTW3', 'FFTW3F']
7uselib += ['SAMPLERATE']
8uselib += ['SNDFILE']
9uselib += ['AVCODEC']
10uselib += ['AVFORMAT']
11uselib += ['AVRESAMPLE']
12uselib += ['AVUTIL']
13uselib += ['JACK']
14uselib += ['BLAS']
15
16includes = ['../src', '.']
17
18for target_name in ctx.path.ant_glob('src/**/*.c'):
19    extra_source = []
20    bld(features = 'c cprogram test',
21            lib = lib,
22            uselib = uselib,
23            source = [target_name] + extra_source,
24            target = str(target_name).split('.')[0],
25            includes = includes,
26            install_path = None,
27            defines = 'AUBIO_UNSTABLE_API=1',
28            cflags = ['-g'],
29            use = 'aubio')
Note: See TracBrowser for help on using the repository browser.