summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-17 08:47:43 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-17 08:47:43 -0400
commite89f129e5efc104b881b9a6d223cb0ce7cc760ae (patch)
tree24f789062958c039df4c1b7e7885687b4a349dab
parente2e057ce598f82a8d47fdb1bc498cd2a6408704b (diff)
add defines to gtk ardour build so that it knows that our internal libs are all shared
-rw-r--r--gtk2_ardour/wscript17
1 files changed, 15 insertions, 2 deletions
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']) + '"',