/[escript]/trunk/tools/mmio/SConstruct
ViewVC logotype

Diff of /trunk/tools/mmio/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 mmio  # Scons configuration file for mmio
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('#../..')  
 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('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"])  
   
 #  
 # set and export library directory  
4    
5  libdir = Dir(str(esysroot) + '/tools/mmio/lib')  libdir = Dir(str(esysroot) + '/tools/mmio/lib')
6  Export(["libdir"])  Export(["libdir"])
7    
 #  
 # load and export configuration settings  
   
 options_dir = str(esysroot) + '/scons'  
 sys.path.append(options_dir)  
   
 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  
   
8  Export(["cc"])  Export(["cc"])
9  Export(["cc_flags"])  Export(["cc_flags"])
10  Export(["ar_flags"])  Export(["ar_flags"])
# Line 86  Export(["ar_flags"]) Line 13  Export(["ar_flags"])
13  # print out build configuration for this module  # print out build configuration for this module
14    
15  print "Build configuration for module: mmio"  print "Build configuration for module: mmio"
16  print "         dodebug: ", dodebug  print "         ccflags: ", cc_flags
 print "          usegcc: ", usegcc  
17  print "              cc: ", cc  print "              cc: ", cc
 print "        platform: ", platform  
 print "        hostname: ", hostname  
18    
19  #  #
20  # call the SConscript to do the actual build  # call the SConscript to do the actual build

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

  ViewVC Help
Powered by ViewVC 1.1.26