source: tests/wscript_build @ 3bf80b9

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 3bf80b9 was 7e9c67d, checked in by Paul Brossier <piem@piem.org>, 9 years ago

tests/wscript_build: link against libaubio

  • Property mode set to 100644
File size: 840 bytes
RevLine 
[6ed0f4e]1# vim:set syntax=python:
2
[7e9c67d]3lib = ['aubio']
4lib += ['m'] if 'CL.exe' not in ctx.env.CC[0] else []
5
[d0cb3d8]6cflags = ['-g'] if 'CL.exe' not in ctx.env.CC[0] else None
[58cffee]7
8uselib = []
9uselib += ['FFTW3', 'FFTW3F']
10uselib += ['SAMPLERATE']
11uselib += ['SNDFILE']
12uselib += ['AVCODEC']
13uselib += ['AVFORMAT']
14uselib += ['AVRESAMPLE']
15uselib += ['AVUTIL']
16uselib += ['JACK']
17uselib += ['BLAS']
18
19includes = ['../src', '.']
20
[6ed0f4e]21for target_name in ctx.path.ant_glob('src/**/*.c'):
[dc0e759]22    extra_source = []
23    bld(features = 'c cprogram test',
[58cffee]24            lib = lib,
[dc0e759]25            uselib = uselib,
26            source = [target_name] + extra_source,
27            target = str(target_name).split('.')[0],
28            includes = includes,
29            install_path = None,
30            defines = 'AUBIO_UNSTABLE_API=1',
[d0cb3d8]31            cflags = cflags,
[dc0e759]32            use = 'aubio')
Note: See TracBrowser for help on using the repository browser.