source: src/wscript_build @ 5525507

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

src/wscript_build: do not hardcode install_path

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3uselib = []
[0318cc1]4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
[ba0ba10]7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
[eae5898]11
[dc0e759]12# build each source files
13source = ctx.path.ant_glob('*.c **/*.c')
[985a5d1]14ctx(features = 'c',
[dc0e759]15        source = source,
16        includes = ['.'],
17        uselib = uselib,
18        lib = 'm',
19        target = 'lib_objects')
[afbd7e7]20
[985a5d1]21# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
[19ddbf3]22if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
[7fd1831]23    build_features = ['cstlib']
[06dba46]24elif ctx.env['DEST_OS'] in ['win32', 'win64']:
25    build_features = ['cshlib']
[cdfc394]26else: #linux, darwin, android, mingw, ...
[7fd1831]27    build_features = ['cshlib', 'cstlib']
[b712146]28
[7fd1831]29for target in build_features:
[dc0e759]30    ctx(features = 'c ' + target,
31            use = ['lib_objects'],
32            lib = 'm',
33            target = 'aubio',
34            vnum = ctx.env['LIB_VERSION'])
[000b090]35
36# install headers, except _priv.h ones
[d41bc4d]37ctx.install_files('${PREFIX}/include/aubio/',
[dc0e759]38        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
39        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.