X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Faudiographer%2Fwscript;h=183b272518114cef62f3abcdea5b8cb395b2009e;hb=59631acc5f41153a294c97ab820a4b41a886e24c;hp=66f4e80b724171c39e564617b259cb2497eebe77;hpb=bf8f0b2cb5cd41be9f709cb0cc2a445ec339d5f8;p=ardour.git diff --git a/libs/audiographer/wscript b/libs/audiographer/wscript index 66f4e80b72..183b272518 100644 --- a/libs/audiographer/wscript +++ b/libs/audiographer/wscript @@ -54,19 +54,27 @@ def build(bld): and bld.is_defined('HAVE_GLIBMM') and bld.is_defined('HAVE_GTHREAD')) - audiographer = bld(features = 'cxx cxxshlib') - audiographer.source = ''' - private/gdither/gdither.cc - src/general/sample_format_converter.cc - src/routines.cc - src/debug_utils.cc - src/general/broadcast_info.cc - ''' - + audiographer_sources = [ + 'private/gdither/gdither.cc', + 'src/general/sample_format_converter.cc', + 'src/routines.cc', + 'src/debug_utils.cc', + 'src/general/broadcast_info.cc' + ] if bld.is_defined('HAVE_SAMPLERATE'): - audiographer.source += ''' - src/general/sr_converter.cc - ''' + audiographer_sources += [ 'src/general/sr_converter.cc' ] + + if bld.is_defined ('INTERNAL_SHARED_LIBS'): + audiographer = bld.shlib(features = 'c cxx cshlib cxxshlib', source=audiographer_sources) + # macros for this shared library + audiographer.defines = [ 'LIBAUDIOGRAPHER_DLL_EXPORTS=1' ] + audiographer.cflags = [ '-fvisibility=hidden' ] + audiographer.cxxflags = [ '-fvisibility=hidden' ] + else: + audiographer = bld.stlib(features = 'c cxx cstlib cxxstlib', source=libardour_sources) + audiographer.cxxflags = [ '-fPIC' ] + audiographer.cflags = [ '-fPIC' ] + audiographer.defines = [] audiographer.name = 'libaudiographer' audiographer.target = 'audiographer'