From a26c42734a7dc754ace50d643b798716730da01e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 May 2012 23:20:29 +0000 Subject: [PATCH] further build system tweaks for SG git-svn-id: svn://localhost/ardour2/branches/3.0-SG@12275 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/soundgrid/wscript | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/libs/soundgrid/wscript b/libs/soundgrid/wscript index 72cb3060b0..6a49c5719e 100644 --- a/libs/soundgrid/wscript +++ b/libs/soundgrid/wscript @@ -43,20 +43,18 @@ def configure(conf): def build(bld): # Library - driver = bld(features = 'cxx cxxshlib') - driver.source = ''' - driver.cc - ''' - - driver.export_includes = ['.'] - driver.includes = ['.'] - driver.name = 'libsgardour' - driver.target = 'sgardour' - driver.uselib = [ 'SOUNDGRID', 'GLIBMM', 'SIGCPP', 'XML', 'UUID', 'SNDFILE', 'GIOMM' ] - driver.use = [ 'libardour' ] - driver.vnum = LIBSGARDOUR_LIB_VERSION - driver.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') - driver.defines = ['PACKAGE="' + I18N_PACKAGE + '"'] + if bld.is_defined ('HAVE_SOUNDGRID'): + driver = bld(features = 'cxx cxxshlib') + driver.source = [ 'driver.cc' ] + driver.export_includes = ['.'] + driver.includes = ['.'] + driver.name = 'libsgardour' + driver.target = 'sgardour' + driver.uselib = [ 'SOUNDGRID', 'GLIBMM', 'SIGCPP', 'XML', 'UUID', 'SNDFILE', 'GIOMM' ] + driver.use = [ 'libardour' ] + driver.vnum = LIBSGARDOUR_LIB_VERSION + driver.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') + driver.defines = ['PACKAGE="' + I18N_PACKAGE + '"'] def shutdown(): autowaf.shutdown()