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

Diff of /trunk/finley/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 340 by jgs, Mon Dec 12 05:10:45 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      pyinstall = Dir(str(pyinstall) + '/finley')
38    Export(["pyinstall"])
39    
40  if ARGUMENTS.get('debug',0):  if ARGUMENTS.get('debug',0):
41    dodebug = 1    dodebug = 1
42    
43  if ARGUMENTS.get('usegcc',0):  if ARGUMENTS.get('usegcc',0):
44    usegcc = 1    usegcc = 1
45    
46    if ARGUMENTS.get('options',0):
47      options = ARGUMENTS.get('options',0)
48    
49  #  #
50  # determine platform  # determine platform
51    
# Line 45  platform = env['PLATFORM'] Line 55  platform = env['PLATFORM']
55  #  #
56  # determine hostname  # determine hostname
57    
58  hostname = os.environ['HOSTNAME']  import socket
59    hostname = socket.gethostname()
60    
61  #  #
62  # export esysroot  # export esysroot
# Line 57  Export(["esysroot"]) Line 68  Export(["esysroot"])
68    
69  libdir = Dir(str(esysroot) + '/finley/lib')  libdir = Dir(str(esysroot) + '/finley/lib')
70  Export(["libdir"])  Export(["libdir"])
71    libdir2 = Dir(str(esysroot) + '/lib')
72    Export(["libdir2"])
73    
74    #
75    # set and export python directories
76    
77    pydir = Dir(str(esysroot) + '/finley/lib/py_src')
78    Export(["pydir"])
79    pydir2 = Dir(str(esysroot) + '/esys/finley')
80    Export(["pydir2"])
81    
82  #  #
83  # load and export configuration settings  # load and export configuration settings
# Line 64  Export(["libdir"]) Line 85  Export(["libdir"])
85  options_dir = str(esysroot) + '/scons'  options_dir = str(esysroot) + '/scons'
86  sys.path.append(options_dir)  sys.path.append(options_dir)
87    
88  if dodebug==0 and hostname=='ess':  from default_options import *
89    
90    if hostname=='ess':
91    from ess_options import *    from ess_options import *
92    
93  cxx_flags = cxx_flags + ' -DSCSL'  if usegcc==1:
94  cc_flags  = cc_flags + ' -DSCSL'    from gcc_options import *
95    
96    if options!=None:
97      exec "from " + options + " import *"
98    
99    if dodebug==1:
100      cxx_flags=cxx_flags_debug
101      cc_flags=cc_flags_debug
102    
103  Export(["python_path"])  Export(["python_path"])
104  Export(["boost_path"])  Export(["boost_path"])
105    Export(["cxx"])
106    Export(["cc"])
107  Export(["cxx_flags"])  Export(["cxx_flags"])
108  Export(["cc_flags"])  Export(["cc_flags"])
109    Export(["boost_lib_path"])
110    Export(["boost_lib"])
111    Export(["sys_libs"])
112    Export(["solver_libs"])
113    
114  #  #
115  # print out build configuration for this module  # print out build configuration for this module
116    
 print "############################################"  
117  print "Build configuration for module: finley"  print "Build configuration for module: finley"
118  print "         dodebug: ", dodebug  print "         dodebug: ", dodebug
119  print "          usegcc: ", usegcc  print "          usegcc: ", usegcc
120    print "              cc: ", cc
121    print "             cxx: ", cxx
122  print "        platform: ", platform  print "        platform: ", platform
123  print "        hostname: ", hostname  print "        hostname: ", hostname
124  print "      libinstall: ", libinstall  print "      libinstall: ", libinstall
125  print "############################################"  print "       pyinstall: ", pyinstall
126    
127  #  #
128  # call the SConscript to do the actual build  # call the SConscript to do the actual build
129    
130  SConscript('src/finley/SConscript', src_dir='src/finley', build_dir='obj', duplicate=0)  SConscript(dirs=['src/finley'], build_dir='obj/finley', duplicate=0)
131    SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
132    SConscript(dirs=['test/MeshAdapter'], build_dir='obj/test/MeshAdapter', duplicate=0)

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

  ViewVC Help
Powered by ViewVC 1.1.26