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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 682 - (show annotations)
Mon Mar 27 02:43:09 2006 UTC (13 years, 3 months ago) by robwdcock
File size: 1390 byte(s)
+ NEW BUILD SYSTEM

This commit contains the new build system with cross-platform support.
Most things work are before though you can have more control.

ENVIRONMENT settings have changed:
+ You no longer require LD_LIBRARY_PATH or PYTHONPATH to point to the
esysroot for building and testing performed via scons
+ ACcESS altix users: It is recommended you change your modules to load
the latest intel compiler and other libraries required by boost to match
the setup in svn (you can override). The correct modules are as follows

module load intel_cc.9.0.026
export
MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
module load boost/1.33.0/python-2.4.1
module load python/2.4.1
module load numarray/1.3.3


1 Import('*')
2
3 local_env=env.Copy()
4
5 src_dir = local_env.Dir('.').srcnode().abspath
6
7 import os
8 filenames = os.listdir(src_dir)
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 # Filter unused sources
12 sources.remove('SystemMatrixPattern_reduceBandwidth.c') # FIXME: Should this file be removed?
13
14 # Paso has additional source in the Solvers sub-directory. Append these to the list
15 solver_filenames = os.listdir(src_dir+'/Solvers');
16 sources += ['Solvers/'+x for x in solver_filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
17 solver_headers = ['Solvers/'+x for x in solver_filenames if os.path.splitext(x)[1] in ['.h']]
18
19 if mkl_libs:
20 local_env.Append(CPPDEFINES=['MKL',])
21 local_env.Append(LIBS = mkl_libs)
22 if scsl_libs:
23 local_env.Append(CPPDEFINES=['SCSL',])
24 local_env.Append(LIBS = scsl_libs)
25 if umf_libs:
26 local_env.Append(CPPDEFINES=['UMFPACK',])
27 local_env.Append(LIBS = umf_libs)
28 if papi_libs:
29 local_env.Append(CPPDEFINES=['PAPI',])
30 local_env.Append(LIBS = papi_libs)
31
32 lib_name = 'paso'
33
34 lib = local_env.StaticLibrary(lib_name, sources)
35
36 include_path = Dir(lib_name, incinstall)
37 solvers_include_path = Dir('Solvers', include_path)
38
39 local_env.Install(include_path, headers )
40 local_env.Install(solvers_include_path, solver_headers )
41 local_env.Install(libinstall, lib)
42

  ViewVC Help
Powered by ViewVC 1.1.26