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

Annotation of /trunk/dataexporter/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2810 - (hide annotations)
Mon Dec 7 04:13:49 2009 UTC (9 years, 7 months ago) by caltinay
File size: 1784 byte(s)
Reincarnation of the escriptreader as a more flexible escriptexport library:
 - can be initialised with instances of escript::Data and Finley_Mesh
 - is now MPI aware at the EscriptDataset level including Silo writer
 - now uses boost shared pointers
The lib is currently only used by the escriptconvert tool but this is going to
change...

1 caltinay 2184 ########################################################
2     #
3 jfenwick 2548 # Copyright (c) 2003-2009 by University of Queensland
4 caltinay 2184 # Earth Systems Science Computational Center (ESSCC)
5     # http://www.uq.edu.au/esscc
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     ########################################################
12    
13    
14     import os
15     Import('*')
16    
17 caltinay 2810 local_env = clone_env(env_mpi)
18    
19 caltinay 2184 sources = """
20 caltinay 2810 DataVar.cpp
21     ElementData.cpp
22     EscriptDataset.cpp
23     FinleyMesh.cpp
24     NodeData.cpp
25 caltinay 2184 """.split()
26     headers = """
27 caltinay 2810 DataVar.h
28     ElementData.h
29     EscriptDataset.h
30     escriptexport.h
31     FinleyMesh.h
32     NodeData.h
33 caltinay 2184 """.split()
34    
35 caltinay 2810 local_env.AppendUnique(LIBS = [ 'finley' ] + env['sys_libs'] + env['silo_libs'])
36 caltinay 2184
37 caltinay 2810 if IS_WINDOWS_PLATFORM :
38     local_env.Append(CPPDEFINES = ['ESCRIPTEXPORT_EXPORTS'])
39 caltinay 2184
40 caltinay 2810 module_name = 'escriptexport'
41 caltinay 2184
42 caltinay 2810 lib = local_env.SharedLibrary(module_name, sources)
43     env.Alias('target_escriptexport_so', lib)
44 caltinay 2184
45 caltinay 2810 include_path = Dir('escriptexport', local_env['incinstall'])
46    
47     tmp1 = local_env.Install(include_path, headers)
48     env.Alias('target_install_escriptexport_headers', [tmp1])
49    
50     tmp3 = local_env.Install(local_env['libinstall'], lib)
51     env.Alias('target_install_escriptexport_so', tmp3)
52    
53     # export the lib target since tests will depend on it
54     # the lib target is a list of file nodes (why? win32 produces more than one
55     # output file: .lib, .dll, .pdb)
56     # FIXME: This list handling produces the desired result but can this be done
57     # directly with scons File nodes?
58     dep_lib = [local_env['libinstall']+'/'+str(x) for x in lib]
59     Export('dep_lib')
60    
61     # Call the unit tests SConscript
62     #local_env.SConscript(dirs = ['#/dataexporter/test'], build_dir='#/build/$PLATFORM/dataexporter/test', duplicate=0)
63    

  ViewVC Help
Powered by ViewVC 1.1.26