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

Diff of /trunk/finley/src/SConscript

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

revision 1839 by phornby, Fri Oct 3 02:06:00 2008 UTC revision 1840 by phornby, Fri Oct 3 03:16:11 2008 UTC
# Line 138  cppadapter_headers = """ Line 138  cppadapter_headers = """
138  local_env.Append(LIBS = ['escript', 'esysUtils', 'paso'] + env['sys_libs'] )  local_env.Append(LIBS = ['escript', 'esysUtils', 'paso'] + env['sys_libs'] )
139  py_wrapper_local_env.Append(LIBS = ['finley', 'escript', 'esysUtils', 'paso'] + env['sys_libs'] )  py_wrapper_local_env.Append(LIBS = ['finley', 'escript', 'esysUtils', 'paso'] + env['sys_libs'] )
140    
141  lib = local_env.SharedLibrary('finley', sources)  py_wrapper_name = 'finley'
142    
143    lib = local_env.SharedLibrary(py_wrapper_name, sources)
144  env.Alias('target_finley_so', lib)  env.Alias('target_finley_so', lib)
145    
146  py_wrapper_lib = py_wrapper_local_env.SharedLibrary('finleycpp', 'CPPAdapter/finleycpp.cpp')  py_wrapper_lib = py_wrapper_local_env.SharedLibrary('finleycpp', 'CPPAdapter/finleycpp.cpp')
# Line 155  tmp3 = local_env.Install(local_env['libi Line 157  tmp3 = local_env.Install(local_env['libi
157  env.Alias('target_install_finley_so', tmp3)  env.Alias('target_install_finley_so', tmp3)
158    
159  #windows specific mod  #windows specific mod
160    tmp_inst = os.path.join(local_env['pyinstall'],py_wrapper_name)
161  if os.name == 'nt':  if os.name == 'nt':
162    tmp4 = py_wrapper_local_env.Install(local_env['pyinstall']+'/finley', py_wrapper_lib)    wrapper_postfix = '.pyd'
163      source_lib = py_wrapper_lib[0]
164  else:  else:
165    tmp4 = py_wrapper_local_env.InstallAs(local_env['pyinstall']+'/finley/finleycpp.so', py_wrapper_lib)    wrapper_postfix = '.so'
166      source_lib = py_wrapper_lib
167    
168    share_name = os.path.join(tmp_inst,py_wrapper_name+wrapper_postfix)
169    
170    tmp4 = py_wrapper_local_env.InstallAs(target=share_name, source=source_lib)
171    
172  env.Alias('target_install_finleycpp_so', tmp4)  env.Alias('target_install_finleycpp_so', tmp4)
173    
174  # export the lib target since tests will depend on it  # export the lib target since tests will depend on it

Legend:
Removed from v.1839  
changed lines
  Added in v.1840

  ViewVC Help
Powered by ViewVC 1.1.26