summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/wscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/pbd/wscript b/libs/pbd/wscript
index a523956617..cf708c12b6 100644
--- a/libs/pbd/wscript
+++ b/libs/pbd/wscript
@@ -2,7 +2,10 @@
import autowaf
# Version of this package (even if built as a child)
-LIBPBD_VERSION = '0.0.0'
+MAJOR = '4'
+MINOR = '1'
+MICRO = '0'
+LIBPBD_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -18,10 +21,14 @@ VERSION = LIBPBD_VERSION
srcdir = '.'
blddir = 'build'
+path_prefix = 'libs/pbd/'
+
def set_options(opt):
autowaf.set_options(opt)
def configure(conf):
+ autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
+ 'libpbd', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')