shithub: aubio

ref: 39122f04202548d4419e7072c99e07fad41a4579
dir: /tests/wscript_build/

View raw version
# vim:set syntax=python:

for target_name in ctx.path.ant_glob('src/**/*.c'):
    uselib = []
    uselib += ['FFTW3', 'FFTW3F']
    uselib += ['SAMPLERATE']
    uselib += ['SNDFILE']
    uselib += ['AVCODEC']
    uselib += ['AVFORMAT']
    uselib += ['AVRESAMPLE']
    uselib += ['AVUTIL']
    uselib += ['JACK']
    uselib += ['BLAS']
    includes = ['../src', '.']
    extra_source = []

    bld(features = 'c cprogram test',
            lib = 'm',
            uselib = uselib,
            source = [target_name] + extra_source,
            target = str(target_name).split('.')[0],
            includes = includes,
            install_path = None,
            defines = 'AUBIO_UNSTABLE_API=1',
            cflags = ['-g'],
            use = 'aubio')