/[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 241 by jgs, Mon Nov 28 06:14:47 2005 UTC trunk/escript/test/DataAlgorithmAdapter/SConscript revision 309 by jgs, Mon Dec 5 01:59:58 2005 UTC
# Line 14  EnsureSConsVersion(0,96) Line 14  EnsureSConsVersion(0,96)
14    
15  esysroot = Dir('#../../..')  esysroot = Dir('#../../..')
16  usegcc = 0  usegcc = 0
17    options = None
18    sys_libs = []
19    
20    #
21    # import configuration variables passed in from
22    # calling SConscript (if any)
23    
24    Import('*')
25    
26  #  #
27  # retreive command-line arguments if any  # retreive command-line arguments if any
# Line 21  usegcc = 0 Line 29  usegcc = 0
29  if ARGUMENTS.get('usegcc',0):  if ARGUMENTS.get('usegcc',0):
30    usegcc = 1    usegcc = 1
31    
32    if ARGUMENTS.get('options',0):
33      options = ARGUMENTS.get('options',0)
34    
35  #  #
36  # determine platform  # determine platform
37    
# Line 38  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    
57  if usegcc==1:  if usegcc==1:
58    from gcc_options import *    from gcc_options import *
59    
60    if options!=None:
61      exec "from " + options + " import *"
62    
63  cxx_flags=cxx_flags_debug  cxx_flags=cxx_flags_debug
64    
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 70  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 89  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 107  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.241  
changed lines
  Added in v.309

  ViewVC Help
Powered by ViewVC 1.1.26