/[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 1845 by gross, Fri Oct 3 05:23:47 2008 UTC revision 1847 by phornby, Fri Oct 3 06:45:34 2008 UTC
# Line 1  Line 1 
   
1  ########################################################  ########################################################
2  #  #
3  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2008 by University of Queensland
# Line 91  headers = """ Line 90  headers = """
90  local_env.Append(LIBS = [ 'esysUtils'] + env['sys_libs'] )  local_env.Append(LIBS = [ 'esysUtils'] + env['sys_libs'] )
91  py_wrapper_local_env.Append(LIBS = [ 'escript', 'esysUtils'] + env['sys_libs'])  py_wrapper_local_env.Append(LIBS = [ 'escript', 'esysUtils'] + env['sys_libs'])
92    
93    module_name = 'escript'
94    py_wrapper_name = module_name + 'cpp'
95    
96  lib = local_env.SharedLibrary('escript', sources)  lib = local_env.SharedLibrary(module_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(py_wrapper_name, 'escriptcpp.cpp')
100  env.Alias('target_escriptcpp_so', py_wrapper_lib)  env.Alias('target_escriptcpp_so', py_wrapper_lib)
101    
102  include_path = Dir('escript', local_env['incinstall'])  include_path = Dir('escript', local_env['incinstall'])
# Line 107  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'],'escript')  tmp_inst = os.path.join(local_env['pyinstall'],module_name)
112  if os.name == 'nt':  if os.name == 'nt':
113    wrapper_postfix = '.pyd'    wrapper_postfix = '.pyd'
   source_lib = py_wrapper_lib[0]  
114  else:  else:
115    wrapper_postfix = '.so'    wrapper_postfix = '.so'
   source_lib = py_wrapper_lib  
116    
117  share_name = os.path.join(tmp_inst,'escriptcpp'+wrapper_postfix)  share_name = os.path.join(tmp_inst,py_wrapper_name+wrapper_postfix)
118    
119  tmp4 = py_wrapper_local_env.InstallAs(target=share_name, source=source_lib)  tmp4 = py_wrapper_local_env.InstallAs(target=share_name,
120                                          source=py_wrapper_lib[0])
121    
122  env.Alias('target_install_escriptcpp_so', tmp4)  env.Alias('target_install_escriptcpp_so', tmp4)
123    

Legend:
Removed from v.1845  
changed lines
  Added in v.1847

  ViewVC Help
Powered by ViewVC 1.1.26