summaryrefslogtreecommitdiff
path: root/libs/audiographer/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-17 15:37:11 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-17 15:37:11 -0400
commita2d55d088ad0d3da829fd94151ec9adc2b19cf60 (patch)
tree0864b95ec009a6e7dc054caaceb88ff2d062cad0 /libs/audiographer/wscript
parent5b2a5d77b8160c745553eb85c47a211067eea90d (diff)
add export control with -fvisibility=hidden to audiographer
Diffstat (limited to 'libs/audiographer/wscript')
-rw-r--r--libs/audiographer/wscript34
1 files changed, 22 insertions, 12 deletions
diff --git a/libs/audiographer/wscript b/libs/audiographer/wscript
index 66f4e80b72..9e2d1c4c3c 100644
--- a/libs/audiographer/wscript
+++ b/libs/audiographer/wscript
@@ -54,19 +54,29 @@ 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=1', 'LIBAUDIOGRAPHER_DLL_EXPORTS=1' ]
+ # macros for this other internal shared libraries that we use
+ audiographer.defines += [ 'LIBPBD_DLL=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'