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

Diff of /trunk/bruce/test/BruceFactory/SConstruct

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

revision 195 by jgs, Tue Nov 22 00:31:11 2005 UTC revision 226 by jgs, Fri Nov 25 01:40:04 2005 UTC
# Line 1  Line 1 
1  esysroot = None  # Scons configuration file for bruce factory unit tests
   
 Import('*')  
2    
3  import os  import os
4  import string  import sys
5    
6    #
7    # ensure correct versions of python and scons
8    
9    EnsurePythonVersion(2,3)
10    EnsureSConsVersion(0,96)
11    
12    #
13    # set appropriate defaults for configuration variables
14    
15    esysroot = Dir('#../../..')
16    usegcc = 0
17    
18    #
19    # retreive command-line arguments if any
20    
21    if ARGUMENTS.get('usegcc',0):
22      usegcc = 1
23    
24    #
25    # determine platform
26    
27    env = Environment(ENV = os.environ)
28    platform = env['PLATFORM']
29    
30    #
31    # determine hostname
32    
33    hostname = os.environ['HOSTNAME']
34    
35    #
36    # load configuration settings
37    
38  if esysroot == None:  options_dir = str(esysroot) + '/scons'
39    esysroot = Dir('#../../..')  sys.path.append(options_dir)
40    
41  ##### these will enventually be loaded from an external config file ########  if hostname=='ess':
42      from ess_options import *
43    
44  cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'  cxx_flags=cxx_flags_debug
45    
46  python_path = '/raid2/tools/python-2.3.4/include/python2.3'  #
47  boost_path = '/raid2/tools/boost/include/boost-1_31'  # print out build configuration for this module
48    
49  python_lib_path = '/raid2/tools/python-2.3.4/lib'  print "########################################################"
50  boost_lib_path = '/raid2/tools/boost/lib'  print "Build configuration for module: BruceFactory unit tests"
51    print "         dodebug:  1"
52    print "          usegcc: ", usegcc
53    print "             cxx: ", cxx
54    print "        platform: ", platform
55    print "        hostname: ", hostname
56    print "########################################################"
57    
58  ############################################################################  #
59    # do the actual build
60    
61  bruce_path = str(esysroot) + '/bruce/inc'  bruce_path = str(esysroot) + '/bruce/inc'
62  brucefactory_test_path = str(esysroot) + '/bruce/test/BruceFactory'  brucefactory_test_path = str(esysroot) + '/bruce/test/BruceFactory'
# Line 62  target = 'BruceFactoryTest.exe' Line 100  target = 'BruceFactoryTest.exe'
100    
101  brucefactory_env = Environment(ENV = os.environ)  brucefactory_env = Environment(ENV = os.environ)
102    
103  brucefactory_env.Replace(CXX = 'icc')  brucefactory_env.Replace(CXX = cxx)
104  brucefactory_env.Replace(CXXFLAGS = cxx_flags)  brucefactory_env.Replace(CXXFLAGS = cxx_flags)
105  brucefactory_env.Replace(CPPPATH = cpp_path)  brucefactory_env.Replace(CPPPATH = cpp_path)
106  brucefactory_env.Replace(LIBPATH = lib_path)  brucefactory_env.Replace(LIBPATH = lib_path)

Legend:
Removed from v.195  
changed lines
  Added in v.226

  ViewVC Help
Powered by ViewVC 1.1.26