/[escript]/trunk/escript/test/DataBlocks2D/SConstruct
ViewVC logotype

Diff of /trunk/escript/test/DataBlocks2D/SConstruct

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

revision 234 by jgs, Tue Nov 22 01:48:33 2005 UTC revision 235 by jgs, Mon Nov 28 04:36:16 2005 UTC
# Line 1  Line 1 
1  esysroot = None  # Scons configuration file for DataBlocks2D 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: DataBlocks2D 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  datablocks2d_test_path = str(esysroot) + '/escript/test/DataBlocks2D'  datablocks2d_test_path = str(esysroot) + '/escript/test/DataBlocks2D'
62  escript_path = str(esysroot) + '/escript/inc'  escript_path = str(esysroot) + '/escript/inc'
# Line 59  target = 'DataBlocks2DTest.exe' Line 97  target = 'DataBlocks2DTest.exe'
97    
98  datablocks2d_env = Environment(ENV = os.environ)  datablocks2d_env = Environment(ENV = os.environ)
99    
100  datablocks2d_env.Replace(CXX = 'icc')  datablocks2d_env.Replace(CXX = cxx)
101  datablocks2d_env.Replace(CXXFLAGS = cxx_flags)  datablocks2d_env.Replace(CXXFLAGS = cxx_flags)
102  datablocks2d_env.Replace(CPPPATH = cpp_path)  datablocks2d_env.Replace(CPPPATH = cpp_path)
103  datablocks2d_env.Replace(LIBPATH = lib_path)  datablocks2d_env.Replace(LIBPATH = lib_path)

Legend:
Removed from v.234  
changed lines
  Added in v.235

  ViewVC Help
Powered by ViewVC 1.1.26