summaryrefslogtreecommitdiff
path: root/tests/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wscript_build')
-rw-r--r--tests/wscript_build19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/wscript_build b/tests/wscript_build
new file mode 100644
index 0000000..45e83b8
--- /dev/null
+++ b/tests/wscript_build
@@ -0,0 +1,19 @@
+# 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 = target,
+ includes = includes,
+ use = uselib,
+ install_path = None,
+ defines = 'AUBIO_UNSTABLE_API=1',
+ )