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

Contents of /trunk/dataexporter/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

1 ########################################################
2 #
3 # Copyright (c) 2003-2009 by University of Queensland
4 # 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 local_env = clone_env(env_mpi)
18
19 sources = """
20 DataVar.cpp
21 ElementData.cpp
22 EscriptDataset.cpp
23 FinleyMesh.cpp
24 NodeData.cpp
25 """.split()
26 headers = """
27 DataVar.h
28 ElementData.h
29 EscriptDataset.h
30 escriptexport.h
31 FinleyMesh.h
32 NodeData.h
33 """.split()
34
35 local_env.AppendUnique(LIBS = [ 'finley' ] + env['sys_libs'])
36 if local_env['usesilo']:
37 local_env.AppendUnique(LIBS = [env['silo_libs']])
38
39 if IS_WINDOWS_PLATFORM :
40 local_env.Append(CPPDEFINES = ['ESCRIPTEXPORT_EXPORTS'])
41
42 module_name = 'escriptexport'
43
44 lib = local_env.SharedLibrary(module_name, sources)
45 env.Alias('target_escriptexport_so', lib)
46
47 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