import glob
import errno
import time
+from sets import Set
import SCons.Node.FS
SConsignFile()
BoolOption('VST', 'Compile with support for VST', 0),
BoolOption('VERSIONED', 'Add version information to ardour/gtk executable name inside the build directory', 0),
BoolOption('USE_SSE_EVERYWHERE', 'Ask the compiler to use x86/SSE instructions and also our hand-written x86/SSE optimizations when possible (off by default)', 0),
- BoolOption('BUILD_SSE_OPTIMIZATIONS', 'Use our hand-written x86/SSE optimizations when possible (off by default)', 0)
+ BoolOption('BUILD_SSE_OPTIMIZATIONS', 'Use our hand-written x86/SSE optimizations when possible (off by default)', 0),
+ BoolOption('BUILD_VECLIB_OPTIMIZATIONS', 'Build with Apple Accelerate/vecLib optimizations when possible (off by default)', 0)
)
#----------------------------------------------------------------------
self.Append (LIBPATH = other.get ('LIBPATH', []))
self.Append (CPPPATH = other.get('CPPPATH', []))
self.Append (LINKFLAGS = other.get('LINKFLAGS', []))
+ self.Replace(LIBS = list(Set(self.get('LIBS', []))))
+ self.Replace(LIBPATH = list(Set(self.get('LIBPATH', []))))
+ self.Replace(CPPPATH = list(Set(self.get('CPPPATH',[]))))
+ #doing LINKFLAGS breaks -framework
env = LibraryInfo (options = opts,
libraries['core'].Append (LIBPATH = [ '/opt/local/lib' ])
if os.path.isdir('/opt/local/include'):
libraries['core'].Append (CPPPATH = [ '/opt/local/include' ])
+
+ if env['BUILD_VECLIB_OPTIMIZATIONS'] == 1:
+ opt_flags.append ("-DBUILD_VECLIB_OPTIMIZATIONS")
+ debug_flags.append ("-DBUILD_VECLIB_OPTIMIZATIONS")
+ libraries['core'].Append(LINKFLAGS= '-framework Accelerate')
+
if config[config_cpu] == 'powerpc':
#
# Apple/PowerPC optimization options
if (nchns == 2) {
if (r % 2) {
rows[r][exp_cols.right] = true;
-// master_selector.cell (r, 2).set_pixmap (check_pixmap, check_mask);
} else {
rows[r][exp_cols.left] = true;
-// master_selector.cell (r, 1).set_pixmap (check_pixmap, check_mask);
}
} else {
rows[r][exp_cols.left] = true;
-// master_selector.cell (r, 1).set_pixmap (check_pixmap, check_mask);
}
}