Ignore:
Timestamp:
May 3, 2016, 1:34:14 AM (9 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:
4a39e41
Parents:
762c7fa
Message:

tests/wscript_build: use 'use =', simplify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/wscript_build

    r762c7fa r21def97  
    11# vim:set syntax=python:
    22
    3 lib = ['aubio']
    4 lib += ['m'] if 'CL.exe' not in ctx.env.CC[0] else []
    5 
    6 cflags = ['-g'] if 'CL.exe' not in ctx.env.CC[0] else None
    7 
    8 uselib = []
    9 uselib += ['FFTW3', 'FFTW3F']
    10 uselib += ['SAMPLERATE']
    11 uselib += ['SNDFILE']
    12 uselib += ['AVCODEC']
    13 uselib += ['AVFORMAT']
    14 uselib += ['AVRESAMPLE']
    15 uselib += ['AVUTIL']
    16 uselib += ['JACK']
    17 uselib += ['BLAS']
     3uselib = ['aubio']
    184
    195includes = ['../src', '.']
     6programs_sources = ctx.path.ant_glob('src/**/*.c')
    207
    21 for target_name in ctx.path.ant_glob('src/**/*.c'):
    22     extra_source = []
     8for source_file in programs_sources:
    239    bld(features = 'c cprogram test',
    24             lib = lib,
    25             uselib = uselib,
    26             source = [target_name] + extra_source,
    27             target = str(target_name).split('.')[0],
     10            source = source_file,
     11            target = str(source_file).split('.')[0],
    2812            includes = includes,
    29             install_path = None,
     13            use = uselib,
    3014            defines = 'AUBIO_UNSTABLE_API=1',
    31             cflags = cflags,
    32             use = 'aubio')
     15       )
Note: See TracChangeset for help on using the changeset viewer.