/[escript]/branches/ROBW_XPLATFORM/paso/src/SConscript
ViewVC logotype

Annotation of /branches/ROBW_XPLATFORM/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 655 - (hide annotations)
Fri Mar 24 07:55:21 2006 UTC (15 years, 4 months ago) by robwdcock
File size: 1390 byte(s)
# fix some lib flags

1 jgs 187 Import('*')
2    
3 robwdcock 623 local_env=env.Copy()
4 jgs 187
5 robwdcock 623 src_dir = local_env.Dir('.').srcnode().abspath
6 jgs 187
7 robwdcock 623 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 jgs 190
14 robwdcock 623 # 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 gross 584
19 robwdcock 623 if mkl_libs:
20     local_env.Append(CPPDEFINES=['MKL',])
21 robwdcock 655 local_env.Append(LIBS = mkl_libs)
22 robwdcock 623 if scsl_libs:
23     local_env.Append(CPPDEFINES=['SCSL',])
24 robwdcock 655 local_env.Append(LIBS = scsl_libs)
25 robwdcock 623 if umf_libs:
26     local_env.Append(CPPDEFINES=['UMFPACK',])
27 robwdcock 655 local_env.Append(LIBS = umf_libs)
28 robwdcock 623 if papi_libs:
29     local_env.Append(CPPDEFINES=['PAPI',])
30 robwdcock 655 local_env.Append(LIBS = papi_libs)
31 gross 425
32 robwdcock 623 lib_name = 'paso'
33 jgs 481
34 robwdcock 623 lib = local_env.StaticLibrary(lib_name, sources)
35 jgs 481
36 robwdcock 623 include_path = Dir(lib_name, incinstall)
37     solvers_include_path = Dir('Solvers', include_path)
38 jgs 187
39 robwdcock 623 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