/[escript]/trunk/escript/test/DataAlgorithmAdapter/SConscript
ViewVC logotype

Diff of /trunk/escript/test/DataAlgorithmAdapter/SConscript

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

trunk/escript/test/DataAlgorithmAdapter/SConstruct revision 248 by jgs, Tue Nov 29 04:58:23 2005 UTC trunk/escript/test/DataAlgorithmAdapter/SConscript revision 309 by jgs, Mon Dec 5 01:59:58 2005 UTC
# Line 15  EnsureSConsVersion(0,96) Line 15  EnsureSConsVersion(0,96)
15  esysroot = Dir('#../../..')  esysroot = Dir('#../../..')
16  usegcc = 0  usegcc = 0
17  options = None  options = None
18    sys_libs = []
19    
20  #  #
21  # import configuration variables passed in from  # import configuration variables passed in from
# Line 48  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 62  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: DataAlgorithmAdapter unit tests"  print "Build configuration for module: DataAlgorithmAdapter 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 83  esys_lib_path = str(esysroot) + '/lib' Line 84  esys_lib_path = str(esysroot) + '/lib'
84  esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'  esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
85  CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib'  CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib'
86    
87    escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
88    
89    install_dir = str(esysroot) + '/escript/test'
90    
91  cpp_path = [dataalgorithmadapter_test_path,  cpp_path = [dataalgorithmadapter_test_path,
92              escript_path,              escript_path,
93              esysUtils_path,              esysUtils_path,
# Line 102  libs = ['escriptcpp', Line 107  libs = ['escriptcpp',
107          str(python_lib),          str(python_lib),
108          str(boost_lib),          str(boost_lib),
109          'dl',          'dl',
110          'util',          'util']
111          'guide',  
112          'irc']  libs.extend(sys_libs)
113    
114  sources = ['DataAlgorithmAdapterTestCase.cpp',  sources = ['DataAlgorithmAdapterTestCase.cpp',
115             'DataAlgorithmAdapterTest.cpp']             'DataAlgorithmAdapterTest.cpp']
# Line 120  dataalgorithmadapter_env.Replace(LIBPATH Line 125  dataalgorithmadapter_env.Replace(LIBPATH
125  dataalgorithmadapter_env.Replace(LIBS = libs)  dataalgorithmadapter_env.Replace(LIBS = libs)
126    
127  dataalgorithmadapter_test_exe = dataalgorithmadapter_env.Program(target, sources)  dataalgorithmadapter_test_exe = dataalgorithmadapter_env.Program(target, sources)
128    
129    Depends(dataalgorithmadapter_test_exe, escript_lib)
130    
131    dataalgorithmadapter_env.Install(install_dir, dataalgorithmadapter_test_exe)

Legend:
Removed from v.248  
changed lines
  Added in v.309

  ViewVC Help
Powered by ViewVC 1.1.26