/[escript]/trunk/tools/escriptconvert/SConscript
ViewVC logotype

Diff of /trunk/tools/escriptconvert/SConscript

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

trunk/tools/libescriptreader/src/SConscript revision 2806 by jfenwick, Mon Jul 20 06:20:06 2009 UTC trunk/tools/escriptconvert/SConscript revision 2810 by caltinay, Mon Dec 7 04:13:49 2009 UTC
# Line 15  Line 15 
15  import os  import os
16  Import('*')  Import('*')
17    
18  sources = """  local_env = clone_env(env_mpi)
19      escriptreader/DataVar.cpp  local_env.AppendUnique(LIBS = [env["silo_libs"], "escriptexport"])
20      escriptreader/ElementData.cpp  prog = local_env.Program("escriptconvert", ["escriptconvert.cpp"])
21      escriptreader/Mesh.cpp  env.Alias("target_escriptconvert", prog)
22      escriptreader/MeshWithElements.cpp  inst_escriptconvert = local_env.Install(local_env["bininstall"], prog)
23      escriptreader/MPDataSet.cpp  env.Alias("target_install_escriptconvert", inst_escriptconvert)
 """.split()  
   
 headers = """  
     escriptreader/DataVar.h  
     escriptreader/ElementData.h  
     escriptreader/Mesh.h  
     escriptreader/MeshWithElements.h  
     escriptreader/MPDataSet.h  
     escriptreader/common.h  
 """.split()  
   
 local_env = clone_env(env)  
 local_env.AppendUnique(LIBS = [env["silo_libs"]])  
 lib = local_env.SharedLibrary("escriptreader", sources)  
 env.Alias("target_escriptreader_so", lib)  
   
 include_path = Dir("escriptreader", env["incinstall"])  
 local_env.Install(include_path, headers)  
 inst_lib = local_env.Install(env["libinstall"], lib)  
   
 # need new environment for escript2silo to avoid dependency cycle  
 local_env = clone_env(env)  
 local_env.AppendUnique(LIBS = [env["silo_libs"], "escriptreader"])  
 prog = local_env.Program("escript2silo", ["escript2silo.cpp"])  
 env.Alias("target_escript2silo", prog)  
 inst_e2s = local_env.Install(local_env["bininstall"], prog)  
 env.Alias("target_install_escript2silo", inst_e2s)  
24    
25  # esdcreate has no other dependencies  # esdcreate has no other dependencies
26  local_env = clone_env(env)  local_env = clone_env(env)

Legend:
Removed from v.2806  
changed lines
  Added in v.2810

  ViewVC Help
Powered by ViewVC 1.1.26