Changeset 2359cbd for examples


Ignore:
Timestamp:
Nov 6, 2009, 12:08:21 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
7b485af
Parents:
3e17aed
Message:

wscript: factorise build of extra source files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/wscript_build

    r3e17aed r2359cbd  
    11# build examples
    2 
    3 defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"']
    4 defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"']
    5 
    6 extra_source = ['utils.c', 'sndfileio.c', 'jackio.c']
    7 
    8 bld.new_task_gen(features = 'cc',
    9     includes = '../src',
    10     source = extra_source,
    11     uselib = ['LASH'],
    12     defines = defines,
    13     target = 'utils_io')
    142
    153# loop over all *.c filenames in examples to build them all
    164for target_name in bld.path.ant_glob('*.c').split():
    175  # ignore utils.c
    18   if target_name in extra_source: continue
     6  if target_name in ['utils.c', 'jackio.c', 'sndfileio.c']: continue
    197  bld.new_task_gen(features = 'cc cprogram',
    20       add_objects = 'utils_io',
     8      add_objects = 'utilsio',
    219      includes = '../src',
    22       defines = defines,
    2310      uselib = ['LASH', 'JACK', 'SNDFILE'],
    2411      uselib_local = ['aubio'],
Note: See TracChangeset for help on using the changeset viewer.