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

Diff of /trunk/escript/test/SConscript

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

revision 700 by gross, Thu Apr 6 00:13:40 2006 UTC revision 1131 by gross, Tue May 8 05:52:21 2007 UTC
# Line 13  filenames = [ x for x in os.listdir(src_ Line 13  filenames = [ x for x in os.listdir(src_
13    
14  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
15    
16  local_env.Append(LIBS=[ python_lib, boost_lib, 'escript', 'esysUtils', 'CppUnitTest', sys_libs])  local_env.Append(LIBS= python_libs + boost_libs + ['escript', 'esysUtils', 'CppUnitTest'] + sys_libs )
17    if useNetCDF == 'yes':
18        local_env.Append(LIBS = netCDF_libs)
19        local_env.Append(CPPDEFINES = [ 'USE_NETCDF' ])
20        if IS_WINDOWS_PLATFORM: local_env.Append(CPPDEFINES = [ 'DLL_NETCDF' ])
21        
22  program = local_env.Program(program_name, sources)  program = local_env.Program(program_name, sources)
23    
24  #Add Unit Test to target alias  #Add Unit Test to target alias
# Line 29  Alias("run_tests", test_targets) Line 33  Alias("run_tests", test_targets)
33  release_srcfiles = [ env.File("SConscript"), ]  release_srcfiles = [ env.File("SConscript"), ]
34  release_testfiles = [ env.File(x) for x in  filenames ]  release_testfiles = [ env.File(x) for x in  filenames ]
35  env.Zip(src_zipfile, release_srcfiles)  env.Zip(src_zipfile, release_srcfiles)
 env.Tar(src_tarfile, release_srcfiles)  
36  env.Zip(test_zipfile, release_testfiles)  env.Zip(test_zipfile, release_testfiles)
37  env.Tar(test_tarfile, release_testfiles)  try:
38      env.Tar(src_tarfile, release_srcfiles)
39      env.Tar(test_tarfile, release_testfiles)
40    except AttributeError:
41      pass
42    
43  local_env.SConscript(dirs = ['#/escript/test/python'], build_dir='python', duplicate=0)  local_env.SConscript(dirs = ['#/escript/test/python'], build_dir='python', duplicate=0)

Legend:
Removed from v.700  
changed lines
  Added in v.1131

  ViewVC Help
Powered by ViewVC 1.1.26