source: tests/wscript_build @ 70a304e

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 70a304e 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
Line 
1# vim:set syntax=python:
2
3lib = ['aubio']
4lib += ['m'] if 'CL.exe' not in ctx.env.CC[0] else []
5
6cflags = ['-g'] if 'CL.exe' not in ctx.env.CC[0] else None
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
21for target_name in ctx.path.ant_glob('src/**/*.c'):
22    extra_source = []
23    bld(features = 'c cprogram test',
24            lib = lib,
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',
31            cflags = cflags,
32            use = 'aubio')
Note: See TracBrowser for help on using the repository browser.