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

Contents of /trunk/dataexporter/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2186 - (show annotations)
Tue Dec 23 03:31:18 2008 UTC (10 years, 6 months ago) by caltinay
Original Path: trunk/tools/libescriptreader/src/SConscript
File size: 1800 byte(s)
escript2silo was linked to libescriptreader using its relative path. Fixed that
by using a separate environment for the tools.

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 sources = """
19 escriptreader/DataVar.cpp
20 escriptreader/ElementData.cpp
21 escriptreader/Mesh.cpp
22 escriptreader/MeshWithElements.cpp
23 escriptreader/MPDataSet.cpp
24 """.split()
25
26 headers = """
27 escriptreader/DataVar.h
28 escriptreader/ElementData.h
29 escriptreader/Mesh.h
30 escriptreader/MeshWithElements.h
31 escriptreader/MPDataSet.h
32 escriptreader/common.h
33 """.split()
34
35 local_env = clone_env(env)
36 local_env.AppendUnique(LIBS = [env["silo_libs"]])
37 lib = local_env.SharedLibrary("escriptreader", sources)
38 env.Alias("target_escriptreader_so", lib)
39
40 include_path = Dir("escriptreader", env["incinstall"])
41 local_env.Install(include_path, headers)
42 inst_lib = local_env.Install(env["libinstall"], lib)
43
44 # need new environment for escript2silo to avoid dependency cycle
45 local_env = clone_env(env)
46 local_env.AppendUnique(LIBS = [env["silo_libs"], "escriptreader"])
47 prog = local_env.Program("escript2silo", ["escript2silo.cpp"])
48 env.Alias("target_escript2silo", prog)
49 inst_e2s = local_env.Install(local_env["bininstall"], prog)
50 env.Alias("target_install_escript2silo", inst_e2s)
51
52 # esdcreate has no other dependencies
53 local_env = clone_env(env)
54 prog = local_env.Program("esdcreate", "esdcreate.cpp")
55 env.Alias("target_esdcreate", prog)
56 inst_esdcreate = local_env.Install(local_env["bininstall"], prog)
57 env.Alias("target_install_esdcreate", inst_esdcreate)
58

  ViewVC Help
Powered by ViewVC 1.1.26