summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-01-22 02:24:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-01-22 02:24:46 +0000
commit7acfd950c2c8dadc55f3684d130ff783f3cd4266 (patch)
tree3c5b0fc0b4cfffded841f316ac5bcebde926538c /SConstruct
parentaf168a0a9e5bdf590050b36e22b75a53e7c3ccbc (diff)
centralized "is this OS X" definition in build scripts
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2954 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct17
1 files changed, 14 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index f479d365cf..961fa1afc2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -33,7 +33,7 @@ opts.AddOptions(
BoolOption('NATIVE_OSX_KEYS', 'Build key bindings file that matches OS X conventions', 0),
BoolOption('DEBUG', 'Set to build with debugging information and no optimizations', 0),
PathOption('DESTDIR', 'Set the intermediate install "prefix"', '/'),
- EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'tiger', 'panther', 'none' ), ignorecase=2),
+ EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'tiger', 'panther', 'leopard', 'none' ), ignorecase=2),
BoolOption('DMALLOC', 'Compile and link using the dmalloc library', 0),
BoolOption('EXTRA_WARN', 'Compile with -Wextra, -ansi, and -pedantic. Might break compilation. For pedants', 0),
BoolOption('FFT_ANALYSIS', 'Include FFT analysis window', 0),
@@ -623,8 +623,10 @@ if env['DIST_TARGET'] == 'auto':
# The [.] matches to the dot after the major version, "." would match any character
if re.search ("darwin[0-7][.]", config[config_kernel]) != None:
env['DIST_TARGET'] = 'panther'
- else:
+ if re.search ("darwin8[.]", config[config_kernel]) != None:
env['DIST_TARGET'] = 'tiger'
+ else:
+ env['DIST_TARGET'] = 'leopard'
else:
if re.search ("x86_64", config[config_cpu]) != None:
env['DIST_TARGET'] = 'x86_64'
@@ -712,6 +714,15 @@ else:
env['LIBDIR']='lib'
#
+# a single way to test if we're on OS X
+#
+
+if env['DIST_TARGET'] in ['panther', 'tiger', 'leopard' ]:
+ env['IS_OSX'] = 1
+else:
+ env['IS_OSX'] = 0
+
+#
# save off guessed arch element in an env
#
env.Append(CONFIG_ARCH=config[config_arch])
@@ -769,7 +780,7 @@ if env['LIBLO']:
def prep_libcheck(topenv, libinfo):
- if topenv['DIST_TARGET'] == 'panther' or topenv['DIST_TARGET'] == 'tiger':
+ if topenv['IS_OSX']:
#
# rationale: GTK-Quartz uses jhbuild and installs to /opt/gtk by default.
# All libraries needed should be built against this location