summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 15:50:32 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 15:50:32 +0000
commit4957c342b592ac1cc2c8983d1acfe957def8b3c6 (patch)
tree8872dae307c3e13f7efdabd033afd548e5351163 /src/shared
parentbcc2b2a1032306711591ae59205b81ed67d08387 (diff)
downloadingen-4957c342b592ac1cc2c8983d1acfe957def8b3c6.tar.gz
ingen-4957c342b592ac1cc2c8983d1acfe957def8b3c6.tar.bz2
ingen-4957c342b592ac1cc2c8983d1acfe957def8b3c6.zip
Use modern terser waf syntax.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3556 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/wscript21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/shared/wscript b/src/shared/wscript
index 51b7b5a5..1a8fd389 100644
--- a/src/shared/wscript
+++ b/src/shared/wscript
@@ -2,7 +2,16 @@
from waflib.extras import autowaf as autowaf
def build(bld):
- obj = bld(features = 'cxx cxxshlib')
+ obj = bld(features = 'cxx cxxshlib',
+ export_includes = ['../../include'],
+ includes = ['..', '../..', '../../include'],
+ name = 'libingen_shared',
+ target = 'ingen_shared',
+ vnum = '0.0.0',
+ install_path = '${LIBDIR}',
+ linkflags = '-ldl')
+ autowaf.use_lib(bld, obj, 'GLIBMM LV2CORE LILV RAUL SORD LIBLO')
+
obj.source = '''
Builder.cpp
ClashAvoider.cpp
@@ -15,16 +24,10 @@ def build(bld):
World.cpp
runtime_paths.cpp
'''
+
if bld.is_defined('HAVE_LIBLO'):
obj.source += ' OSCSender.cpp '
+
if bld.is_defined('HAVE_SOUP'):
autowaf.use_lib(bld, obj, 'SOUP')
obj.source += ' HTTPSender.cpp '
- obj.export_includes = ['.']
- obj.includes = ['.', '..', '../..', '../../include']
- obj.name = 'libingen_shared'
- obj.target = 'ingen_shared'
- obj.vnum = '0.0.0'
- obj.install_path = '${LIBDIR}'
- obj.linkflags = '-ldl'
- autowaf.use_lib(bld, obj, 'GLIBMM LV2CORE LILV RAUL SORD LIBLO')