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

Contents of /trunk/esysUtils/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4803 - (show annotations)
Wed Mar 26 06:52:28 2014 UTC (5 years, 10 months ago) by caltinay
File size: 1666 byte(s)
Removed obsolete wrappers for malloc and friends.
Paso_Pattern -> paso::Pattern

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2014 by University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Open Software License version 3.0
9 # http://www.opensource.org/licenses/osl-3.0.php
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17 Import('*')
18 local_env = env.Clone()
19
20 sources = """
21 EsysAssertException.cpp
22 EsysException.cpp
23 EsysRandom.cpp
24 Esys_MPI.cpp
25 error.cpp
26 esysExceptionTranslator.cpp
27 blocktimer.cpp
28 """.split()
29
30 headers = """
31 EsysAssert.h
32 EsysAssertException.h
33 EsysException.h
34 EsysRandom.h
35 Esys_MPI.h
36 error.h
37 esysExceptionTranslator.h
38 esysFileWriter.h
39 blocktimer.h
40 mem.h
41 mpi_C.h
42 index.h
43 maths.h
44 system_dep.h
45 types.h
46 """.split()
47
48 lib_name = 'esysUtils'
49
50 if IS_WINDOWS:
51 local_env.Append(CPPDEFINES = ['ESYSUTILS_EXPORTS'])
52
53 include_path = Dir(lib_name, local_env['incinstall'])
54 hdr_inst = local_env.Install(include_path, headers)
55
56 if local_env['build_shared']:
57 lib = local_env.SharedLibrary(lib_name, sources)
58 else:
59 lib = local_env.StaticLibrary(lib_name, sources)
60
61 lib_inst = local_env.Install(local_env['libinstall'], lib)
62
63 env.Alias('build_esysUtils_lib', lib)
64 env.Alias('install_esysUtils_headers', hdr_inst)
65 env.Alias('install_esysUtils_lib', lib_inst)
66
67 # configure the unit tests
68 local_env.SConscript(dirs=['#/esysUtils/test'], variant_dir='test', duplicate=0)
69

  ViewVC Help
Powered by ViewVC 1.1.26