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

Diff of /trunk/dataexporter/src/SConscript

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

revision 2184 by caltinay, Mon Dec 22 04:27:26 2008 UTC revision 2186 by caltinay, Tue Dec 23 03:31:18 2008 UTC
# Line 15  Line 15 
15  import os  import os
16  Import('*')  Import('*')
17    
 local_env = clone_env(env)  
   
18  sources = """  sources = """
19      escriptreader/DataVar.cpp      escriptreader/DataVar.cpp
20      escriptreader/ElementData.cpp      escriptreader/ElementData.cpp
# Line 34  headers = """ Line 32  headers = """
32      escriptreader/common.h      escriptreader/common.h
33  """.split()  """.split()
34    
35  local_env.AppendUnique(LIBS = [env['silo_libs']])  local_env = clone_env(env)
36    local_env.AppendUnique(LIBS = [env["silo_libs"]])
37  lib = local_env.SharedLibrary("escriptreader", sources)  lib = local_env.SharedLibrary("escriptreader", sources)
38  env.Alias("target_escriptreader_so", lib)  env.Alias("target_escriptreader_so", lib)
39    
40  include_path = Dir("escriptreader", local_env["incinstall"])  include_path = Dir("escriptreader", env["incinstall"])
41  local_env.Install(include_path, headers)  local_env.Install(include_path, headers)
42  inst_lib = local_env.Install(local_env["libinstall"], lib)  inst_lib = local_env.Install(env["libinstall"], lib)
43    
44  prog = local_env.Program('escript2silo', ["escript2silo.cpp", inst_lib])  # need new environment for escript2silo to avoid dependency cycle
45    local_env = clone_env(env)
46    local_env.AppendUnique(LIBS = [env["silo_libs"], "escriptreader"])
47    prog = local_env.Program("escript2silo", ["escript2silo.cpp"])
48  env.Alias("target_escript2silo", prog)  env.Alias("target_escript2silo", prog)
49  inst_e2s = local_env.Install(local_env['bininstall'], prog)  inst_e2s = local_env.Install(local_env["bininstall"], prog)
50  env.Alias("target_install_escript2silo", inst_e2s)  env.Alias("target_install_escript2silo", inst_e2s)
51    
52  prog = local_env.Program('esdcreate', "esdcreate.cpp")  # esdcreate has no other dependencies
53    local_env = clone_env(env)
54    prog = local_env.Program("esdcreate", "esdcreate.cpp")
55  env.Alias("target_esdcreate", prog)  env.Alias("target_esdcreate", prog)
56  inst_esdcreate = local_env.Install(local_env['bininstall'], prog)  inst_esdcreate = local_env.Install(local_env["bininstall"], prog)
57  env.Alias("target_install_esdcreate", inst_esdcreate)  env.Alias("target_install_esdcreate", inst_esdcreate)
58    

Legend:
Removed from v.2184  
changed lines
  Added in v.2186

  ViewVC Help
Powered by ViewVC 1.1.26