/[escript]/branches/RW_WIN32/finley/src/CPPAdapter/SConscript
ViewVC logotype

Diff of /branches/RW_WIN32/finley/src/CPPAdapter/SConscript

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

revision 221 by phornby, Thu Nov 24 11:23:33 2005 UTC revision 222 by robwdcock, Thu Nov 24 12:54:42 2005 UTC
# Line 2  Import('*') Line 2  Import('*')
2    
3  lib_name = 'finleycpp'  lib_name = 'finleycpp'
4    
5  finleycpp_env=env.Copy()  local_env=env.Copy()
6    
7  src_dir = finleycpp_env.Dir('.').srcnode().abspath  src_dir = local_env.Dir('.').srcnode().abspath
8    
9  import os  import os
10  filenames = os.listdir(src_dir)  filenames = os.listdir(src_dir)
# Line 12  sources = [x for x in filenames if os.pa Line 12  sources = [x for x in filenames if os.pa
12  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
13    
14  include = Dir('finley/CPPAdapter', esys_inc)  include = Dir('finley/CPPAdapter', esys_inc)
15  finleycpp_env.Install( include, headers )  local_env.Install( include, headers )
16    
17  finleycpp_env.Append(LIBS= [boost_lib_name, 'paso', 'escriptcpp', 'finleyC', 'esysUtils'])  local_env.Append(LIBS= [boost_lib_name, 'paso', 'escriptcpp', 'finleyC', 'esysUtils'])
18    
19  if env['PLATFORM'] == "win32" or env['PLATFORM'] == "posix" :  if env['PLATFORM'] == "win32" or env['PLATFORM'] == "posix" :
20     finleycpp_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'FINLEY_EXPORTS'])     local_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'FINLEY_EXPORTS'])
21     finleycpp_env['PDB'] = lib_name + '.pdb'     local_env['PDB'] = lib_name + '.pdb'
22  else:  else:
23     import os     import os
24        
# Line 31  else: Line 31  else:
31                 '/raid2/tools/python-2.3.4/include/python2.3',                 '/raid2/tools/python-2.3.4/include/python2.3',
32                 '/raid2/tools/boost/include/boost-1_31']                 '/raid2/tools/boost/include/boost-1_31']
33        
34     finleycpp_env = Environment(ENV = os.environ)     local_env = Environment(ENV = os.environ)
35        
36     finleycpp_env.Replace(CXX = 'icc')     local_env.Replace(CXX = 'icc')
37     finleycpp_env.Replace(SHOBJSUFFIX = '.lo')     local_env.Replace(SHOBJSUFFIX = '.lo')
38     finleycpp_env.Replace(CXXFLAGS = cxx_flags)     local_env.Replace(CXXFLAGS = cxx_flags)
39     finleycpp_env.Replace(CPPPATH = cpp_path)     local_env.Replace(CPPPATH = cpp_path)
40    
41  finleycpp_lib = finleycpp_env.SharedLibrary(lib_name, sources)  finleycpp_lib = local_env.SharedLibrary(lib_name, sources)
42  finleycpp_env.Install(esys_lib, finleycpp_lib)  local_env.Install(esys_lib, finleycpp_lib)
43    
44    # Python
45    local_env.Export('lib_name')
46    env.SConscript(dirs = ['#/finley/py_src'], build_dir='build/$PLATFORM/finley/py', duplicate=0)

Legend:
Removed from v.221  
changed lines
  Added in v.222

  ViewVC Help
Powered by ViewVC 1.1.26