summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-26 02:24:16 +0000
committerDavid Robillard <d@drobilla.net>2009-02-26 02:24:16 +0000
commit76f242cb804bd3c612ae5abfd0d3d078c0317dd0 (patch)
tree399476dbb1cc4c0121d79ac048852d4b79097383 /libs/ardour
parent593ffe80331f9cca68664f9dd501ce95b545f0c8 (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/ardour')
-rw-r--r--libs/ardour/wscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index e48632c6a0..e2b3200fd5 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -3,7 +3,10 @@ import autowaf
import os
# Version of this package (even if built as a child)
-LIBARDOUR_VERSION = '3.0.0'
+MAJOR = '3'
+MINOR = '0'
+MICRO = '0'
+LIBARDOUR_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -19,6 +22,8 @@ VERSION = LIBARDOUR_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/ardour/'
+
def set_options(opt):
autowaf.set_options(opt)
@@ -29,6 +34,8 @@ def check_header_and_define(conf, header, define):
conf.env.append_value('CXXFLAGS', '-D' + define)
def configure(conf):
+ autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc',
+ 'libardour3', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', atleast_version='0.3.2')