diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-22 00:44:05 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-22 00:44:05 +0000 |
| commit | b8521420b8dcb074fe892cb606f10c98588e301a (patch) | |
| tree | 8374ca98baeb5335f4e26340bc561ebf1f503c71 /wscript | |
| parent | 2074fd0b9eafe7f79079f665039e9f554f1445e7 (diff) | |
More API version fixes.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,6 +3,7 @@ import os APPNAME = 'libsub' VERSION = '1.0.0devel' +API_VERSION = '-1.0' def options(opt): opt.load('compiler_cxx') @@ -20,6 +21,7 @@ def configure(conf): conf.env.STATIC = conf.options.static conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.DISABLE_TESTS = conf.options.disable_tests + conf.env.API_VERSION = API_VERSION if conf.options.enable_debug: conf.env.append_value('CXXFLAGS', '-g') @@ -85,9 +87,9 @@ def build(bld): else: boost_lib_suffix = '' - bld(source='libsub-1.0.pc.in', + bld(source='libsub%s.pc.in' % bld.env.API_VERSION, version=VERSION, - includedir='%s/include/libsub-1.0' % bld.env.PREFIX, + includedir='%s/include/libsub%s' % (bld.env.PREFIX, bld.env.API_VERSION), libs="-L${libdir} -lsub -lboost_system%s" % boost_lib_suffix, install_path='${LIBDIR}/pkgconfig') |
