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

Annotation of /trunk/dataexporter/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2548 - (hide annotations)
Mon Jul 20 06:20:06 2009 UTC (9 years, 11 months ago) by jfenwick
Original Path: trunk/tools/libescriptreader/src/SConscript
File size: 1800 byte(s)
Updating copyright notices
1 caltinay 2184
2     ########################################################
3     #
4 jfenwick 2548 # Copyright (c) 2003-2009 by University of Queensland
5 caltinay 2184 # 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 caltinay 2186 local_env = clone_env(env)
36     local_env.AppendUnique(LIBS = [env["silo_libs"]])
37 caltinay 2184 lib = local_env.SharedLibrary("escriptreader", sources)
38     env.Alias("target_escriptreader_so", lib)
39    
40 caltinay 2186 include_path = Dir("escriptreader", env["incinstall"])
41 caltinay 2184 local_env.Install(include_path, headers)
42 caltinay 2186 inst_lib = local_env.Install(env["libinstall"], lib)
43 caltinay 2184
44 caltinay 2186 # 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 caltinay 2184 env.Alias("target_escript2silo", prog)
49 caltinay 2186 inst_e2s = local_env.Install(local_env["bininstall"], prog)
50 caltinay 2184 env.Alias("target_install_escript2silo", inst_e2s)
51    
52 caltinay 2186 # esdcreate has no other dependencies
53     local_env = clone_env(env)
54     prog = local_env.Program("esdcreate", "esdcreate.cpp")
55 caltinay 2184 env.Alias("target_esdcreate", prog)
56 caltinay 2186 inst_esdcreate = local_env.Install(local_env["bininstall"], prog)
57 caltinay 2184 env.Alias("target_install_esdcreate", inst_esdcreate)
58    

  ViewVC Help
Powered by ViewVC 1.1.26