Changeset f6ee160


Ignore:
Timestamp:
Nov 21, 2013, 8:09:16 PM (10 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:
7fd1831
Parents:
aad688e
Message:

examples/wscript_build: simplify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/wscript_build

    raad688e rf6ee160  
    11# vim:set syntax=python:
    22
     3utils_source = ['utils.c', 'jackio.c']
     4programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
     5
    36# build examples
    4 utilsio = bld(
    5         name = 'utilsio',
    6         features = 'c',
    7         includes = '../src',
    8         source = ['utils.c', 'jackio.c'],
    9         target = 'utilsio')
     7bld(features = 'c',
     8      source = utils_source,
     9      includes = ['../src'],
     10      target = 'utilsio')
    1011
    1112# loop over all *.c filenames in examples to build them all
    12 for source_file in ctx.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c']):
    13   bld.program(features = 'c cprogram',
     13for source_file in programs_source:
     14  bld(features = 'c cprogram',
    1415      includes = '../src',
    1516      lib = 'm',
    1617      use = ['aubio', 'utilsio'],
    17       source = str(source_file),
     18      source = source_file,
    1819      target = str(source_file).split('.')[0]
    1920    )
Note: See TracChangeset for help on using the changeset viewer.