tests/wscript_build: no -g for msvc
[aubio.git] / tests / wscript_build
1 # vim:set syntax=python:
2
3 lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None
4 cflags = ['-g'] if 'CL.exe' not in ctx.env.CC[0] else None
5
6 uselib = []
7 uselib += ['FFTW3', 'FFTW3F']
8 uselib += ['SAMPLERATE']
9 uselib += ['SNDFILE']
10 uselib += ['AVCODEC']
11 uselib += ['AVFORMAT']
12 uselib += ['AVRESAMPLE']
13 uselib += ['AVUTIL']
14 uselib += ['JACK']
15 uselib += ['BLAS']
16
17 includes = ['../src', '.']
18
19 for target_name in ctx.path.ant_glob('src/**/*.c'):
20     extra_source = []
21     bld(features = 'c cprogram test',
22             lib = lib,
23             uselib = uselib,
24             source = [target_name] + extra_source,
25             target = str(target_name).split('.')[0],
26             includes = includes,
27             install_path = None,
28             defines = 'AUBIO_UNSTABLE_API=1',
29             cflags = cflags,
30             use = 'aubio')