diff options
Diffstat (limited to 'libs/midi++2/wscript')
-rw-r--r-- | libs/midi++2/wscript | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/midi++2/wscript b/libs/midi++2/wscript index 43ec395b4b..8629d2c4c3 100644 --- a/libs/midi++2/wscript +++ b/libs/midi++2/wscript @@ -2,7 +2,10 @@ import autowaf # Version of this package (even if built as a child) -LIBMIDIPP_VERSION = '0.0.0' +MAJOR = '2' +MINOR = '1' +MICRO = '1' +LIBMIDIPP_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO) # Library version (UNIX style major, minor, micro) # major increment <=> incompatible changes @@ -18,10 +21,14 @@ VERSION = LIBMIDIPP_VERSION srcdir = '.' blddir = 'build' +path_prefix = 'libs/midi++2/' + def set_options(opt): autowaf.set_options(opt) def configure(conf): + autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc', + 'midipp', MAJOR, MINOR, MICRO) autowaf.configure(conf) autowaf.check_tool(conf, 'compiler_cxx') autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0') |