shithub: aubio

ref: 10a6f7d1b9567bbcd521c3f92d8fab2b421879c7
dir: /src/wscript_build/

View raw version
# vim:set syntax=python:

uselib = ['SAMPLERATE']
if 'HAVE_FFTW3' in conf.get_env():
  source = ctx.path.ant_glob('*.c **/*.c', excl = ['**/ooura_fft8g.c'])
  uselib += ['FFTW3', 'FFTW3F']
else:
  source = ctx.path.ant_glob('*.c **/*.c')

# build libaubio
ctx.shlib(
    includes = ['.'],
    source = source,
    target = 'aubio',
    lib = 'm',
    uselib = uselib,
    vnum = ctx.env['LIB_VERSION'])

# install headers, except _priv.h ones
ctx.install_files('${PREFIX}/include/aubio/',
	ctx.path.ant_glob('**/*.h',
	exclude = ['_priv.h', 'config.h']),
	relative_trick=True)