diff options
author | David Robillard <d@drobilla.net> | 2011-04-28 20:45:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-28 20:45:30 +0000 |
commit | f93a5981436c231de688a8342d52948d59ae8ce2 (patch) | |
tree | 7b134b3004d7b456514965d760cb5c8fb9c3b30c /wscript | |
parent | c9e107258772bced1ccce15574d05ac4e4ddfdf8 (diff) | |
download | suil-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-- | wscript | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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, |