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

Diff of /trunk/esysUtils/SConstruct

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

revision 217 by jgs, Thu Nov 24 06:48:50 2005 UTC revision 246 by jgs, Tue Nov 29 04:27:00 2005 UTC
# Line 15  EnsureSConsVersion(0,96) Line 15  EnsureSConsVersion(0,96)
15  esysroot = Dir('#..')  esysroot = Dir('#..')
16  dodebug = 0  dodebug = 0
17  usegcc = 0  usegcc = 0
18    options = None
19    
20  #  #
21  # import configuration variables passed in from  # import configuration variables passed in from
# Line 31  if ARGUMENTS.get('debug',0): Line 32  if ARGUMENTS.get('debug',0):
32  if ARGUMENTS.get('usegcc',0):  if ARGUMENTS.get('usegcc',0):
33    usegcc = 1    usegcc = 1
34    
35    if ARGUMENTS.get('options',0):
36      options = ARGUMENTS.get('options',0)
37    
38  #  #
39  # determine platform  # determine platform
40    
# Line 59  Export(["libdir"]) Line 63  Export(["libdir"])
63  options_dir = str(esysroot) + '/scons'  options_dir = str(esysroot) + '/scons'
64  sys.path.append(options_dir)  sys.path.append(options_dir)
65    
66  if dodebug==0 and hostname=='ess':  if hostname=='ess':
67    from ess_options import *    from ess_options import *
68    
69    if usegcc==1:
70      from gcc_options import *
71    
72    if options!=None:
73      exec "from " + options + " import *"
74    
75    if dodebug==1:
76      cxx_flags=cxx_flags_debug
77    
78  Export(["python_path"])  Export(["python_path"])
79  Export(["boost_path"])  Export(["boost_path"])
80    Export(["cxx"])
81  Export(["cxx_flags"])  Export(["cxx_flags"])
82    Export(["ar_flags"])
83    
84  #  #
85  # print out build configuration for this module  # print out build configuration for this module
# Line 73  print "################################# Line 88  print "#################################
88  print "Build configuration for module: esysUtils"  print "Build configuration for module: esysUtils"
89  print "         dodebug: ", dodebug  print "         dodebug: ", dodebug
90  print "          usegcc: ", usegcc  print "          usegcc: ", usegcc
91    print "             cxx: ", cxx
92  print "        platform: ", platform  print "        platform: ", platform
93  print "        hostname: ", hostname  print "        hostname: ", hostname
94  print "############################################"  print "############################################"

Legend:
Removed from v.217  
changed lines
  Added in v.246

  ViewVC Help
Powered by ViewVC 1.1.26