/[escript]/branches/domexper/dudley/src/SConscript
ViewVC logotype

Diff of /branches/domexper/dudley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/finley/src/SConscript revision 2031 by phornby, Wed Nov 12 08:02:33 2008 UTC branches/domexper/dudley/src/SConscript revision 3082 by jfenwick, Tue Aug 3 06:04:05 2010 UTC
# Line 2  Line 2 
2    
3  ########################################################  ########################################################
4  #  #
5  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2010 by University of Queensland
6  # Earth Systems Science Computational Center (ESSCC)  # Earth Systems Science Computational Center (ESSCC)
7  # http://www.uq.edu.au/esscc  # http://www.uq.edu.au/esscc
8  #  #
# Line 59  sources = """ Line 59  sources = """
59      ElementFile_setCoordinates.c      ElementFile_setCoordinates.c
60      ElementFile_setNodeRange.c      ElementFile_setNodeRange.c
61      ElementFile_setTags.c      ElementFile_setTags.c
62      Finley.c      Dudley.c
63      IndexList.c      IndexList.c
64      Mesh.c      Mesh.c
65      Mesh_createNodeFileMappings.c      Mesh_createNodeFileMappings.c
# Line 102  sources = """ Line 102  sources = """
102      ShapeFunctions.c      ShapeFunctions.c
103      TagMap.c      TagMap.c
104      Util.c      Util.c
105      CPPAdapter/FinleAdapterException.cpp      ReferenceElementSets.c
106        CPPAdapter/FinleyAdapterException.cpp
107      CPPAdapter/FinleyError.cpp      CPPAdapter/FinleyError.cpp
108      CPPAdapter/MeshAdapter.cpp      CPPAdapter/MeshAdapter.cpp
109      CPPAdapter/MeshAdapterFactory.cpp      CPPAdapter/MeshAdapterFactory.cpp
# Line 112  sources = """ Line 113  sources = """
113  headers = """  headers = """
114      Assemble.h      Assemble.h
115      ElementFile.h      ElementFile.h
116      Finley.h      Dudley.h
117      FinleyVersion.h      DudleyVersion.h
118      IndexList.h      IndexList.h
119      Mesh.h      Mesh.h
120      NodeFile.h      NodeFile.h
# Line 124  headers = """ Line 125  headers = """
125      ShapeFunctions.h      ShapeFunctions.h
126      TagMap.h      TagMap.h
127      Util.h      Util.h
128        ReferenceElementSets.h
129      vtkCellType.h      vtkCellType.h
130  """.split()  """.split()
131  cppadapter_headers = """  cppadapter_headers = """
# Line 139  cppadapter_headers = """ Line 141  cppadapter_headers = """
141  local_env.Append(LIBS = ['escript', 'esysUtils', 'paso'] + env['sys_libs'] )  local_env.Append(LIBS = ['escript', 'esysUtils', 'paso'] + env['sys_libs'] )
142    
143  if IS_WINDOWS_PLATFORM :  if IS_WINDOWS_PLATFORM :
144    local_env.Append(CPPDEFINES = ['FINLEY_EXPORTS',    local_env.Append(CPPDEFINES = ['DUDLEY_EXPORTS'])
                                  'ESYSUTILS_STATIC_LIB'])  
145    
146  py_wrapper_local_env.Append(LIBS = ['finley', 'escript', 'esysUtils', 'paso'] + env['sys_libs'] )  py_wrapper_local_env.Append(LIBS = ['dudley', 'escript', 'esysUtils', 'paso'] + env['sys_libs'] )
147    
148  module_name = 'finley'  module_name = 'dudley'
149  py_wrapper_name = module_name + 'cpp'  py_wrapper_name = module_name + 'cpp'
150    
151  lib = local_env.SharedLibrary(module_name, sources)  lib = local_env.SharedLibrary(module_name, sources)
152  env.Alias('target_finley_so', lib)  env.Alias('target_dudley_so', lib)
153    
154  py_wrapper_lib = py_wrapper_local_env.SharedLibrary(py_wrapper_name, 'CPPAdapter/finleycpp.cpp')  py_wrapper_lib = py_wrapper_local_env.SharedLibrary(py_wrapper_name, 'CPPAdapter/dudleycpp.cpp')
155  env.Alias('target_finleycpp_so', py_wrapper_lib)  env.Alias('target_dudleycpp_so', py_wrapper_lib)
156    
157  include_path = Dir('finley', local_env['incinstall'])  include_path = Dir('dudley', local_env['incinstall'])
158  cppadapter_include_path = Dir('CppAdapter', include_path)  cppadapter_include_path = Dir('CppAdapter', include_path)
159    
160  tmp1 = local_env.Install(include_path, headers )  tmp1 = local_env.Install(include_path, headers )
161  tmp2 = local_env.Install(cppadapter_include_path, cppadapter_headers )  tmp2 = local_env.Install(cppadapter_include_path, cppadapter_headers )
162  env.Alias('target_install_finley_headers', [tmp1, tmp2])  env.Alias('target_install_dudley_headers', [tmp1, tmp2])
163    
164  tmp3 = local_env.Install(local_env['libinstall'], lib)  tmp3 = local_env.Install(local_env['libinstall'], lib)
165  env.Alias('target_install_finley_so', tmp3)  env.Alias('target_install_dudley_so', tmp3)
166    
167  #windows specific mod  #windows specific mod
168  tmp_inst = os.path.join(local_env['pyinstall'],module_name)  tmp_inst = os.path.join(local_env['pyinstall'],module_name)
# Line 175  share_name = os.path.join(tmp_inst,py_wr Line 176  share_name = os.path.join(tmp_inst,py_wr
176  tmp4 = py_wrapper_local_env.InstallAs(target=share_name,  tmp4 = py_wrapper_local_env.InstallAs(target=share_name,
177                                        source=py_wrapper_lib[0])                                        source=py_wrapper_lib[0])
178    
179  env.Alias('target_install_finleycpp_so', tmp4)  env.Alias('target_install_dudleycpp_so', tmp4)
180    
181  # export the lib target since tests will depend on it  # export the lib target since tests will depend on it
182  # the lib target is a list of file nodes (why? win32 produces more than one output file: .lib, .dll, .pdb)  # the lib target is a list of file nodes (why? win32 produces more than one output file: .lib, .dll, .pdb)
# Line 184  dep_lib = [local_env['libinstall']+'/'+s Line 185  dep_lib = [local_env['libinstall']+'/'+s
185  Export('dep_lib')  Export('dep_lib')
186    
187  # Call the python sconscript  # Call the python sconscript
188  env.SConscript(dirs = ['#/finley/py_src'], build_dir='py', duplicate=0)  CallSConscript(env,dirs = ['#/dudley/py_src'], variant_dir='py', duplicate=0)
189    
190  # Call the unit tests SConscript  # Call the unit tests SConscript
191  local_env.SConscript(dirs = ['#/finley/test'], build_dir='#/build/$PLATFORM/finley/test', duplicate=0)  CallSConscript(local_env,dirs = ['#/dudley/test'], variant_dir='#/build/$PLATFORM/dudley/test', duplicate=0)
192    

Legend:
Removed from v.2031  
changed lines
  Added in v.3082

  ViewVC Help
Powered by ViewVC 1.1.26