From 94ef2692b895c6979e821811a64c8f4614fb0aac Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Oct 2013 10:52:02 -0400 Subject: add export control to libevoral --- libs/evoral/wscript | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'libs/evoral/wscript') diff --git a/libs/evoral/wscript b/libs/evoral/wscript index bfb081217f..5ba3942d69 100644 --- a/libs/evoral/wscript +++ b/libs/evoral/wscript @@ -88,8 +88,13 @@ def build(bld): ''' # Library - obj = bld(features = 'cxx cxxshlib') - obj.source = lib_source + if bld.is_defined ('INTERNAL_SHARED_LIBS'): + obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=lib_source) + else: + obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=lib_source) + obj.cxxflags = [ '-fPIC' ] + obj.cflags = [ '-fPIC' ] + obj.export_includes = ['.'] obj.includes = ['.', './src'] obj.name = 'libevoral' @@ -98,7 +103,9 @@ def build(bld): obj.use = 'libsmf libpbd' obj.vnum = EVORAL_LIB_VERSION obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') - obj.defines = ['PACKAGE="libevoral"', 'EVORAL_MIDI_XML=1' ] + obj.defines = ['PACKAGE="libevoral"', 'EVORAL_MIDI_XML=1' + 'LIBEVORAL_DLL=1', 'LIBEVORAL_DLL_EXPORTS=1' + ] if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'): # Static library (for unit test code coverage) -- cgit v1.2.3