shithub: aubio

ref: fff7b92ffe9dd9d37d27aaf681af8572588c735b
dir: /src/wscript_build/

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

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

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