summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 20:45:20 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 20:45:20 +0000
commitba95acb21e2f1eff8fe69d0cc09cd1c21434feaf (patch)
tree69e954422d73d4fbe29b58ea7496cef4a36c6ad4 /wscript
parentf1982b223258c47ea1abadc110243901e028201b (diff)
downloadsord-ba95acb21e2f1eff8fe69d0cc09cd1c21434feaf.tar.gz
sord-ba95acb21e2f1eff8fe69d0cc09cd1c21434feaf.tar.bz2
sord-ba95acb21e2f1eff8fe69d0cc09cd1c21434feaf.zip
Support parallel installation of different major versions
git-svn-id: http://svn.drobilla.net/sord/trunk@100 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r--wscript17
1 files changed, 10 insertions, 7 deletions
diff --git a/wscript b/wscript
index d6c4340..af0c593 100644
--- a/wscript
+++ b/wscript
@@ -5,7 +5,8 @@ from waflib.extras import autowaf as autowaf
import waflib.Logs as Logs, waflib.Options as Options
# Version of this package (even if built as a child)
-SORD_VERSION = '0.1.0'
+SORD_VERSION = '0.2.0'
+SORD_MAJOR_VERSION = '0'
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -39,8 +40,8 @@ def configure(conf):
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB',
atleast_version='2.0.0', mandatory=True)
- autowaf.check_pkg(conf, 'serd', uselib_store='SERD',
- atleast_version='0.1.0', mandatory=True)
+ autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
+ atleast_version='0.2.0', mandatory=True)
conf.env['BUILD_TESTS'] = Options.options.build_tests
conf.env['BUILD_UTILS'] = True
@@ -64,11 +65,13 @@ def configure(conf):
def build(bld):
# C/C++ Headers
- bld.install_files('${INCLUDEDIR}/sord', bld.path.ant_glob('sord/*.h'))
- bld.install_files('${INCLUDEDIR}/sord', bld.path.ant_glob('sord/*.hpp'))
+ includedir = '${INCLUDEDIR}/sord-%s/sord' % SORD_MAJOR_VERSION
+ bld.install_files(includedir, bld.path.ant_glob('sord/*.h'))
+ bld.install_files(includedir, bld.path.ant_glob('sord/*.hpp'))
# Pkgconfig file
- autowaf.build_pc(bld, 'SORD', SORD_VERSION, [])
+ autowaf.build_pc(bld, 'SORD', SORD_VERSION, SORD_MAJOR_VERSION, [],
+ {'SORD_MAJOR_VERSION' : SORD_MAJOR_VERSION})
# Library
obj = bld(features = 'c cshlib',
@@ -76,7 +79,7 @@ def build(bld):
includes = ['.', './src'],
export_includes = ['.'],
name = 'libsord',
- target = 'sord',
+ target = 'sord-%s' % SORD_MAJOR_VERSION,
vnum = SORD_LIB_VERSION,
install_path = '${LIBDIR}',
libs = [ 'm' ],