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

Diff of /trunk/escript/test/DataFactory/SConstruct

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

revision 196 by jgs, Tue Nov 22 01:48:33 2005 UTC revision 239 by jgs, Mon Nov 28 05:49:32 2005 UTC
# Line 1  Line 1 
1  esysroot = None  # Scons configuration file for DataFactory 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: DataFactory 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  datafactory_test_path = str(esysroot) + '/escript/test/DataFactory'  datafactory_test_path = str(esysroot) + '/escript/test/DataFactory'
62  escript_path = str(esysroot) + '/escript/inc'  escript_path = str(esysroot) + '/escript/inc'
# Line 45  lib_path = [esys_lib_path, Line 83  lib_path = [esys_lib_path,
83  libs = ['escriptcpp',  libs = ['escriptcpp',
84          'esysUtils',          'esysUtils',
85          'CppUnitTest',          'CppUnitTest',
86          'python2.3',          str(python_lib),
87          'boost_python-intel-d-1_31',          str(boost_lib),
88          'dl',          'dl',
89          'util',          'util',
90          'guide',          'guide',
# Line 59  target = 'DataFactoryTest.exe' Line 97  target = 'DataFactoryTest.exe'
97    
98  datafactory_env = Environment(ENV = os.environ)  datafactory_env = Environment(ENV = os.environ)
99    
100  datafactory_env.Replace(CXX = 'icc')  datafactory_env.Replace(CXX = cxx)
101  datafactory_env.Replace(CXXFLAGS = cxx_flags)  datafactory_env.Replace(CXXFLAGS = cxx_flags)
102  datafactory_env.Replace(CPPPATH = cpp_path)  datafactory_env.Replace(CPPPATH = cpp_path)
103  datafactory_env.Replace(LIBPATH = lib_path)  datafactory_env.Replace(LIBPATH = lib_path)

Legend:
Removed from v.196  
changed lines
  Added in v.239

  ViewVC Help
Powered by ViewVC 1.1.26