summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 20:45:30 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 20:45:30 +0000
commitf93a5981436c231de688a8342d52948d59ae8ce2 (patch)
tree7b134b3004d7b456514965d760cb5c8fb9c3b30c /wscript
parentc9e107258772bced1ccce15574d05ac4e4ddfdf8 (diff)
downloadsuil-f93a5981436c231de688a8342d52948d59ae8ce2.tar.gz
suil-f93a5981436c231de688a8342d52948d59ae8ce2.tar.bz2
suil-f93a5981436c231de688a8342d52948d59ae8ce2.zip
Support parallel installation of different major versions
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3214 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 7 insertions, 4 deletions
diff --git a/wscript b/wscript
index 638ce0a..041563b 100644
--- a/wscript
+++ b/wscript
@@ -7,7 +7,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)
-SUIL_VERSION = '0.2.0'
+SUIL_VERSION = '0.2.0'
+SUIL_MAJOR_VERSION = '0'
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -55,10 +56,12 @@ def configure(conf):
def build(bld):
# C Headers
- bld.install_files('${INCLUDEDIR}/suil', bld.path.ant_glob('suil/*.h'))
+ includedir = '${INCLUDEDIR}/suil-%s/suil' % SUIL_MAJOR_VERSION
+ bld.install_files(includedir, bld.path.ant_glob('suil/*.h'))
# Pkgconfig file
- autowaf.build_pc(bld, 'SUIL', SUIL_VERSION, [])
+ autowaf.build_pc(bld, 'SUIL', SUIL_VERSION, SUIL_MAJOR_VERSION, [],
+ {'SUIL_MAJOR_VERSION' : SUIL_MAJOR_VERSION})
cflags = [ '-DSUIL_SHARED',
'-DSUIL_INTERNAL' ]
@@ -71,7 +74,7 @@ def build(bld):
obj = bld(features = 'c cshlib',
export_includes = ['.'],
source = 'src/host.c src/instance.c',
- target = 'suil',
+ target = 'suil-%s' % SUIL_MAJOR_VERSION,
includes = ['.'],
name = 'libsuil',
vnum = SUIL_LIB_VERSION,