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

Contents of /trunk/pythonMPI/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1312 - (show annotations)
Mon Sep 24 06:18:44 2007 UTC (12 years, 8 months ago) by ksteube
File size: 824 byte(s)
The MPI branch is hereby closed. All future work should be in trunk.

Previously in revision 1295 I merged the latest changes to trunk into trunk-mpi-branch.
In this revision I copied all files from trunk-mpi-branch over the corresponding
trunk files. I did not use 'svn merge', it was a copy.

1 import os
2 Import('*')
3
4 local_env=env.Copy()
5 # get the relevant file names:
6 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"] ]
8
9 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
10 headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
11
12 if useMPI:
13 local_env.Append(LIBS = [ "paso" ] + mpi_libs + [python_lib] + sys_libs)
14 lib_name = 'pythonMPI'
15 lib = local_env.Program(lib_name, sources)
16 include_path = Dir(lib_name, incinstall)
17 local_env.Install(include_path, headers )
18 local_env.Install(libinstall, lib)
19
20 release_srcfiles = [ env.File(x) for x in filenames ] + [env.File("SConscript"), ]
21 env.Zip(src_zipfile, release_srcfiles)
22 env.Tar(src_tarfile, release_srcfiles)

  ViewVC Help
Powered by ViewVC 1.1.26