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