From 4957c342b592ac1cc2c8983d1acfe957def8b3c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Oct 2011 15:50:32 +0000 Subject: Use modern terser waf syntax. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3556 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/wscript | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/shared/wscript') 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') -- cgit v1.2.1