source: src/wscript_build @ 2b3c438

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5sampleryinfft+
Last change on this file since 2b3c438 was 8698499, checked in by Paul Brossier <piem@piem.org>, 8 years ago

src/wscript_build: also install static library

See this post from waf author:

https://groups.google.com/forum/#!msg/waf-users/GBHPrmO_lDg/34VWYEaks40J

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# vim:set syntax=python:
2
3uselib = []
4uselib += ['M']
5uselib += ['FFTW3', 'FFTW3F']
6uselib += ['SAMPLERATE']
7uselib += ['SNDFILE']
8uselib += ['AVCODEC']
9uselib += ['AVFORMAT']
10uselib += ['AVRESAMPLE']
11uselib += ['AVUTIL']
12uselib += ['BLAS']
13
14source = ctx.path.ant_glob('*.c **/*.c')
15
16ctx(features = 'c',
17        source = source,
18        includes = ['.'],
19        use = uselib,
20        target = 'lib_objects')
21
22# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
23if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
24    build_features = ['cstlib', 'cshlib']
25elif ctx.env['DEST_OS'] in ['win32', 'win64']:
26    build_features = ['cstlib', 'cshlib']
27elif ctx.env['DEST_OS'] in ['emscripten']:
28    build_features = ['cstlib']
29else: #linux, darwin, android, mingw, ...
30    build_features = ['cstlib', 'cshlib']
31
32# also install static lib
33from waflib.Tools.c import cstlib
34from waflib.Tools.fc import fcstlib
35fcstlib.inst_to = cstlib.inst_to = '${LIBDIR}'
36
37for target in build_features:
38    ctx(features = 'c ' + target,
39            use = uselib + ['lib_objects'],
40            target = 'aubio',
41            vnum = ctx.env['LIB_VERSION'])
42
43# install headers, except _priv.h ones
44ctx.install_files('${PREFIX}/include/aubio/',
45        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
46        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.