summaryrefslogtreecommitdiff
path: root/libs/pbd/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-16 23:30:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-16 23:30:28 -0400
commitc5115c9a3c8ce6639f37e0b429e0498bb522d913 (patch)
tree667e48ff6ec80f274c7eafda4e44dceaaaeb342b /libs/pbd/wscript
parentcb3abec9665b7a69702294e5a6ffdd26f54885c3 (diff)
add export visibility control to libpbd (works thus far on linux/gcc)
Diffstat (limited to 'libs/pbd/wscript')
-rw-r--r--libs/pbd/wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/pbd/wscript b/libs/pbd/wscript
index ffbe0e0d19..be68c40dbf 100644
--- a/libs/pbd/wscript
+++ b/libs/pbd/wscript
@@ -114,10 +114,15 @@ def build(bld):
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
print('BUILD SHARED LIB')
obj = bld.shlib(features = 'cxx cxxshlib', source=libpbd_sources)
+ obj.defines = [ 'LIBPBD_DLL=1',
+ 'LIBPBD_DLL_EXPORTS=1'
+ ]
+
else:
print('BUILD STATIC LIB')
obj = bld.stlib(features = 'cxx cxxstlib', source=libpbd_sources)
obj.cxxflags = [ '-fPIC' ]
+ obj.defines = []
if bld.is_defined('DEBUG_RT_ALLOC'):
obj.source += 'debug_rt_alloc.c'
@@ -134,7 +139,7 @@ def build(bld):
obj.uselib += ' OSX'
obj.vnum = LIBPBD_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
- obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"']
+ obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
if bld.env['build_target'] == 'x86_64':
obj.defines += [ 'USE_X86_64_ASM' ]