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

Annotation of /trunk/trilinoswrap/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6373 - (hide annotations)
Wed Jul 20 23:47:10 2016 UTC (2 years, 8 months ago) by caltinay
File size: 1610 byte(s)
moved util method to separate header. Started setting options for preconditioners.

1 caltinay 5904 ##############################################################################
2     #
3     # Copyright (c) 2003-2016 by The University of Queensland
4     # http://www.uq.edu.au
5     #
6     # Primary Business: Queensland, Australia
7 caltinay 6116 # Licensed under the Apache License, version 2.0
8     # http://www.apache.org/licenses/LICENSE-2.0
9 caltinay 5904 #
10     # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
11     # Development 2012-2013 by School of Earth Sciences
12     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
13     #
14     ##############################################################################
15    
16     Import('*')
17    
18 caltinay 6115 module_name = 'trilinoswrap'
19 caltinay 5904
20     sources = """
21 caltinay 6104 Amesos2Wrapper.cpp
22     BelosWrapper.cpp
23 caltinay 6181 BlockCrsMatrixWrapper.cpp
24     CrsMatrixWrapper.cpp
25 caltinay 6104 PreconditionerFactory.cpp
26 caltinay 5904 TrilinosMatrixAdapter.cpp
27     """.split()
28    
29     headers = """
30 caltinay 6181 AbstractMatrixWrapper.h
31 caltinay 6104 Amesos2Wrapper.h
32     BelosWrapper.h
33 caltinay 6181 BlockCrsMatrixWrapper.h
34     CrsMatrixWrapper.h
35 caltinay 6104 PreconditionerFactory.h
36 caltinay 5904 TrilinosAdapterException.h
37     TrilinosMatrixAdapter.h
38 caltinay 5924 types.h
39 caltinay 6373 util.h
40 caltinay 5904 """.split()
41    
42 caltinay 6115 local_env = env.Clone()
43 caltinay 5904
44 caltinay 6115 # collect dependencies for other modules
45 caltinay 6145 trilinoswraplibs = env['escript_libs'] + env['trilinos_libs']
46 caltinay 5904
47 caltinay 6115 local_env.PrependUnique(LIBS = trilinoswraplibs)
48 caltinay 5904
49 caltinay 6115 env['trilinoswrap_libs'] = [module_name] + trilinoswraplibs
50 caltinay 5904
51 caltinay 6115 include_path = Dir(module_name, local_env['incinstall'])
52 caltinay 5904 hdr_inst = local_env.Install(include_path, headers)
53    
54 caltinay 6115 lib = local_env.SharedLibrary(module_name, sources)
55 caltinay 5904 lib_inst = local_env.Install(local_env['libinstall'], lib)
56    
57 caltinay 6115 build = env.Alias('build_trilinoswrap', [hdr_inst, lib])
58     env.Alias('install_trilinoswrap', [build, lib_inst])
59 caltinay 5904

  ViewVC Help
Powered by ViewVC 1.1.26