summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-03-06 02:32:49 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-03-06 02:32:49 +0000
commitaed3483e14a3bf85ec793b50d5dda69ecf6deaf9 (patch)
treee75d898e3a262841889000d5df15a7dba2a10d09 /SConstruct
parent9d72c26b7353ce3bc8ee38f06de59ae68588ee20 (diff)
SConstruct rethink.
git-svn-id: svn://localhost/trunk/ardour2@351 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct30
1 files changed, 12 insertions, 18 deletions
diff --git a/SConstruct b/SConstruct
index ba7f644a9e..2626554fff 100644
--- a/SConstruct
+++ b/SConstruct
@@ -571,6 +571,8 @@ config_kernel = 2;
config_os = 3;
config = config_guess.split ("-")
+print "system triple: " + config_guess
+
# Autodetect
if env['DIST_TARGET'] == 'auto':
if config[config_arch] == 'apple':
@@ -591,19 +593,6 @@ if env['DIST_TARGET'] == 'auto':
print "*******************************\n"
-if config[config_arch] == 'apple' and env['DIST_TARGET'] != 'none':
- ## Are these lines supposed to be in ardour2?
- if os.path.isdir('/opt/local/lib'):
- libraries['core'].Append (LIBPATH = [ '/opt/local/lib' ])
- if os.path.isdir('/opt/local/include'):
- libraries['core'].Append (CPPPATH = [ '/opt/local/include' ])
-
-
- if env['FPU_OPTIMIZATION']:
- opt_flags.append ("-DBUILD_VECLIB_OPTIMIZATIONS")
- debug_flags.append ("-DBUILD_VECLIB_OPTIMIZATIONS")
- libraries['core'].Append(LINKFLAGS= '-framework Accelerate')
-
if config[config_cpu] == 'powerpc' and env['DIST_TARGET'] != 'none':
#
# Apple/PowerPC optimization options
@@ -645,21 +634,26 @@ elif ((re.search ("i[0-9]86", config[config_cpu]) != None) or (re.search ("x86_6
elif config[config_cpu] == "i686":
opt_flags.append ("-march=i686")
-
if ((env['DIST_TARGET'] == 'i686') or (env['DIST_TARGET'] == 'x86_64')) and build_host_supports_sse:
opt_flags.extend (["-msse", "-mfpmath=sse"])
debug_flags.extend (["-msse", "-mfpmath=sse"])
+# end of processor-specific section
- if env['FPU_OPTIMIZATION'] and build_host_supports_sse:
+# optimization section
+if env['FPU_OPTIMIZATION']:
+ if env['DIST_TARGET'] == 'tiger':
+ opt_flags.append ("-DBUILD_VECLIB_OPTIMIZATIONS")
+ debug_flags.append ("-DBUILD_VECLIB_OPTIMIZATIONS")
+ libraries['core'].Append(LINKFLAGS= '-framework Accelerate')
+ elif env['DIST_TARGET'] == 'i686' or env['DIST_TARGET'] == 'x86_64':
opt_flags.append ("-DBUILD_SSE_OPTIMIZATIONS")
debug_flags.append ("-DBUILD_SSE_OPTIMIZATIONS")
if env['DIST_TARGET'] == 'x86_64':
opt_flags.append ("-DUSE_X86_64_ASM")
- debug_flags.append ("-DUSE_X86_64_ASM")
+ debug_flags.append ("-DUSE_X86_64_ASM")
if build_host_supports_sse != 1:
print "\nWarning: you are building Ardour with SSE support even though your system does not support these instructions. (This may not be an error, especially if you are a package maintainer)"
-
-# end of processor-specific section
+# end optimization section
#
# ARCH="..." overrides all