Set soname to API version.
authorCarl Hetherington <cth@carlh.net>
Mon, 18 Aug 2014 23:47:06 +0000 (00:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 18 Aug 2014 23:47:06 +0000 (00:47 +0100)
src/wscript
wscript

index 51e83be77378dc8fb243d6d63a2a750a68a35975..1d5c3f30e5fa65e09a8cae6e10d96f87d87abdf5 100644 (file)
@@ -4,6 +4,7 @@ def build(bld):
     else:
         obj = bld(features='cxx cxxshlib')
     obj.name = 'libcxml'
+    obj.vnum = bld.env.API_VERSION
     obj.target = 'cxml'
     obj.export_includes = ['.']
     obj.uselib = 'LIBXML++ BOOST_FILESYSTEM'
diff --git a/wscript b/wscript
index c5a3584f6cc3a9f7247ffc3cceae19fc4660ff9b..0892e888e0fb316370c23636437b81b6415985f5 100644 (file)
--- a/wscript
+++ b/wscript
@@ -1,5 +1,6 @@
 APPNAME = 'libcxml'
 VERSION = '0.10.0devel'
+API_VERSION = '0.0.0'
 
 def options(opt):
     opt.load('compiler_cxx')
@@ -14,6 +15,7 @@ def configure(conf):
     conf.env.TARGET_WINDOWS = conf.options.target_windows
     conf.env.STATIC = conf.options.static
     conf.env.DISABLE_TESTS = conf.options.disable_tests
+    conf.env.API_VERSION = API_VERSION
 
     if conf.options.target_windows:
         boost_lib_suffix = '-mt'