/[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 1704 by trankine, Fri Jan 11 07:45:58 2008 UTC revision 1705 by ksteube, Thu Aug 14 05:56:40 2008 UTC
# Line 1  Line 1 
1    #
2    # $Id$
3    #
4    #######################################################
5    #
6    #           Copyright 2003-2007 by ACceSS MNRF
7    #       Copyright 2007 by University of Queensland
8    #
9    #                http://esscc.uq.edu.au
10    #        Primary Business: Queensland, Australia
11    #  Licensed under the Open Software License version 3.0
12    #     http://www.opensource.org/licenses/osl-3.0.php
13    #
14    #######################################################
15    #
16    
17  import os  import os
18  Import('*')  Import('*')
19    
20  local_env=env.Copy()  local_env = clone_env(env_mpi)
21  # get the relevant file names:  
22  src_dir = local_env.Dir('.').srcnode().abspath  sources = ["ScriptMPI.cpp"]
23  filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]  
24    local_env.Append(LIBS = ["paso"] + env['sys_libs'])
25  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]  
26  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]  include_path = Dir('pythonMPI', local_env['incinstall'])
27    
28  if useMPI:  prog = local_env.Program('pythonMPI', sources)
29      local_env.Append(LIBS = [ "paso" ] + mpi_libs + [python_lib] + sys_libs)  env.Alias('target_pythonMPI_exe', prog)
30      lib_name = 'pythonMPI'  
31      lib = local_env.Program(lib_name, sources)  tmp1 = local_env.Install(local_env['libinstall'], prog)
32      include_path = Dir(lib_name, incinstall)  env.Alias('target_install_pythonMPI_exe', tmp1)
33      local_env.Install(include_path, headers )  
     local_env.Install(libinstall, lib)  
       
 release_srcfiles = [ env.File(x) for x in filenames ]  + [env.File("SConscript"), ]  
 env.Zip(src_zipfile, release_srcfiles)  
 env.Tar(src_tarfile, release_srcfiles)  

Legend:
Removed from v.1704  
changed lines
  Added in v.1705

  ViewVC Help
Powered by ViewVC 1.1.26