shithub: aubio

ref: b517cb3a7228de8b8215057cc208038dce432e4b
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)