/[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 325 by jgs, Wed Dec 7 02:08:17 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 40  platform = env['PLATFORM'] Line 44  platform = env['PLATFORM']
44  #  #
45  # determine hostname  # determine hostname
46    
47  hostname = os.environ['HOSTNAME']  import socket
48    hostname = socket.gethostname()
49    
50  #  #
51  # export esysroot  # export esysroot
# Line 59  Export(["libdir"]) Line 64  Export(["libdir"])
64  options_dir = str(esysroot) + '/scons'  options_dir = str(esysroot) + '/scons'
65  sys.path.append(options_dir)  sys.path.append(options_dir)
66    
67  if dodebug==0 and hostname=='ess':  from default_options import *
68    
69    if hostname=='ess':
70    from ess_options import *    from ess_options import *
71    
72    if usegcc==1:
73      from gcc_options import *
74    
75    if options!=None:
76      exec "from " + options + " import *"
77    
78    if dodebug==1:
79      cxx_flags=cxx_flags_debug
80    
81  Export(["python_path"])  Export(["python_path"])
82  Export(["boost_path"])  Export(["boost_path"])
83    Export(["cxx"])
84  Export(["cxx_flags"])  Export(["cxx_flags"])
85    Export(["ar_flags"])
86    
87  #  #
88  # print out build configuration for this module  # print out build configuration for this module
89    
 print "############################################"  
90  print "Build configuration for module: esysUtils"  print "Build configuration for module: esysUtils"
91  print "         dodebug: ", dodebug  print "         dodebug: ", dodebug
92  print "          usegcc: ", usegcc  print "          usegcc: ", usegcc
93    print "             cxx: ", cxx
94  print "        platform: ", platform  print "        platform: ", platform
95  print "        hostname: ", hostname  print "        hostname: ", hostname
 print "############################################"  
96    
97  #  #
98  # call the SConscript to do the actual build  # call the SConscript to do the actual build
99    
100  SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0)  SConscript(dirs=['src'], build_dir='obj/src', duplicate=0)
101    SConscript(dirs=['test/EsysException'], build_dir='obj/test/EsysException', duplicate=0)

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

  ViewVC Help
Powered by ViewVC 1.1.26