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

Diff of /trunk/modellib/SConstruct

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

revision 340 by jgs, Mon Dec 12 05:10:45 2005 UTC revision 425 by gross, Tue Jan 10 04:10:39 2006 UTC
# Line 1  Line 1 
1  # Scons configuration file for modellib  # Scons configuration file for modellib
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('#..')  
 pyinstall = None  
   
 #  
 # import configuration variables passed in from  
 # calling SConscript (if any)  
   
 Import('*')  
   
 #  
 # retreive command-line arguments if any  
   
 if ARGUMENTS.get('pyinstall',0):  
   pyinstall = ARGUMENTS.get('pyinstall',0)  
   pyinstall = Dir(str(pyinstall) + '/modellib')  
 Export(["pyinstall"])  
   
 #  
 # determine platform  
   
 env = Environment(ENV = os.environ)  
 platform = env['PLATFORM']  
   
 #  
 # determine hostname  
   
 import socket  
 hostname = socket.gethostname()  
   
 #  
 # export esysroot  
   
 Export(["esysroot"])  
   
 #  
 # set and export python directory  
4    
5  pydir = Dir(str(esysroot) + '/modellib/lib/py_src')  pydir = Dir(str(esysroot) + '/modellib/lib/py_src')
6  Export(["pydir"])  Export(["pydir"])
# Line 58  Export(["pydir2"]) Line 11  Export(["pydir2"])
11  # print out build configuration for this module  # print out build configuration for this module
12    
13  print "Build configuration for module: modellib"  print "Build configuration for module: modellib"
 print "        platform: ", platform  
 print "        hostname: ", hostname  
 print "       pyinstall: ", pyinstall  
   
14  #  #
15  # call the SConscript to do the actual build  # call the SConscript to do the actual build
16    

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

  ViewVC Help
Powered by ViewVC 1.1.26