source: examples/wscript_build @ 740f06b

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

ext/, examples/, swig/, python/, tests/: remove libaubioext, make libsamplerate optional

  • Property mode set to 100644
File size: 850 bytes
RevLine 
[000b090]1# build examples
2
[04ceeab]3defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"']
4defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"']
5
[740f06b]6extra_source = ['utils.c', 'sndfileio.c', 'jackio.c']
7
[04ceeab]8bld.new_task_gen(features = 'cc',
[740f06b]9    includes = '../src',
10    source = extra_source,
[04ceeab]11    uselib = ['LASH'],
12    defines = defines,
[740f06b]13    target = 'utils_io')
[04ceeab]14
[000b090]15# loop over all *.c filenames in examples to build them all
16for target_name in bld.path.ant_glob('*.c').split():
[04ceeab]17  # ignore utils.c
[740f06b]18  if target_name in extra_source: continue
[04ceeab]19  bld.new_task_gen(features = 'cc cprogram',
[740f06b]20      add_objects = 'utils_io',
21      includes = '../src',
[04ceeab]22      defines = defines,
[740f06b]23      uselib = ['LASH', 'JACK', 'SNDFILE'],
24      uselib_local = ['aubio'],
[04ceeab]25      source = target_name,
26      # program name is filename.c without the .c
27      target = target_name.split('.')[0])
Note: See TracBrowser for help on using the repository browser.