summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-18 19:35:40 +0000
committerDavid Robillard <d@drobilla.net>2008-10-18 19:35:40 +0000
commitfce0d9b48a4ed24f92c674258b810668f73e54e0 (patch)
tree010733206270699f1b6bd36a4b0c9da9cf0cc9b7
parent6e553cd02e3d708761e40b2710b2cc5f2edde974 (diff)
downloadlilv-fce0d9b48a4ed24f92c674258b810668f73e54e0.tar.gz
lilv-fce0d9b48a4ed24f92c674258b810668f73e54e0.tar.bz2
lilv-fce0d9b48a4ed24f92c674258b810668f73e54e0.zip
Don't attempt to build Jack clients if Jack isn't found.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1678 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--wscript15
1 files changed, 8 insertions, 7 deletions
diff --git a/wscript b/wscript
index ce328a0..2aef967 100644
--- a/wscript
+++ b/wscript
@@ -103,13 +103,14 @@ def build(bld):
hosts/lv2_jack_host
hosts/lv2_simple_jack_host
'''
- for i in hosts.split():
- obj = bld.create_obj('cc', 'program')
- obj.source = i + '.c'
- obj.includes = '.'
- obj.uselib = 'JACK'
- obj.uselib_local = 'libslv2'
- obj.target = i
+ if bld.env()['HAVE_JACK']:
+ for i in hosts.split():
+ obj = bld.create_obj('cc', 'program')
+ obj.source = i + '.c'
+ obj.includes = '.'
+ obj.uselib = 'JACK'
+ obj.uselib_local = 'libslv2'
+ obj.target = i
# Documentation
autowaf.build_dox(bld, 'SLV2', SLV2_VERSION, srcdir, blddir)