summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-03-08 03:39:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-03-08 03:39:58 +0000
commit5907f3eb036bb0252e61f332c155eddd706465aa (patch)
tree9375ad7ec0847961c40335a73f8a8b5207e6f412 /wscript
parent845d2e0f3b40fd3a1f9164b959caf6759e5ecc70 (diff)
potential fix, part two, for Tiger-based font issues. this also switches things so that building on Lion or Mountain Lion sets MAC_OS_VERSION_MIN_REQUIRED to 1070, to avoid legacy stuff
git-svn-id: svn://localhost/ardour2/branches/3.0@14179 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/wscript b/wscript
index ee6b7214f9..d830a646fc 100644
--- a/wscript
+++ b/wscript
@@ -164,8 +164,10 @@ def set_compiler_flags (conf,opt):
conf.env['build_target'] = 'leopard'
elif re.search ("^10[.]", version) != None:
conf.env['build_target'] = 'snowleopard'
- else:
+ elif re.search ("^11[.]", version) != None:
conf.env['build_target'] = 'lion'
+ else:
+ conf.env['build_target'] = 'mountainlion'
else:
if re.search ("x86_64", cpu) != None:
conf.env['build_target'] = 'x86_64'
@@ -281,12 +283,16 @@ def set_compiler_flags (conf,opt):
# a single way to test if we're on OS X
#
- if conf.env['build_target'] in ['panther', 'tiger', 'leopard', 'snowleopard', 'lion', 'mountainlion' ]:
+ if conf.env['build_target'] in ['panther', 'tiger', 'leopard', 'snowleopard' ]:
conf.define ('IS_OSX', 1)
# force tiger or later, to avoid issues on PPC which defaults
# back to 10.1 if we don't tell it otherwise.
+
conf.env.append_value('CFLAGS', "-DMAC_OS_X_VERSION_MIN_REQUIRED=1040")
+ else if conf.env['build_target'] in [ 'lion', 'mountainlion' ]:
+ conf.env.append_value('CFLAGS', "-DMAC_OS_X_VERSION_MIN_REQUIRED=1070")
+
else:
conf.define ('IS_OSX', 0)