/[escript]/trunk/pythonMPI/src/SConscript
ViewVC logotype

Diff of /trunk/pythonMPI/src/SConscript

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

revision 969 by ksteube, Tue Feb 13 23:02:23 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 2  import os Line 2  import os
2  Import('*')  Import('*')
3    
4  local_env=env.Copy()  local_env=env.Copy()
   
 if useMPI:  
5  # get the relevant file names:  # get the relevant file names:
6      src_dir = local_env.Dir('.').srcnode().abspath  src_dir = local_env.Dir('.').srcnode().abspath
7      filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]  filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]
   
     sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]  
     headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]  
   
     if mkl_libs:  
          local_env.Append(CPPDEFINES=['MKL',])  
          local_env.Append(LIBS = mkl_libs)  
     if scsl_libs:  
          local_env.Append(CPPDEFINES=['SCSL',])  
          local_env.Append(LIBS = scsl_libs)  
     if umf_libs:  
          local_env.Append(CPPDEFINES=['UMFPACK',])  
          local_env.Append(LIBS = umf_libs)  
     if papi_libs:  
          local_env.Append(CPPDEFINES=['PAPI',])  
          local_env.Append(LIBS = papi_libs)  
8    
9      local_env.Append(LIBS = ["python2.4", "paso", "finley", "aztecoo", "teuchos", "epetra", "lapack", "blas", "gfortran"])  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
10      local_env.Append(CPPPATH = ["/home/Work/trilinos-6/include"])  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
     local_env.Append(LIBPATH = ["/home/Work/lib", "/home/Work/trilinos-6/lib"])  
 ## changed  
     lib_name = 'pythonMPI'  
11    
12  ## changed  if useMPI:
13      lib = local_env.Program(lib_name, sources)      local_env.Append(LIBS = [ "paso" ] + mpi_libs + [python_lib] + sys_libs)
14        lib_name = 'pythonMPI'
15      include_path = Dir(lib_name, incinstall)      lib = local_env.Program(lib_name, sources)
16  ## changed      include_path = Dir(lib_name, incinstall)
17  #solvers_include_path = Dir('Solvers', include_path)      local_env.Install(include_path, headers )
18        local_env.Install(libinstall, lib)
     local_env.Install(include_path, headers )  
     local_env.Install(libinstall, lib)  
19            
20      release_srcfiles = [ env.File(x) for x in filenames ]  + [env.File("SConscript"), ]  release_srcfiles = [ env.File(x) for x in filenames ]  + [env.File("SConscript"), ]
21      env.Zip(src_zipfile, release_srcfiles)  env.Zip(src_zipfile, release_srcfiles)
22      env.Tar(src_tarfile, release_srcfiles)  env.Tar(src_tarfile, release_srcfiles)

Legend:
Removed from v.969  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26