add export control to libevoral

This commit is contained in:
Paul Davis 2013-10-17 10:52:02 -04:00
parent 92b9fea3d1
commit 94ef2692b8
26 changed files with 100 additions and 51 deletions

View file

@ -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)