/[escript]/trunk/paso/SConstruct
ViewVC logotype

Diff of /trunk/paso/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 424 by jgs, Wed Dec 7 02:08:17 2005 UTC revision 425 by gross, Tue Jan 10 04:10:39 2006 UTC
# Line 1  Line 1 
1  # Scons configuration file for paso  # Scons configuration file for paso
2    esysroot=str(Dir('./..').abspath)
3  import os  execfile(str(File(esysroot+"/scons/esys_options.py")))
 import sys  
   
 #  
 # ensure correct versions of python and scons  
   
 EnsurePythonVersion(2,3)  
 EnsureSConsVersion(0,96)  
   
 #  
 # set appropriate defaults for configuration variables  
   
 esysroot = Dir('#..')  
 libinstall = None  
 dodebug = 0  
 usegcc = 0  
 options = None  
   
 #  
 # import configuration variables passed in from  
 # calling SConscript (if any)  
   
 Import('*')  
   
 #  
 # retreive command-line arguments if any  
   
 if ARGUMENTS.get('libinstall',0):  
   libinstall = ARGUMENTS.get('libinstall',0)  
 Export(["libinstall"])  
   
 if ARGUMENTS.get('debug',0):  
   dodebug = 1  
   
 if ARGUMENTS.get('usegcc',0):  
   usegcc = 1  
   
 if ARGUMENTS.get('options',0):  
   options = ARGUMENTS.get('options',0)  
   
 #  
 # determine platform  
   
 env = Environment(ENV = os.environ)  
 platform = env['PLATFORM']  
   
 #  
 # determine hostname  
   
 import socket  
 hostname = socket.gethostname()  
   
 #  
 # export esysroot  
   
 Export(["esysroot"])  
   
 #  
4  # set and export library directories  # set and export library directories
5    
6  libdir = Dir(str(esysroot) + '/paso/lib')  libdir = Dir(str(esysroot) + '/paso/lib')
# Line 68  Export(["libdir2"]) Line 11  Export(["libdir2"])
11  #  #
12  # load and export configuration settings  # load and export configuration settings
13    
14  options_dir = str(esysroot) + '/scons'  Export(["scsl_path","scsl_libs"])
15  sys.path.append(options_dir)  Export(["mkl_path","mkl_libs"])
16    Export(["umfpack_path","umfpack_libs"])
 from default_options import *  
   
 if hostname=='ess':  
   from ess_options import *  
   
 if usegcc==1:  
   from gcc_options import *  
   
 if options!=None:  
   exec "from " + options + " import *"  
   
 if dodebug==1:  
   cc_flags=cc_flags_debug  
   
17  Export(["python_path"])  Export(["python_path"])
18  Export(["boost_path"])  Export(["boost_path"])
19  Export(["cc"])  Export(["cc"])
# Line 95  Export(["ar_flags"]) Line 24  Export(["ar_flags"])
24  # print out build configuration for this module  # print out build configuration for this module
25    
26  print "Build configuration for module: paso"  print "Build configuration for module: paso"
 print "         dodebug: ", dodebug  
 print "          usegcc: ", usegcc  
27  print "              cc: ", cc  print "              cc: ", cc
28  print "        platform: ", platform  print "        cc_flags: ", cc_flags
 print "        hostname: ", hostname  
 print "      libinstall: ", libinstall  
   
 #  
29  # call the SConscript to do the actual build  # call the SConscript to do the actual build
30    
31  SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0)  SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0)

Legend:
Removed from v.424  
changed lines
  Added in v.425

  ViewVC Help
Powered by ViewVC 1.1.26