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

Diff of /trunk/weipa/src/SConscript

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

revision 6183 by caltinay, Wed Apr 27 00:09:32 2016 UTC revision 6184 by caltinay, Wed Apr 27 01:30:57 2016 UTC
# Line 20  module_name = 'weipa' Line 20  module_name = 'weipa'
20  sources = """  sources = """
21      DataVar.cpp      DataVar.cpp
22      EscriptDataset.cpp      EscriptDataset.cpp
     VisItControl.cpp  
23  """.split()  """.split()
24    
25  headers = """  headers = """
# Line 50  if 'dudley' in env['domains'] or 'finley Line 49  if 'dudley' in env['domains'] or 'finley
49          local_env.Append(CPPDEFINES = ['USE_FINLEY'])          local_env.Append(CPPDEFINES = ['USE_FINLEY'])
50          weipalibs += env['finley_libs']          weipalibs += env['finley_libs']
51    
52    if local_env['silo']:
53        weipalibs += env['silo_libs']
54    
55    pluginlibs = [] + weipalibs
56    pluginsources = [] + sources
57    # clone here to use same CPPDEFINES
58    visitplugin_env = local_env.Clone()
59    
60  if 'ripley' in env['domains']:  if 'ripley' in env['domains']:
61      sources += ['RipleyDomain.cpp','RipleyElements.cpp','RipleyNodes.cpp']      sources += ['RipleyDomain.cpp','RipleyElements.cpp','RipleyNodes.cpp']
62      headers += ['RipleyDomain.h','RipleyElements.h','RipleyNodes.h']      headers += ['RipleyDomain.h','RipleyElements.h','RipleyNodes.h']
# Line 62  if 'speckley' in env['domains']: Line 69  if 'speckley' in env['domains']:
69      local_env.Append(CPPDEFINES = ['USE_SPECKLEY'])      local_env.Append(CPPDEFINES = ['USE_SPECKLEY'])
70      weipalibs += env['speckley_libs']      weipalibs += env['speckley_libs']
71    
72  if local_env['silo']:  sources.append(['VisItControl.cpp'])
     weipalibs += env['silo_libs']  
   
 pluginlibs = [] + weipalibs  
 # clone here to use same CPPDEFINES  
 visitplugin_env = local_env.Clone()  
73    
74  if local_env['visit']:  if local_env['visit']:
75      sources.append(['VisItData.cpp'])      sources.append(['VisItData.cpp'])
# Line 102  env.Alias('install_weipa', [build, lib_i Line 104  env.Alias('install_weipa', [build, lib_i
104  ######################  ######################
105  ### Plugin library ###  ### Plugin library ###
106  ######################  ######################
107  plugin_sources = """  if 'dudley' in env['domains'] or 'finley' in env['domains']:
108      DataVar.cpp      visitplugin_env.PrependUnique(LIBS = pluginlibs)
109      EscriptDataset.cpp      visitplugin_env.Append(CPPDEFINES = ['VISIT_PLUGIN'])
110      FinleyDomain.cpp      visitplugin_env['OBJPREFIX']='reader_'
     FinleyElements.cpp  
     FinleyNodes.cpp  
 """.split()  
   
 visitplugin_env.PrependUnique(LIBS = pluginlibs)  
 visitplugin_env.Append(CPPDEFINES = ['VISIT_PLUGIN'])  
 visitplugin_env['OBJPREFIX']='reader_'  
111    
112  plugin_lib = visitplugin_env.SharedLibrary('escriptreader', plugin_sources)      plugin_lib = visitplugin_env.SharedLibrary('escriptreader', pluginsources)
113  plugin_inst = local_env.Install(local_env['libinstall'], plugin_lib)      plugin_inst = local_env.Install(local_env['libinstall'], plugin_lib)
114    
115  build = env.Alias('build_escriptreader', plugin_lib)      build = env.Alias('build_escriptreader', plugin_lib)
116  env.Alias('install_escriptreader', [build, plugin_inst])      env.Alias('install_escriptreader', [build, plugin_inst])
117    

Legend:
Removed from v.6183  
changed lines
  Added in v.6184

  ViewVC Help
Powered by ViewVC 1.1.26