Parameter for STXXL root path

This commit is contained in:
Dennis Luxen 2010-07-24 14:11:20 +00:00
parent a83b790225
commit 5052302f97

View File

@ -4,6 +4,7 @@ import os
import sys import sys
AddOption('--cxx', dest='cxx', type='string', nargs=1, action='store', metavar='STRING', help='C++ Compiler') AddOption('--cxx', dest='cxx', type='string', nargs=1, action='store', metavar='STRING', help='C++ Compiler')
AddOption('--stxxlroot', dest='stxxlroot', type='string', nargs=1, action='store', metavar='STRING', help='root directory of STXXL')
AddOption('--verbosity', dest='verbosity', type='string', nargs=1, action='store', metavar='STRING', help='make Scons talking') AddOption('--verbosity', dest='verbosity', type='string', nargs=1, action='store', metavar='STRING', help='make Scons talking')
AddOption('--buildconfiguration', dest='buildconfiguration', type='string', nargs=1, action='store', metavar='STRING', help='debug or release') AddOption('--buildconfiguration', dest='buildconfiguration', type='string', nargs=1, action='store', metavar='STRING', help='debug or release')
env = Environment(COMPILER = GetOption('cxx')) env = Environment(COMPILER = GetOption('cxx'))
@ -13,7 +14,10 @@ if GetOption('cxx') is None:
else: else:
print 'Using user supplied C++ Compiler: ', env['CXX'] print 'Using user supplied C++ Compiler: ', env['CXX']
env.Replace(CXX = GetOption('cxx')) env.Replace(CXX = GetOption('cxx'))
if GetOption('stxxlroot') is not None:
env.Append(CPPPATH = GetOption('stxxlroot')+'/include')
env.Append(LIBPATH = GetOption('stxxlroot')+'/lib')
print 'STXXLROOT = ', GetOption('stxxlroot')
if sys.platform == 'win32': if sys.platform == 'win32':
#SCons really wants to use Microsoft compiler #SCons really wants to use Microsoft compiler
print "Compiling is not yet supported on Windows" print "Compiling is not yet supported on Windows"