/[escript]/trunk/tools/libescriptreader/src/SConscript
ViewVC logotype

Contents of /trunk/tools/libescriptreader/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2184 - (show annotations)
Mon Dec 22 04:27:26 2008 UTC (12 years, 10 months ago) by caltinay
File size: 1599 byte(s)
Scons'ified escriptreader library and tools. Added checks and options for the
Silo library which is required for escript2silo and optional for the library.
Updated shake75 options file.

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2008 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14
15 import os
16 Import('*')
17
18 local_env = clone_env(env)
19
20 sources = """
21 escriptreader/DataVar.cpp
22 escriptreader/ElementData.cpp
23 escriptreader/Mesh.cpp
24 escriptreader/MeshWithElements.cpp
25 escriptreader/MPDataSet.cpp
26 """.split()
27
28 headers = """
29 escriptreader/DataVar.h
30 escriptreader/ElementData.h
31 escriptreader/Mesh.h
32 escriptreader/MeshWithElements.h
33 escriptreader/MPDataSet.h
34 escriptreader/common.h
35 """.split()
36
37 local_env.AppendUnique(LIBS = [env['silo_libs']])
38
39 lib = local_env.SharedLibrary("escriptreader", sources)
40 env.Alias("target_escriptreader_so", lib)
41
42 include_path = Dir("escriptreader", local_env["incinstall"])
43 local_env.Install(include_path, headers)
44 inst_lib = local_env.Install(local_env["libinstall"], lib)
45
46 prog = local_env.Program('escript2silo', ["escript2silo.cpp", inst_lib])
47 env.Alias("target_escript2silo", prog)
48 inst_e2s = local_env.Install(local_env['bininstall'], prog)
49 env.Alias("target_install_escript2silo", inst_e2s)
50
51 prog = local_env.Program('esdcreate', "esdcreate.cpp")
52 env.Alias("target_esdcreate", prog)
53 inst_esdcreate = local_env.Install(local_env['bininstall'], prog)
54 env.Alias("target_install_esdcreate", inst_esdcreate)
55

  ViewVC Help
Powered by ViewVC 1.1.26