From e89f129e5efc104b881b9a6d223cb0ce7cc760ae Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Oct 2013 08:47:43 -0400 Subject: [PATCH] add defines to gtk ardour build so that it knows that our internal libs are all shared --- gtk2_ardour/wscript | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 311ed6ca03..168f0c7358 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -404,7 +404,20 @@ def build(bld): obj.source = gtk2_ardour_sources obj.target = 'ardour-' + bld.env['VERSION'] obj.includes = ['.'] + obj.defines = [] + # if our internal libraries are built as DLL's, define + # the macros that activate the right stuff in headers + # for export/visibility to work on all platforms. + + if bld.is_defined ('INTERNAL_SHARED_LIBS'): + obj.defines += [ 'LIBPBD_DLL=1', + 'LIBARDOUR_DLL=1', + 'LIBMIDIPP_DLL=1', + 'LIBARDOUR_DLL=1', + 'LIBARDOUR_CP_DLL=1', + 'LIBGTKMM2EXT_DLL=1', + ] # continue with setup of obj, which could be a shared library # or an executable. @@ -422,7 +435,7 @@ def build(bld): 'libtaglib' ] if sys.platform == 'darwin': obj.use += ' libappleutility' - obj.defines = [ + obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"', 'VERSIONSTRING="' + bld.env['VERSION'] + '"', 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',