Changeset 04ceeab
- Timestamp:
- Sep 25, 2009, 8:30:46 AM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- c201306
- Parents:
- 50bc5f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/wscript_build
r50bc5f2 r04ceeab 1 1 # build examples 2 3 defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"'] 4 defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"'] 5 6 bld.new_task_gen(features = 'cc', 7 includes = '../src ../ext', 8 source = 'utils.c', 9 uselib = ['LASH'], 10 defines = defines, 11 target = 'utils') 2 12 3 13 # loop over all *.c filenames in examples to build them all 4 14 for target_name in bld.path.ant_glob('*.c').split(): 5 # ignore aubioonset.c andutils.c15 # ignore utils.c 6 16 if target_name in ['utils.c']: continue 7 this_target = bld.new_task_gen(features = 'cc cprogram') 8 this_target.includes = '. ../src ../ext' 9 this_target.uselib = ['LASH'] 10 this_target.uselib_local = ['aubio', 'aubioext'] 11 this_target.defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"'] 12 this_target.defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"'] 13 # add utils.c as source file 14 this_target.source = [target_name, 'utils.c'] 15 # program name is filename.c without the .c 16 this_target.target = target_name.split('.')[0] 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 TracChangeset
for help on using the changeset viewer.