source: src/wscript_build @ 0c3baa73

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

src/wscript_build: honor --includedir

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3uselib = []
[ccc55bd]4uselib += ['M']
[0318cc1]5uselib += ['FFTW3', 'FFTW3F']
6uselib += ['SAMPLERATE']
7uselib += ['SNDFILE']
[ba0ba10]8uselib += ['AVCODEC']
9uselib += ['AVFORMAT']
10uselib += ['AVRESAMPLE']
11uselib += ['AVUTIL']
[f0ce36a1]12uselib += ['BLAS']
[eae5898]13
[dc0e759]14source = ctx.path.ant_glob('*.c **/*.c')
[ccc55bd]15
[985a5d1]16ctx(features = 'c',
[dc0e759]17        source = source,
18        includes = ['.'],
[ccc55bd]19        use = uselib,
[dc0e759]20        target = 'lib_objects')
[afbd7e7]21
[985a5d1]22# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
[19ddbf3]23if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
[a90e9d4]24    build_features = ['cstlib', 'cshlib']
[06dba46]25elif ctx.env['DEST_OS'] in ['win32', 'win64']:
[25e2001]26    build_features = ['cstlib', 'cshlib']
[fb5838a]27elif ctx.env['DEST_OS'] in ['emscripten']:
28    build_features = ['cstlib']
[0ec7113]29elif '--static' in ctx.env['LDFLAGS'] or '--static' in ctx.env['LINKFLAGS']:
30    # static in cflags, ...
31    build_features = ['cstlib']
32else:
33    # linux, darwin, android, mingw, ...
[3bf80b9]34    build_features = ['cstlib', 'cshlib']
[b712146]35
[8698499]36# also install static lib
37from waflib.Tools.c import cstlib
38from waflib.Tools.fc import fcstlib
39fcstlib.inst_to = cstlib.inst_to = '${LIBDIR}'
40
[7fd1831]41for target in build_features:
[dc0e759]42    ctx(features = 'c ' + target,
[ccc55bd]43            use = uselib + ['lib_objects'],
[dc0e759]44            target = 'aubio',
45            vnum = ctx.env['LIB_VERSION'])
[000b090]46
47# install headers, except _priv.h ones
[0ec7113]48ctx.install_files('${INCLUDEDIR}/aubio/',
[dc0e759]49        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
50        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.