ref: 762c7faa6716776898b5e6130ff5c5e17224b05f
parent: ccc55bdf4c3eab6ecf76b744b3b6d9db84466554
author: Paul Brossier <piem@piem.org>
date: Mon May 2 21:33:30 EDT 2016
examples/wscript_build: use 'use =', simplify
--- a/examples/wscript_build
+++ b/examples/wscript_build
@@ -1,19 +1,9 @@
# vim:set syntax=python:
-lib = ['aubio']
-lib += ['m'] if 'CL.exe' not in ctx.env.CC[0] else []
-
-uselib = []
-uselib += ['FFTW3', 'FFTW3F']
-uselib += ['SAMPLERATE']
-uselib += ['SNDFILE']
-uselib += ['AVCODEC']
-uselib += ['AVFORMAT']
-uselib += ['AVRESAMPLE']
-uselib += ['AVUTIL']
+uselib = ['aubio']
uselib += ['JACK']
-uselib += ['BLAS']
+includes = ['../src']
utils_source = ['utils.c', 'jackio.c']
programs_source = ctx.path.ant_glob('*.c', excl = utils_source)
@@ -20,17 +10,15 @@
# build examples
bld(features = 'c',
source = utils_source,
- includes = ['../src'],
- uselib = uselib,
+ includes = includes,
+ use = uselib,
target = 'utilsio')
# loop over all *.c filenames in examples to build them all
for source_file in programs_source:
bld(features = 'c cprogram',
- includes = '../src',
- lib = lib,
- use = ['aubio', 'utilsio'],
- uselib = uselib,
source = source_file,
- target = str(source_file).split('.')[0]
- )
+ target = str(source_file).split('.')[0],
+ includes = includes,
+ use = uselib + ['utilsio'],
+ )