source: src/wscript_build @ 54a2ca2

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

src/wscript_build: install lib anyway

  • Property mode set to 100644
File size: 810 bytes
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3source = ctx.path.ant_glob('*.c **/*.c')
4uselib = []
5
[729a3c0]6if 'HAVE_FFTW3' in conf.get_env():
[eae5898]7  source.filter(lambda x: not x.endswith('ooura_fft8g.c'))
[729a3c0]8  uselib += ['FFTW3', 'FFTW3F']
[eae5898]9
10if 'HAVE_SAMPLERATE':
11  uselib += ['SAMPLERATE']
[729a3c0]12
[afbd7e7]13if 'HAVE_SNDFILE':
14  uselib += ['SNDFILE']
15
[000b090]16# build libaubio
[30250de]17from waflib import Options
[b712146]18if Options.platform == 'ios':
19    build_lib_func = ctx.stlib
20else:
21    build_lib_func = ctx.shlib
22
[30250de]23build_lib_func(
[000b090]24    includes = ['.'],
[729a3c0]25    source = source,
[000b090]26    target = 'aubio',
[729a3c0]27    lib = 'm',
28    uselib = uselib,
[b712146]29    install_path = '${PREFIX}/lib',
[d41bc4d]30    vnum = ctx.env['LIB_VERSION'])
[000b090]31
32# install headers, except _priv.h ones
[d41bc4d]33ctx.install_files('${PREFIX}/include/aubio/',
[6ed0f4e]34    ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
35    relative_trick=True)
Note: See TracBrowser for help on using the repository browser.