/[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 309 by jgs, Mon Dec 5 01:59:58 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':  from default_options import *
67    
68    if hostname=='ess':
69    from ess_options import *    from ess_options import *
70    
71    if usegcc==1:
72      from gcc_options import *
73    
74    if options!=None:
75      exec "from " + options + " import *"
76    
77    if dodebug==1:
78      cxx_flags=cxx_flags_debug
79    
80  Export(["python_path"])  Export(["python_path"])
81  Export(["boost_path"])  Export(["boost_path"])
82    Export(["cxx"])
83  Export(["cxx_flags"])  Export(["cxx_flags"])
84    Export(["ar_flags"])
85    
86  #  #
87  # print out build configuration for this module  # print out build configuration for this module
88    
 print "############################################"  
89  print "Build configuration for module: esysUtils"  print "Build configuration for module: esysUtils"
90  print "         dodebug: ", dodebug  print "         dodebug: ", dodebug
91  print "          usegcc: ", usegcc  print "          usegcc: ", usegcc
92    print "             cxx: ", cxx
93  print "        platform: ", platform  print "        platform: ", platform
94  print "        hostname: ", hostname  print "        hostname: ", hostname
 print "############################################"  
95    
96  #  #
97  # call the SConscript to do the actual build  # call the SConscript to do the actual build
98    
99  SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0)  SConscript(dirs=['src'], build_dir='obj/src', duplicate=0)
100    SConscript(dirs=['test/EsysException'], build_dir='obj/test/EsysException', duplicate=0)

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

  ViewVC Help
Powered by ViewVC 1.1.26