source: src/wscript_build @ 98d8d2b

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
3uselib = []
4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
11
12# build each source files
13source = ctx.path.ant_glob('*.c **/*.c')
14ctx(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)
22if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
23    build_features = ['cstlib', 'cshlib']
24elif ctx.env['DEST_OS'] in ['win32', 'win64']:
25    build_features = ['cshlib']
26else: #linux, darwin, android, mingw, ...
27    build_features = ['cshlib', 'cstlib']
28
29for 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
38ctx.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.