source: src/wscript_build @ 2e50800

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

src/io/source_avcodec.c: added first draft

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3source = ctx.path.ant_glob('*.c **/*.c')
4uselib = []
[0318cc1]5uselib += ['FFTW3', 'FFTW3F']
6uselib += ['SAMPLERATE']
7uselib += ['SNDFILE']
[ba0ba10]8uselib += ['AVCODEC']
9uselib += ['AVFORMAT']
10uselib += ['AVRESAMPLE']
11uselib += ['AVUTIL']
[0318cc1]12uselib += ['JACK']
13uselib += ['LASH']
[eae5898]14
[985a5d1]15ctx(features = 'c',
16      source = source,
17      includes = ['.'],
18      uselib = uselib,
19      lib = 'm',
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']:
[7fd1831]24    build_features = ['cstlib']
[cdfc394]25else: #linux, darwin, android, mingw, ...
[7fd1831]26    build_features = ['cshlib', 'cstlib']
[b712146]27
[7fd1831]28for target in build_features:
29  ctx(features = 'c ' + target,
30      use = ['lib_objects'], #source = source,
31      target = 'aubio',
32      install_path = '${PREFIX}/lib',
33      vnum = ctx.env['LIB_VERSION'])
[000b090]34
35# install headers, except _priv.h ones
[d41bc4d]36ctx.install_files('${PREFIX}/include/aubio/',
[6ed0f4e]37    ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
38    relative_trick=True)
Note: See TracBrowser for help on using the repository browser.