Changeset 2359cbd for wscript


Ignore:
Timestamp:
Nov 6, 2009, 12:08:21 AM (14 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
  • wscript

    r3e17aed r2359cbd  
    126126  bld.env['LIB_VERSION'] = LIB_VERSION
    127127
     128  build_extras(bld)
     129
    128130  # add sub directories
    129131  bld.add_subdirs('src examples')
     
    181183      this_target.uselib = ['JACK']
    182184      this_target.source += ' examples/jackio.c'
     185
     186def build_extras(bld):
     187    # corner cases to build these ones only once
     188    sndfileio = bld.new_task_gen(features = 'cc',
     189        includes = 'examples src',
     190        source = ['examples/sndfileio.c'],
     191        target = 'sndfileio')
     192
     193    defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"']
     194    defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"']
     195
     196    utilsio = bld.new_task_gen(features = 'cc',
     197          includes = 'examples src',
     198          add_objects = 'sndfileio',
     199          source = ['examples/utils.c', 'examples/jackio.c'],
     200          defines = defines,
     201          target = 'utilsio')
Note: See TracChangeset for help on using the changeset viewer.