/[escript]/branches/domexper/dudley/src/SConscript
ViewVC logotype

Diff of /branches/domexper/dudley/src/SConscript

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

revision 1705 by ksteube, Thu Aug 14 05:56:40 2008 UTC revision 2031 by phornby, Wed Nov 12 08:02:33 2008 UTC
# Line 1  Line 1 
1    
2    
3    ########################################################
4  #  #
5  # $Id$  # Copyright (c) 2003-2008 by University of Queensland
6  #  # Earth Systems Science Computational Center (ESSCC)
7  #######################################################  # http://www.uq.edu.au/esscc
 #  
 #           Copyright 2003-2007 by ACceSS MNRF  
 #       Copyright 2007 by University of Queensland  
 #  
 #                http://esscc.uq.edu.au  
 #        Primary Business: Queensland, Australia  
 #  Licensed under the Open Software License version 3.0  
 #     http://www.opensource.org/licenses/osl-3.0.php  
8  #  #
9  #######################################################  # Primary Business: Queensland, Australia
10    # Licensed under the Open Software License version 3.0
11    # http://www.opensource.org/licenses/osl-3.0.php
12  #  #
13    ########################################################
14    
15    
16  import os  import os
17  Import('*')  Import('*')
# Line 138  cppadapter_headers = """ Line 137  cppadapter_headers = """
137  """.split()  """.split()
138    
139  local_env.Append(LIBS = ['escript', 'esysUtils', 'paso'] + env['sys_libs'] )  local_env.Append(LIBS = ['escript', 'esysUtils', 'paso'] + env['sys_libs'] )
140    
141    if IS_WINDOWS_PLATFORM :
142      local_env.Append(CPPDEFINES = ['FINLEY_EXPORTS',
143                                     'ESYSUTILS_STATIC_LIB'])
144    
145  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'] )
146    
147  lib = local_env.SharedLibrary('finley', sources)  module_name = 'finley'
148    py_wrapper_name = module_name + 'cpp'
149    
150    lib = local_env.SharedLibrary(module_name, sources)
151  env.Alias('target_finley_so', lib)  env.Alias('target_finley_so', lib)
152    
153  py_wrapper_lib = py_wrapper_local_env.SharedLibrary('finleycpp', 'CPPAdapter/finleycpp.cpp')  py_wrapper_lib = py_wrapper_local_env.SharedLibrary(py_wrapper_name, 'CPPAdapter/finleycpp.cpp')
154  env.Alias('target_finleycpp_so', py_wrapper_lib)  env.Alias('target_finleycpp_so', py_wrapper_lib)
155    
156  include_path = Dir('finley', local_env['incinstall'])  include_path = Dir('finley', local_env['incinstall'])
# Line 157  tmp3 = local_env.Install(local_env['libi Line 164  tmp3 = local_env.Install(local_env['libi
164  env.Alias('target_install_finley_so', tmp3)  env.Alias('target_install_finley_so', tmp3)
165    
166  #windows specific mod  #windows specific mod
167    tmp_inst = os.path.join(local_env['pyinstall'],module_name)
168  if os.name == 'nt':  if os.name == 'nt':
169    tmp4 = py_wrapper_local_env.Install(local_env['pyinstall']+'/finley', ['finleycpp.pyd', 'finleycpp.lib', 'finleycpp.exp'])    wrapper_postfix = '.pyd'
170  else:  else:
171    tmp4 = py_wrapper_local_env.InstallAs(local_env['pyinstall']+'/finley/finleycpp.so', py_wrapper_lib)    wrapper_postfix = '.so'
172    
173    share_name = os.path.join(tmp_inst,py_wrapper_name+wrapper_postfix)
174    
175    tmp4 = py_wrapper_local_env.InstallAs(target=share_name,
176                                          source=py_wrapper_lib[0])
177    
178  env.Alias('target_install_finleycpp_so', tmp4)  env.Alias('target_install_finleycpp_so', tmp4)
179    
180  # export the lib target since tests will depend on it  # export the lib target since tests will depend on it

Legend:
Removed from v.1705  
changed lines
  Added in v.2031

  ViewVC Help
Powered by ViewVC 1.1.26