aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 20:45:14 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 20:45:14 +0000
commit253f6ba9c97328199f5b4c22d8e68a393abcf038 (patch)
tree657385433d6b90fc1ac139ee961827b2425218c6 /wscript
parent68aa3540cb71c5e0473cc4568431a0e5f5ae29f0 (diff)
downloadserd-253f6ba9c97328199f5b4c22d8e68a393abcf038.tar.gz
serd-253f6ba9c97328199f5b4c22d8e68a393abcf038.tar.bz2
serd-253f6ba9c97328199f5b4c22d8e68a393abcf038.zip
Support parallel installation of different major versions
git-svn-id: http://svn.drobilla.net/serd/trunk@151 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 7 insertions, 4 deletions
diff --git a/wscript b/wscript
index 635f4e05..55a41265 100644
--- a/wscript
+++ b/wscript
@@ -9,7 +9,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)
-SERD_VERSION = '0.1.1'
+SERD_VERSION = '0.2.0'
+SERD_MAJOR_VERSION = '0'
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -58,10 +59,12 @@ def configure(conf):
def build(bld):
# C Headers
- bld.install_files('${INCLUDEDIR}/serd', bld.path.ant_glob('serd/*.h'))
+ includedir = '${INCLUDEDIR}/serd-%s/serd' % SERD_MAJOR_VERSION
+ bld.install_files(includedir, bld.path.ant_glob('serd/*.h'))
# Pkgconfig file
- autowaf.build_pc(bld, 'SERD', SERD_VERSION, [])
+ autowaf.build_pc(bld, 'SERD', SERD_VERSION, SERD_MAJOR_VERSION, [],
+ {'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION})
lib_source = '''
src/env.c
@@ -77,7 +80,7 @@ def build(bld):
obj.source = lib_source
obj.includes = ['.', './src']
obj.name = 'libserd'
- obj.target = 'serd'
+ obj.target = 'serd-%s' % SERD_MAJOR_VERSION
obj.vnum = SERD_LIB_VERSION
obj.install_path = '${LIBDIR}'
obj.cflags = [ '-fvisibility=hidden', '-DSERD_SHARED', '-DSERD_INTERNAL' ]