Changeset 04ceeab


Ignore:
Timestamp:
Sep 25, 2009, 8:30:46 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:
c201306
Parents:
50bc5f2
Message:

examples/wscript_build: compile utils.c only once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/wscript_build

    r50bc5f2 r04ceeab  
    11# 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')
    212
    313# loop over all *.c filenames in examples to build them all
    414for target_name in bld.path.ant_glob('*.c').split():
    5   # ignore aubioonset.c and utils.c
     15  # ignore utils.c
    616  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.