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

Diff of /trunk/escript/src/SConscript

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

revision 1839 by phornby, Fri Oct 3 02:03:07 2008 UTC revision 1840 by phornby, Fri Oct 3 03:16:11 2008 UTC
# Line 91  headers = """ Line 91  headers = """
91  local_env.Append(LIBS = [ 'esysUtils'] + env['sys_libs'] )  local_env.Append(LIBS = [ 'esysUtils'] + env['sys_libs'] )
92  py_wrapper_local_env.Append(LIBS = [ 'escript', 'esysUtils'] + env['sys_libs'])  py_wrapper_local_env.Append(LIBS = [ 'escript', 'esysUtils'] + env['sys_libs'])
93    
94  lib = local_env.SharedLibrary('escript', sources)  py_wrapper_name = 'escript'
95    
96    lib = local_env.SharedLibrary(py_wrapper_name, sources)
97  env.Alias('target_escript_so', lib)  env.Alias('target_escript_so', lib)
98    
99  py_wrapper_lib = py_wrapper_local_env.SharedLibrary('escriptcpp', 'escriptcpp.cpp')  py_wrapper_lib = py_wrapper_local_env.SharedLibrary('escriptcpp', 'escriptcpp.cpp')
# Line 106  tmp3 = local_env.Install(local_env['libi Line 108  tmp3 = local_env.Install(local_env['libi
108  env.Alias('target_install_escript_so', tmp3)  env.Alias('target_install_escript_so', tmp3)
109    
110  #windows specific mod  #windows specific mod
111    tmp_inst = os.path.join(local_env['pyinstall'],py_wrapper_name)
112  if os.name == 'nt':  if os.name == 'nt':
113    tmp4 = py_wrapper_local_env.Install(local_env['pyinstall']+'/escript', py_wrapper_lib)    wrapper_postfix = '.pyd'
114      source_lib = py_wrapper_lib[0]
115  else:  else:
116    tmp4 = py_wrapper_local_env.InstallAs(local_env['pyinstall']+'/escript/escriptcpp.so', py_wrapper_lib)    wrapper_postfix = '.so'
117      source_lib = py_wrapper_lib
118    
119    share_name = os.path.join(tmp_inst,py_wrapper_name+wrapper_postfix)
120    
121    tmp4 = py_wrapper_local_env.InstallAs(target=share_name, source=source_lib)
122    
123  env.Alias('target_install_escriptcpp_so', tmp4)  env.Alias('target_install_escriptcpp_so', tmp4)
124    
125  # 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