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

Diff of /trunk/bruce/SConstruct

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

revision 241 by jgs, Mon Nov 28 06:14:47 2005 UTC revision 325 by jgs, Wed Dec 7 02:08:17 2005 UTC
# Line 14  EnsureSConsVersion(0,96) Line 14  EnsureSConsVersion(0,96)
14    
15  esysroot = Dir('#..')  esysroot = Dir('#..')
16  libinstall = None  libinstall = None
17    pyinstall = None
18  dodebug = 0  dodebug = 0
19  usegcc = 0  usegcc = 0
20    options = None
21    
22  #  #
23  # import configuration variables passed in from  # import configuration variables passed in from
# Line 30  if ARGUMENTS.get('libinstall',0): Line 32  if ARGUMENTS.get('libinstall',0):
32    libinstall = ARGUMENTS.get('libinstall',0)    libinstall = ARGUMENTS.get('libinstall',0)
33  Export(["libinstall"])  Export(["libinstall"])
34    
35    if ARGUMENTS.get('pyinstall',0):
36      pyinstall = ARGUMENTS.get('pyinstall',0)
37    Export(["pyinstall"])
38    
39  if ARGUMENTS.get('debug',0):  if ARGUMENTS.get('debug',0):
40    dodebug = 1    dodebug = 1
41    
42  if ARGUMENTS.get('usegcc',0):  if ARGUMENTS.get('usegcc',0):
43    usegcc = 1    usegcc = 1
44    
45    if ARGUMENTS.get('options',0):
46      options = ARGUMENTS.get('options',0)
47    
48  #  #
49  # determine platform  # determine platform
50    
# Line 45  platform = env['PLATFORM'] Line 54  platform = env['PLATFORM']
54  #  #
55  # determine hostname  # determine hostname
56    
57  hostname = os.environ['HOSTNAME']  import socket
58    hostname = socket.gethostname()
59    
60  #  #
61  # export esysroot  # export esysroot
# Line 53  hostname = os.environ['HOSTNAME'] Line 63  hostname = os.environ['HOSTNAME']
63  Export(["esysroot"])  Export(["esysroot"])
64    
65  #  #
66  # set and export library directory  # set and export library directories
67    
68  libdir = Dir(str(esysroot) + '/bruce/lib')  libdir = Dir(str(esysroot) + '/bruce/lib')
69  Export(["libdir"])  Export(["libdir"])
70    libdir2 = Dir(str(esysroot) + '/lib')
71    Export(["libdir2"])
72    
73    #
74    # set and export python directories
75    
76    pydir = Dir(str(esysroot) + '/bruce/lib/py_src')
77    Export(["pydir"])
78    pydir2 = Dir(str(esysroot) + '/esys/bruce')
79    Export(["pydir2"])
80    
81  #  #
82  # load and export configuration settings  # load and export configuration settings
# Line 64  Export(["libdir"]) Line 84  Export(["libdir"])
84  options_dir = str(esysroot) + '/scons'  options_dir = str(esysroot) + '/scons'
85  sys.path.append(options_dir)  sys.path.append(options_dir)
86    
87    from default_options import *
88    
89  if hostname=='ess':  if hostname=='ess':
90   from ess_options import *    from ess_options import *
91    
92  if usegcc==1:  if usegcc==1:
93    from gcc_options import *    from gcc_options import *
94    
95    if options!=None:
96      exec "from " + options + " import *"
97    
98  if dodebug==1:  if dodebug==1:
99    cxx_flags=cxx_flags_debug    cxx_flags=cxx_flags_debug
100    
# Line 77  Export(["python_path"]) Line 102  Export(["python_path"])
102  Export(["boost_path"])  Export(["boost_path"])
103  Export(["cxx"])  Export(["cxx"])
104  Export(["cxx_flags"])  Export(["cxx_flags"])
105    Export(["boost_lib_path"])
106    Export(["boost_lib"])
107    Export(["sys_libs"])
108    
109  #  #
110  # print out build configuration for this module  # print out build configuration for this module
111    
 print "############################################"  
112  print "Build configuration for module: bruce"  print "Build configuration for module: bruce"
113  print "         dodebug: ", dodebug  print "         dodebug: ", dodebug
114  print "          usegcc: ", usegcc  print "          usegcc: ", usegcc
# Line 89  print "             cxx: ", cxx Line 116  print "             cxx: ", cxx
116  print "        platform: ", platform  print "        platform: ", platform
117  print "        hostname: ", hostname  print "        hostname: ", hostname
118  print "      libinstall: ", libinstall  print "      libinstall: ", libinstall
119  print "############################################"  print "       pyinstall: ", pyinstall
120    
121  #  #
122  # call the SConscript to do the actual build  # call the SConscript to do the actual build
123    
124  SConscript('src/Bruce/SConscript', src_dir='src/Bruce', build_dir='obj', duplicate=0)  SConscript(dirs=['src/Bruce'], build_dir='obj/Bruce', duplicate=0)
125    SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
126    SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0)
127    SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0)

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

  ViewVC Help
Powered by ViewVC 1.1.26