summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-29 03:23:26 +0000
committerDavid Robillard <d@drobilla.net>2008-11-29 03:23:26 +0000
commit790fdebd3f12eeb5a46f9be9d2d16f7737034db9 (patch)
tree9f32450ec26139d96c78d84450b4c91ea2b28bb0 /wscript
parent29870b1d16c8599d23a282ae07e9bad10b69d239 (diff)
downloadlilv-790fdebd3f12eeb5a46f9be9d2d16f7737034db9.tar.gz
lilv-790fdebd3f12eeb5a46f9be9d2d16f7737034db9.tar.bz2
lilv-790fdebd3f12eeb5a46f9be9d2d16f7737034db9.zip
Upgrade to waf 1.5.0.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1823 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript31
1 files changed, 15 insertions, 16 deletions
diff --git a/wscript b/wscript
index e57c99e..baa0254 100644
--- a/wscript
+++ b/wscript
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-import Params
import autowaf
# Version of this package (even if built as a child)
@@ -50,18 +49,18 @@ def configure(conf):
autowaf.print_summary(conf)
autowaf.display_header('SLV2 Configuration')
- autowaf.display_msg("Jack clients", str(conf.env['HAVE_JACK'] == 1), 'YELLOW')
+ autowaf.display_msg(conf, "Jack clients", str(conf.env['HAVE_JACK'] == 1))
print
def build(bld):
# C Headers
- install_files('INCLUDEDIR', 'slv2', 'slv2/*.h')
+ bld.install_files('${INCLUDEDIR}/slv2', 'slv2/*.h')
# Pkgconfig file
autowaf.build_pc(bld, 'SLV2', SLV2_VERSION, ['REDLAND'])
# Library
- obj = bld.create_obj('cc', 'shlib')
+ obj = bld.new_task_gen('cc', 'shlib')
obj.source = '''
src/plugin.c
src/pluginclass.c
@@ -80,11 +79,11 @@ def build(bld):
src/values.c
src/world.c
'''
- obj.includes = '..'
- obj.name = 'libslv2'
- obj.target = 'slv2'
- obj.vnum = SLV2_LIB_VERSION
- obj.inst_dir = bld.env()['LIBDIRNAME']
+ obj.includes = '..'
+ obj.name = 'libslv2'
+ obj.target = 'slv2'
+ obj.vnum = SLV2_LIB_VERSION
+ obj.install_path = '${LIBDIR}'
autowaf.use_lib(bld, obj, 'REDLAND LV2CORE')
# Utilities
@@ -93,32 +92,32 @@ def build(bld):
utils/lv2_list
'''
for i in utils.split():
- obj = bld.create_obj('cc', 'program')
+ obj = bld.new_task_gen('cc', 'program')
obj.source = i + '.c'
obj.includes = '.'
obj.uselib_local = 'libslv2'
obj.target = i
- obj.inst_dir = bld.env()['BINDIRNAME']
+ obj.install_path = '${BINDIR}'
# JACK Hosts
hosts = '''
hosts/lv2_jack_host
hosts/lv2_simple_jack_host
'''
- if bld.env()['HAVE_JACK'] == 1:
+ if bld.env['HAVE_JACK'] == 1:
for i in hosts.split():
- obj = bld.create_obj('cc', 'program')
+ obj = bld.new_task_gen('cc', 'program')
obj.source = i + '.c'
obj.includes = '.'
obj.uselib = 'JACK'
obj.uselib_local = 'libslv2'
obj.target = i
- obj.inst_dir = bld.env()['BINDIRNAME']
+ obj.install_path = '${BINDIR}'
# Documentation
autowaf.build_dox(bld, 'SLV2', SLV2_VERSION, srcdir, blddir)
- install_files('HTMLDIR', '', blddir + '/default/doc/html/*')
- install_files('MANDIR', 'man3', blddir + '/default/doc/man/man3/*')
+ bld.install_files('${HTMLDIR}', blddir + '/default/doc/html/*')
+ bld.install_files('${MANDIR}/man3', blddir + '/default/doc/man/man3/*')
def shutdown():
autowaf.shutdown()