Merge branch 'develop' into io
[aubio.git] / src / wscript_build
1 # vim:set syntax=python:
2
3 source = ctx.path.ant_glob('*.c **/*.c')
4 uselib = []
5
6 if 'HAVE_FFTW3' in conf.get_env():
7   source.filter(lambda x: not x.endswith('ooura_fft8g.c'))
8   uselib += ['FFTW3', 'FFTW3F']
9
10 if 'HAVE_SAMPLERATE':
11   uselib += ['SAMPLERATE']
12
13 if 'HAVE_SNDFILE':
14   uselib += ['SNDFILE']
15
16 # build libaubio
17 ctx.shlib(
18     includes = ['.'],
19     source = source,
20     target = 'aubio',
21     lib = 'm',
22     uselib = uselib,
23     vnum = ctx.env['LIB_VERSION'])
24
25 # install headers, except _priv.h ones
26 ctx.install_files('${PREFIX}/include/aubio/',
27         ctx.path.ant_glob('**/*.h',
28         exclude = ['_priv.h', 'config.h']),
29         relative_trick=True)