diff wscript @ 173:8b6998144b16

wscript: parse version and define APPNAME
author Paul Brossier <piem@piem.org>
date Mon, 13 Feb 2017 16:50:28 +0100
parents bd719b78c8d7
children 6c64409575d8
line wrap: on
line diff
--- a/wscript	Mon Feb 13 16:44:56 2017 +0100
+++ b/wscript	Mon Feb 13 16:50:28 2017 +0100
@@ -4,6 +4,16 @@
 
 import sys, os, platform
 
+APPNAME = 'vamp-aubio-plugins'
+
+for l in open('VERSION').readlines(): exec (l.strip())
+
+VERSION = '.'.join ([str(x) for x in [
+    VAMP_AUBIO_MAJOR_VERSION,
+    VAMP_AUBIO_MINOR_VERSION,
+    VAMP_AUBIO_PATCH_VERSION
+    ]]) + VAMP_AUBIO_VERSION_STATUS
+
 local_aubio_include  = 'contrib/aubio-dist/include'
 local_aubio_lib      = 'contrib/aubio/build/src'
 local_vamp_include   = 'contrib/vamp-plugin-sdk-2.6'