source: examples/wscript_build @ 47f17fc

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

examples/wscript_build: compile utils.c only once

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