feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 36e95674 was
36e95674,
checked in by Paul Brossier <piem@piem.org>, 9 years ago
|
examples/wscript_build: link against libaubio
|
-
Property mode set to
100644
|
File size:
927 bytes
|
Rev | Line | |
---|
[d62c32f] | 1 | # vim:set syntax=python: |
---|
| 2 | |
---|
[36e95674] | 3 | lib = ['aubio'] |
---|
| 4 | lib += ['m'] if 'CL.exe' not in ctx.env.CC[0] else [] |
---|
[f4ad83d2] | 5 | |
---|
[ed090ff7] | 6 | uselib = [] |
---|
[db86a46] | 7 | uselib += ['FFTW3', 'FFTW3F'] |
---|
| 8 | uselib += ['SAMPLERATE'] |
---|
| 9 | uselib += ['SNDFILE'] |
---|
| 10 | uselib += ['AVCODEC'] |
---|
| 11 | uselib += ['AVFORMAT'] |
---|
| 12 | uselib += ['AVRESAMPLE'] |
---|
| 13 | uselib += ['AVUTIL'] |
---|
[ed090ff7] | 14 | uselib += ['JACK'] |
---|
[f0ce36a1] | 15 | uselib += ['BLAS'] |
---|
[ed090ff7] | 16 | |
---|
[f6ee160] | 17 | utils_source = ['utils.c', 'jackio.c'] |
---|
| 18 | programs_source = ctx.path.ant_glob('*.c', excl = utils_source) |
---|
| 19 | |
---|
[d62c32f] | 20 | # build examples |
---|
[f6ee160] | 21 | bld(features = 'c', |
---|
[dc0e759] | 22 | source = utils_source, |
---|
| 23 | includes = ['../src'], |
---|
| 24 | uselib = uselib, |
---|
| 25 | target = 'utilsio') |
---|
[110ac90] | 26 | |
---|
[d62c32f] | 27 | # loop over all *.c filenames in examples to build them all |
---|
[f6ee160] | 28 | for source_file in programs_source: |
---|
[dc0e759] | 29 | bld(features = 'c cprogram', |
---|
| 30 | includes = '../src', |
---|
[f4ad83d2] | 31 | lib = lib, |
---|
[dc0e759] | 32 | use = ['aubio', 'utilsio'], |
---|
[6d7acc8] | 33 | uselib = uselib, |
---|
[dc0e759] | 34 | source = source_file, |
---|
| 35 | target = str(source_file).split('.')[0] |
---|
| 36 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.