summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-11-26 21:37:10 +0000
committerDavid Robillard <d@drobilla.net>2010-11-26 21:37:10 +0000
commitb1e3555e37331e277aab990ae281238db9d284d2 (patch)
tree1a15f689f134defab7f9b60df5745f32176ff1bd /wscript
parent837020e18b144da6465e71138b4b12457108c573 (diff)
downloadlilv-b1e3555e37331e277aab990ae281238db9d284d2.tar.gz
lilv-b1e3555e37331e277aab990ae281238db9d284d2.tar.bz2
lilv-b1e3555e37331e277aab990ae281238db9d284d2.zip
Update for latest LV2 #include style.
Enable building against system installed LV2 extensions. Fix building slv2 and ingen independently. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2675 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript37
1 files changed, 21 insertions, 16 deletions
diff --git a/wscript b/wscript
index 84980a4..0db8e58 100644
--- a/wscript
+++ b/wscript
@@ -53,6 +53,7 @@ def set_options(opt):
help="Default LV2 path to use if $LV2_PATH is unset (globs and ~ supported)")
def configure(conf):
+ conf.line_just = max(conf.line_just, 59)
autowaf.configure(conf)
autowaf.display_header('SLV2 Configuration')
conf.check_tool('compiler_cc')
@@ -76,10 +77,15 @@ def configure(conf):
conf.env['BUILD_TESTS'] = Options.options.build_tests
conf.env['BASH_COMPLETION'] = Options.options.bash_completion
conf.define('SLV2_DEFAULT_LV2_PATH', Options.options.default_lv2_path)
+
+ if conf.env['USE_JACK']:
+ autowaf.check_header(conf, 'lv2/lv2plug.in/ns/ext/event/event.h', 'HAVE_LV2_EVENT')
+ autowaf.check_header(conf, 'lv2/lv2plug.in/ns/ext/uri-map/uri-map.h', 'HAVE_LV2_URI_MAP')
+ conf.env['USE_JACK'] = conf.env['HAVE_LV2_EVENT'] and conf.env['HAVE_LV2_URI_MAP']
conf.write_config_header('slv2-config.h')
- autowaf.display_msg(conf, "Jack clients", str(conf.env['USE_JACK']))
+ autowaf.display_msg(conf, "Jack clients", str(conf.env['USE_JACK'] == 1))
autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
autowaf.display_msg(conf, "Dynamic Manifest Support", str(conf.env['SLV2_DYN_MANIFEST'] == 1))
autowaf.display_msg(conf, "Default LV2_PATH", str(conf.env['SLV2_DEFAULT_LV2_PATH']))
@@ -149,22 +155,21 @@ def build(bld):
obj.ccflags = [ '-fprofile-arcs', '-ftest-coverage' ]
# Utilities
- utils = '''
- utils/lv2_inspect
- utils/lv2_list
- '''
- for i in utils.split():
- obj = bld.new_task_gen('cc', 'program')
- obj.source = i + '.c'
- obj.includes = ['.', './src', './utils']
- obj.uselib_local = 'libslv2'
- obj.target = i
- obj.install_path = '${BINDIR}'
-
+ if bld.env['BUILD_UTILS']:
+ utils = '''
+ utils/lv2_inspect
+ utils/lv2_list
+ '''
+ for i in utils.split():
+ obj = bld.new_task_gen('cc', 'program')
+ obj.source = i + '.c'
+ obj.includes = ['.', './src', './utils']
+ obj.uselib_local = 'libslv2'
+ obj.target = i
+ obj.install_path = '${BINDIR}'
+
# JACK Hosts
- hosts = '''
- hosts/lv2_jack_host
- '''
+ hosts = 'hosts/lv2_jack_host'
if bld.env['USE_JACK']:
for i in hosts.split():
obj = bld.new_task_gen('cc', 'program')