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

Annotation of /trunk/pythonMPI/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (hide annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 10 months ago) by trankine
Original Path: temp/pythonMPI/src/SConscript
File size: 824 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
1 bcumming 759 import os
2     Import('*')
3    
4     local_env=env.Copy()
5     # get the relevant file names:
6 ksteube 1312 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 bcumming 759
9 ksteube 1312 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 bcumming 759
12 ksteube 1312 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 bcumming 759
20 ksteube 1312 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