13
0

use "portable" approach to forcing visible symbols in third party libs (qm-dsp, vamp-plugins, appleutility, clearlooks)

This commit is contained in:
Paul Davis 2014-01-17 13:10:41 -05:00
parent a0d7a144d3
commit 31b68d1db8
5 changed files with 4 additions and 5 deletions

View File

@ -33,7 +33,7 @@ def build(bld):
obj.source = libappleutility_sources
# apple did not write this library with full symbol export control
# so we need to override any visibility default.
obj.cxxflags = [ '-fvisibility=default' ]
autowaf.ensure_visible_symbols (obj, True)
obj.export_includes = ['.']
obj.includes = ['.']
obj.name = 'libappleutility'

View File

@ -36,6 +36,7 @@ def build(bld):
obj.uselib = 'GTK'
obj.includes = '.'
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'engines')
autowaf.ensure_visible_symbols (obj, True)
if sys.platform == 'darwin':
# Bit of a hack: make a symlink to the .dylib that meets GTK's criteria for finding it (namely that the library must be a *.so

View File

@ -47,8 +47,7 @@ def build(bld):
maths/MathUtilities.cpp
base/Pitch.cpp
'''
obj.cxxflags = [ '-fvisibility=default' ]
obj.cflags = [ '-fvisibility=default' ]
autowaf.ensure_visible_symbols (obj, True)
obj.export_includes = ['.']
obj.includes = ['.']
obj.name = 'libqmdsp'

View File

@ -50,8 +50,7 @@ def build(bld):
obj.uselib = 'FFTW3F VAMPSDK'
obj.use = 'libvampplugin libqmdsp'
obj.defines = [ 'ARDOUR_VAMP_PLUGINS_DLL_EPORTS' ]
obj.cxxflags = [ '-fvisibility=default' ]
obj.cflags = [ '-fvisibility=default' ]
autowaf.ensure_visible_symbols (obj, True)
if bld.is_defined('HAVE_AUBIO'):
obj.source += ' Onset.cpp '
obj.uselib += ' AUBIO '

BIN
waf vendored

Binary file not shown.