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

Contents of /trunk/trilinoswrap/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6145 - (show annotations)
Wed Apr 6 06:28:57 2016 UTC (2 years, 6 months ago) by caltinay
File size: 1477 byte(s)
now refraining from adding all libraries to all targets. So we don't link
unnecessary libraries, e.g. escript does not need parmetis etc...

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 PreconditionerFactory.cpp
24 TrilinosMatrixAdapter.cpp
25 """.split()
26
27 headers = """
28 Amesos2Wrapper.h
29 BelosWrapper.h
30 PreconditionerFactory.h
31 TrilinosAdapterException.h
32 TrilinosMatrixAdapter.h
33 types.h
34 """.split()
35
36 local_env = env.Clone()
37
38 # collect dependencies for other modules
39 trilinoswraplibs = env['escript_libs'] + env['trilinos_libs']
40
41 local_env.PrependUnique(LIBS = trilinoswraplibs)
42
43 env['trilinoswrap_libs'] = [module_name] + trilinoswraplibs
44
45 include_path = Dir(module_name, local_env['incinstall'])
46 hdr_inst = local_env.Install(include_path, headers)
47
48 lib = local_env.SharedLibrary(module_name, sources)
49 lib_inst = local_env.Install(local_env['libinstall'], lib)
50
51 build = env.Alias('build_trilinoswrap', [hdr_inst, lib])
52 env.Alias('install_trilinoswrap', [build, lib_inst])
53

  ViewVC Help
Powered by ViewVC 1.1.26