shithub: aubio

Download patch

ref: 21def97df1fa5892c488fd534bd33f7117ab2ed6
parent: 762c7faa6716776898b5e6130ff5c5e17224b05f
author: Paul Brossier <piem@piem.org>
date: Mon May 2 21:34:14 EDT 2016

tests/wscript_build: use 'use =', simplify

--- a/tests/wscript_build
+++ b/tests/wscript_build
@@ -1,32 +1,15 @@
 # vim:set syntax=python:
 
-lib = ['aubio']
-lib += ['m'] if 'CL.exe' not in ctx.env.CC[0] else []
+uselib = ['aubio']
 
-cflags = ['-g'] if 'CL.exe' not in ctx.env.CC[0] else None
-
-uselib = []
-uselib += ['FFTW3', 'FFTW3F']
-uselib += ['SAMPLERATE']
-uselib += ['SNDFILE']
-uselib += ['AVCODEC']
-uselib += ['AVFORMAT']
-uselib += ['AVRESAMPLE']
-uselib += ['AVUTIL']
-uselib += ['JACK']
-uselib += ['BLAS']
-
 includes = ['../src', '.']
+programs_sources = ctx.path.ant_glob('src/**/*.c')
 
-for target_name in ctx.path.ant_glob('src/**/*.c'):
-    extra_source = []
+for source_file in programs_sources:
     bld(features = 'c cprogram test',
-            lib = lib,
-            uselib = uselib,
-            source = [target_name] + extra_source,
-            target = str(target_name).split('.')[0],
+            source = source_file,
+            target = str(source_file).split('.')[0],
             includes = includes,
-            install_path = None,
+            use = uselib,
             defines = 'AUBIO_UNSTABLE_API=1',
-            cflags = cflags,
-            use = 'aubio')
+       )