From: Paul Brossier Date: Thu, 21 Jul 2016 00:52:09 +0000 (+0200) Subject: {examples,tests}/wscrtip_build: update build target name X-Git-Tag: 0.4.4~284 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=281381fc1bab18d5c377da243dadf6a9b894341b {examples,tests}/wscrtip_build: update build target name --- diff --git a/examples/wscript_build b/examples/wscript_build index 47e748ed..7970bf65 100644 --- a/examples/wscript_build +++ b/examples/wscript_build @@ -1,5 +1,7 @@ # vim:set syntax=python: +import os.path + uselib = ['aubio'] uselib += ['JACK'] @@ -16,9 +18,10 @@ bld(features = 'c', # loop over all *.c filenames in examples to build them all for source_file in programs_source: + target = os.path.basename(os.path.splitext(str(source_file))[0]) bld(features = 'c cprogram', source = source_file, - target = str(source_file).split('.')[0], + target = target, includes = includes, use = uselib + ['utilsio'], ) diff --git a/tests/wscript_build b/tests/wscript_build index 78bb646b..45e83b8e 100644 --- a/tests/wscript_build +++ b/tests/wscript_build @@ -1,14 +1,17 @@ # vim:set syntax=python: +import os.path + uselib = ['aubio'] includes = ['../src', '.'] programs_sources = ctx.path.ant_glob('src/**/*.c') for source_file in programs_sources: + target = os.path.basename(os.path.splitext(str(source_file))[0]) bld(features = 'c cprogram test', source = source_file, - target = str(source_file).split('.')[0], + target = target, includes = includes, use = uselib, install_path = None,