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

Annotation of /trunk/dataexporter/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2811 - (hide annotations)
Mon Dec 7 05:57:16 2009 UTC (9 years, 7 months ago) by caltinay
File size: 1842 byte(s)
Fixed compilation when silo is not used.

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 2811 local_env.AppendUnique(LIBS = [ 'finley' ] + env['sys_libs'])
36     if local_env['usesilo']:
37     local_env.AppendUnique(LIBS = [env['silo_libs']])
38 caltinay 2184
39 caltinay 2810 if IS_WINDOWS_PLATFORM :
40     local_env.Append(CPPDEFINES = ['ESCRIPTEXPORT_EXPORTS'])
41 caltinay 2184
42 caltinay 2810 module_name = 'escriptexport'
43 caltinay 2184
44 caltinay 2810 lib = local_env.SharedLibrary(module_name, sources)
45     env.Alias('target_escriptexport_so', lib)
46 caltinay 2184
47 caltinay 2810 include_path = Dir('escriptexport', local_env['incinstall'])
48    
49     tmp1 = local_env.Install(include_path, headers)
50     env.Alias('target_install_escriptexport_headers', [tmp1])
51    
52     tmp3 = local_env.Install(local_env['libinstall'], lib)
53     env.Alias('target_install_escriptexport_so', tmp3)
54    
55     # export the lib target since tests will depend on it
56     # the lib target is a list of file nodes (why? win32 produces more than one
57     # output file: .lib, .dll, .pdb)
58     # FIXME: This list handling produces the desired result but can this be done
59     # directly with scons File nodes?
60     dep_lib = [local_env['libinstall']+'/'+str(x) for x in lib]
61     Export('dep_lib')
62    
63     # Call the unit tests SConscript
64     #local_env.SConscript(dirs = ['#/dataexporter/test'], build_dir='#/build/$PLATFORM/dataexporter/test', duplicate=0)
65    

  ViewVC Help
Powered by ViewVC 1.1.26