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

Contents of /trunk/trilinoswrap/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

1 ##############################################################################
2 #
3 # Copyright (c) 2003-2016 by The University of Queensland
4 # http://www.uq.edu.au
5 #
6 # Primary Business: Queensland, Australia
7 # Licensed under the Apache License, version 2.0
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
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 module_name = 'trilinoswrap'
19
20 sources = """
21 Amesos2Wrapper.cpp
22 BelosWrapper.cpp
23 BlockCrsMatrixWrapper.cpp
24 CrsMatrixWrapper.cpp
25 PreconditionerFactory.cpp
26 TrilinosMatrixAdapter.cpp
27 """.split()
28
29 headers = """
30 AbstractMatrixWrapper.h
31 Amesos2Wrapper.h
32 BelosWrapper.h
33 BlockCrsMatrixWrapper.h
34 CrsMatrixWrapper.h
35 PreconditionerFactory.h
36 TrilinosAdapterException.h
37 TrilinosMatrixAdapter.h
38 types.h
39 util.h
40 """.split()
41
42 local_env = env.Clone()
43
44 # collect dependencies for other modules
45 trilinoswraplibs = env['escript_libs'] + env['trilinos_libs']
46
47 local_env.PrependUnique(LIBS = trilinoswraplibs)
48
49 env['trilinoswrap_libs'] = [module_name] + trilinoswraplibs
50
51 include_path = Dir(module_name, local_env['incinstall'])
52 hdr_inst = local_env.Install(include_path, headers)
53
54 lib = local_env.SharedLibrary(module_name, sources)
55 lib_inst = local_env.Install(local_env['libinstall'], lib)
56
57 build = env.Alias('build_trilinoswrap', [hdr_inst, lib])
58 env.Alias('install_trilinoswrap', [build, lib_inst])
59

  ViewVC Help
Powered by ViewVC 1.1.26