feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 2b43a9e was
7e52871,
checked in by Paul Brossier <piem@piem.org>, 11 years ago
|
src/wscript_build: added missing -lm
Signed-off-by: Paul Brossier <piem@piem.org>
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[0e355f6] | 1 | # vim:set syntax=python: |
---|
| 2 | |
---|
[eae5898] | 3 | source = ctx.path.ant_glob('*.c **/*.c') |
---|
| 4 | uselib = [] |
---|
[0318cc1] | 5 | uselib += ['FFTW3', 'FFTW3F'] |
---|
| 6 | uselib += ['SAMPLERATE'] |
---|
| 7 | uselib += ['SNDFILE'] |
---|
[ba0ba10] | 8 | uselib += ['AVCODEC'] |
---|
| 9 | uselib += ['AVFORMAT'] |
---|
| 10 | uselib += ['AVRESAMPLE'] |
---|
| 11 | uselib += ['AVUTIL'] |
---|
[eae5898] | 12 | |
---|
[985a5d1] | 13 | ctx(features = 'c', |
---|
| 14 | source = source, |
---|
| 15 | includes = ['.'], |
---|
| 16 | uselib = uselib, |
---|
| 17 | lib = 'm', |
---|
| 18 | target = 'lib_objects') |
---|
[afbd7e7] | 19 | |
---|
[985a5d1] | 20 | # build libaubio.so (cshlib) and/or libaubio.a (cstlib) |
---|
[19ddbf3] | 21 | if ctx.env['DEST_OS'] in ['ios', 'iosimulator']: |
---|
[7fd1831] | 22 | build_features = ['cstlib'] |
---|
[06dba46] | 23 | elif ctx.env['DEST_OS'] in ['win32', 'win64']: |
---|
| 24 | build_features = ['cshlib'] |
---|
[cdfc394] | 25 | else: #linux, darwin, android, mingw, ... |
---|
[7fd1831] | 26 | build_features = ['cshlib', 'cstlib'] |
---|
[b712146] | 27 | |
---|
[7fd1831] | 28 | for target in build_features: |
---|
| 29 | ctx(features = 'c ' + target, |
---|
| 30 | use = ['lib_objects'], #source = source, |
---|
[7e52871] | 31 | lib = 'm', |
---|
[7fd1831] | 32 | target = 'aubio', |
---|
| 33 | install_path = '${PREFIX}/lib', |
---|
| 34 | vnum = ctx.env['LIB_VERSION']) |
---|
[000b090] | 35 | |
---|
| 36 | # install headers, except _priv.h ones |
---|
[d41bc4d] | 37 | ctx.install_files('${PREFIX}/include/aubio/', |
---|
[6ed0f4e] | 38 | ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']), |
---|
| 39 | relative_trick=True) |
---|
Note: See
TracBrowser
for help on using the repository browser.