/[escript]/branches/arrayview_from_1695_trunk/esysUtils/test/SConscript
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/esysUtils/test/SConscript

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

trunk/esysUtils/test/EsysException/SConstruct revision 246 by jgs, Tue Nov 29 04:27:00 2005 UTC trunk/esysUtils/test/EsysException/SConscript revision 355 by jgs, Wed Dec 14 05:05:31 2005 UTC
# Line 14  EnsureSConsVersion(0,96) Line 14  EnsureSConsVersion(0,96)
14  esysroot = Dir('#../../..')  esysroot = Dir('#../../..')
15  usegcc = 0  usegcc = 0
16  options = None  options = None
17    sys_libs = []
18    
19    #
20    # import configuration variables passed in from
21    # calling SConscript (if any)
22    
23    Import('*')
24    
25  #  #
26  # retreive command-line arguments if any  # retreive command-line arguments if any
# Line 33  platform = env['PLATFORM'] Line 40  platform = env['PLATFORM']
40  #  #
41  # determine hostname  # determine hostname
42    
43  hostname = os.environ['HOSTNAME']  import socket
44    hostname = socket.gethostname()
45    
46  #  #
47  # load configuration settings  # load configuration settings
# Line 41  hostname = os.environ['HOSTNAME'] Line 49  hostname = os.environ['HOSTNAME']
49  options_dir = str(esysroot) + '/scons'  options_dir = str(esysroot) + '/scons'
50  sys.path.append(options_dir)  sys.path.append(options_dir)
51    
52    from default_options import *
53    
54  if hostname=='ess':  if hostname=='ess':
55    from ess_options import *    from ess_options import *
56    
# Line 55  cxx_flags=cxx_flags_debug Line 65  cxx_flags=cxx_flags_debug
65  #  #
66  # print out build configuration for this module  # print out build configuration for this module
67    
 print "####################################################"  
68  print "Build configuration for module: EsysException unit tests"  print "Build configuration for module: EsysException unit tests"
69  print "         dodebug:  1"  print "         dodebug:  1"
70  print "          usegcc: ", usegcc  print "          usegcc: ", usegcc
71  print "             cxx: ", cxx  print "             cxx: ", cxx
72  print "        platform: ", platform  print "        platform: ", platform
73  print "        hostname: ", hostname  print "        hostname: ", hostname
 print "####################################################"  
74    
75  #  #
76  # do the actual build  # do the actual build
# Line 74  CppUnitTest_path = str(esysroot) + '/too Line 82  CppUnitTest_path = str(esysroot) + '/too
82  esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'  esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
83  CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib'  CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib'
84    
85    esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
86    
87    install_dir = str(esysroot) + '/esysUtils/test'
88    
89  cpp_path = [esysexception_test_path,  cpp_path = [esysexception_test_path,
90              esysUtils_path,              esysUtils_path,
91              CppUnitTest_path]              CppUnitTest_path]
# Line 82  lib_path = [esysUtils_lib_path, Line 94  lib_path = [esysUtils_lib_path,
94              CppUnitTest_lib_path]              CppUnitTest_lib_path]
95    
96  libs = ['esysUtils',  libs = ['esysUtils',
97          'CppUnitTest',          'CppUnitTest']
98          'guide',  
99          'irc']  libs.extend(sys_libs)
100    
101  sources = ['EsysExceptionTestCase.cpp',  sources = ['EsysExceptionTestCase.cpp',
102             'EsysExceptionTest.cpp']             'EsysExceptionTest.cpp']
# Line 100  esysexception_env.Replace(LIBPATH = lib_ Line 112  esysexception_env.Replace(LIBPATH = lib_
112  esysexception_env.Replace(LIBS = libs)  esysexception_env.Replace(LIBS = libs)
113    
114  esysexception_test_exe = esysexception_env.Program(target, sources)  esysexception_test_exe = esysexception_env.Program(target, sources)
115    
116    Depends(esysexception_test_exe, esysUtils_lib)
117    
118    Alias("build_tests", esysexception_env.Install(install_dir, esysexception_test_exe))

Legend:
Removed from v.246  
changed lines
  Added in v.355

  ViewVC Help
Powered by ViewVC 1.1.26