diff options
author | David Robillard <d@drobilla.net> | 2009-02-26 02:24:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-26 02:24:16 +0000 |
commit | 76f242cb804bd3c612ae5abfd0d3d078c0317dd0 (patch) | |
tree | 399476dbb1cc4c0121d79ac048852d4b79097383 /libs/midi++2/wscript | |
parent | 593ffe80331f9cca68664f9dd501ce95b545f0c8 (diff) |
Version file building stuff.
Ardour should now compile from a fresh svn checkout using only waf.
git-svn-id: svn://localhost/ardour2/branches/3.0@4671 d708f5d6-7413-0410-9779-e7cbd77b26cf
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') |