wscript, **/wscript_build: use ctx to match latest waf docs
[aubio.git] / src / wscript_build
1 # vim:set syntax=python:
2
3 uselib = ['SAMPLERATE']
4 if 'HAVE_FFTW3' in conf.get_env():
5   source = ctx.path.ant_glob('*.c **/*.c', excl = ['**/ooura_fft8g.c'])
6   uselib += ['FFTW3', 'FFTW3F']
7 else:
8   source = ctx.path.ant_glob('*.c **/*.c')
9
10 # build libaubio
11 ctx.shlib(
12     includes = ['.'],
13     source = source,
14     target = 'aubio',
15     lib = 'm',
16     uselib = uselib,
17     vnum = ctx.env['LIB_VERSION'])
18
19 # install headers, except _priv.h ones
20 ctx.install_files('${PREFIX}/include/aubio/',
21         ctx.path.ant_glob('**/*.h',
22         exclude = ['_priv.h', 'config.h']),
23         relative_trick=True)